hundredrabbits / Left

Distractionless Writing Tool
http://hundredrabbits.itch.io/left
Other
1.77k stars 142 forks source link

Running on Debian #134

Closed flber closed 4 years ago

flber commented 4 years ago

This issue could very easily be the fault of my inexperience with linux, but running npm run build_linux on my debian computer results in the folder "Left-linux-x64" being created (good), but without any actual executable (bad). I'm not really sure what to do here, so any help or suggestions would be appreciated

neauoire commented 4 years ago

if you do npm start does it launch?

flber commented 4 years ago

It fails with the error The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/ben/Documents/Left/desktop/node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755

Looking around, I fixed this by running sudo chown root chrome-sandbox sudo chmod 4755 chrome-sandbox in both the desktop folder of the repo (so I can run npm start) and in the Left-linux-x64 folder generated with build_linux (so I can run the final executable).

It just seems to be an issue with electron, and based on this issue, that fix is sort of the best method for now.