Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App automatically installs in /usr/lib/ since 0.5.0 #56

Closed
diegomarcov opened this issue Feb 28, 2017 · 6 comments
Closed

App automatically installs in /usr/lib/ since 0.5.0 #56

diegomarcov opened this issue Feb 28, 2017 · 6 comments

Comments

@diegomarcov
Copy link

Since I upgraded to electron-installer-debian 0.5.0, I noticed that this commit causes my app to install in /usr/lib. This is absolutely not desirable in our case, and I haven't found a way to at least configure this path.

I rolled back the dependency to 0.4.0 momentarily to fix this, but I wouldn't like to be stuck with that forever. Are there plans to make this path configurable (or am I missing this option somewhere)?

Thanks!

@unindented
Copy link
Collaborator

unindented commented Feb 28, 2017

@dlech pointed out that Debian guidelines dictate that apps like the ones generated through Electron must live in /usr/lib, not /usr/share. Why is it not desirable in your case?

@diegomarcov
Copy link
Author

Hi @unindented , sorry it took a bit to respond. In our case, we got reports from Linux users because their shortcuts stopped working. This is the way we actually found out about the change: our app used to be installed in /usr/share, and when we got the report we realized about the change in electron-installer-debian.

That was not a very serious problem, but discussing this further actually made us think that our app should be in /opt according to the guidelines, and not in /usr/share or /usr/lib, but I couldn't find a way at all to do this with electron-installer-debian. Maybe I can rephrase this issue or open a different one, but the real limitation is that we are not able to choose where the app is installed using this tool.

Thanks, and sorry again for taking a couple of days to answer.

@dlech
Copy link
Contributor

dlech commented Mar 3, 2017

Since it is installed with a .deb package and it contains binary files, it belongs in /usr/lib/. If you install manually (e.g. from source), it would be correct to install in /usr/local/lib/ or /opt/. It is actually against debian policy to install in /opt/ from a .deb package.

@lurch
Copy link

lurch commented Apr 19, 2017

This also caught us out in Etcher balena-io/etcher#1290

Perhaps this change-of-path in 0.5.0 ought to be mentioned somewhere prominent in the README?

@unindented
Copy link
Collaborator

@lurch you are right. I'll try to add a note in the README.

@fcastilloec
Copy link
Collaborator

@malept could you also change the README to point out where the .deb is installed so we can close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants