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

What to do when executable is already in /usr/local/bin? #2880

Closed
fluks opened this issue Jul 30, 2019 · 5 comments
Closed

What to do when executable is already in /usr/local/bin? #2880

fluks opened this issue Jul 30, 2019 · 5 comments
Labels
question_old (Deprecated; use "needinfo" or "question" instead) Further information is requested

Comments

@fluks
Copy link

fluks commented Jul 30, 2019

I wanted to run riot-web in Firejail, but there is already /usr/local/bin/riot-web, which is a symbolic link to /opt/Riot/riot-web. I installed it from the riot repo. What is the best way to deal with this problem? I also compiled Sylpheed from source and its executable is in /usr/local/bin too.

firejail version 0.9.58.2
Kubuntu 19.04

@rusty-snake rusty-snake added the question_old (Deprecated; use "needinfo" or "question" instead) Further information is requested label Jul 30, 2019
@rusty-snake
Copy link
Collaborator

There's a whole bunch of possibilities.

  1. change the .desktop file Exec=firejail /opt/Riot/riot-web
  2. symlinking: dir_in_PATH_before_usr_local_bin/riot-web -> /usr/bin/firejail
  3. Replacing /usr/local/bin/riot-web with a shell script #!/usr/bin/env sh\nfirejail /opt/Riot/riot-web "$@"
  4. ...

The best: IDK
The easiest: edit XXX.desktop
My favorit: a shell script in /usr/local/bin

@Vincent43
Copy link
Collaborator

Maybe sudo ln -s /usr/bin/firejail /usr/local/sbin/riot-web

@fluks
Copy link
Author

fluks commented Jul 30, 2019

Thanks. I choose /usr/local/sbin. It and $HOME/bin are good choices, because I don't have to change them every time riot-web is updated.

@rusty-snake
Copy link
Collaborator

If you copy the .desktop to $HOME/.local/share/applications you need also no changes after an update.

@rusty-snake
Copy link
Collaborator

@fluks I'm closing here due to the question seem answered, please fell free to reopen if you have more questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question_old (Deprecated; use "needinfo" or "question" instead) Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants