Unable to start application because /usr/lib/{app}/resources/app is only readable by root
See original GitHub issueWhat version of electron-installer-debian
are you using?
0.5.1
What version of node
and npm
are you using?
node 6.9.1
npm 3.10.8
What operating system are you using? ubuntu 16.04
Can you compile the example app successfully?
If not, paste here the output of the following commands:
Compilation is successfull, but I can’t start it:
$ git clone https://github.com/unindented/electron-installer-debian.git
$ cd electron-installer-debian/example
$ DEBUG='electron-installer-debian' npm run build
What did you do? Please include the configuration you are using for electron-installer-debian
.
I’m using ember-electron, which uses electron electron-forge, which uses electron-installer-debian.
I have built my project for Linux and tried to install it.
What did you expect to happen?
I expected the app to be installed and me being able to run it
What actually happened?
The app is installed, but unable to start due to a permissions issue.
Seems like electron is trying to load app from /usr/lib/my_app/reousrces/app
, but after unpacking the .deb file, this location gets the permissions to be only readable by root:
after I change permissions manually, the app starts fine:
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top GitHub Comments
The Brave browser is using this library, and they haven’t reported any issues: https://github.com/brave/browser-laptop/blob/07c6cd993a292edba2aad8710f8bf0d94467c81d/package.json#L194
Maybe check their build pipeline.
Hi, Somehow something is missing somewhere. Even an application like Ghost Desktop has this issue as reported here: https://github.com/TryGhost/Ghost-Desktop/issues/274
How is it done to package the .deb with correct permissions?
Thanks, Jochen