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

Suggestion: symlink appimage to folder in $PATH #122

Closed
gobonja opened this issue Jun 13, 2020 · 5 comments
Closed

Suggestion: symlink appimage to folder in $PATH #122

gobonja opened this issue Jun 13, 2020 · 5 comments
Labels

Comments

@gobonja
Copy link

gobonja commented Jun 13, 2020

It would be great if bauh would create symlink of installed appimages in folder which is exist in $PATH.

With this feature application could be launched directly from terminal and parameters could be passed to app (e.g.)
vscodium ~/example-file or ksnip -f

Easiest solution would be to create symlink in $HOME/.local/bin/ (since this folder is already added to $PATH)

Or introduce new folder that needs to be added to $PATH
e.g. $HOME/.local/share/bauh/appimage/bin

Symlink should be created:

  1. without app version
  2. without appimage extension
  3. should be in lowercase

Thanks for this great app!
Best regards

@gobonja gobonja changed the title Suggestion: symlink appimage to folder in %PATH Suggestion: symlink appimage to folder in $PATH Jun 13, 2020
@vinifmor
Copy link
Owner

@gobonja it's a nice an easy improvement to add. The best path for the links would be ~/.local//bin, as you described, since the AppImage files are stored locally as well. There are some conditions bauh will have to deal with:

  1. the app/link name must not exist in /usr/bin, /usr/local/bin and ~/.local/bin. If it does, the link will be named as name-appimage
  2. if both app name and name-appimage exist in the paths described above, bauh will not link anything (but will log to the "Details" that the link could not be created)

If you have a better idea regarding these conditions, please, comment here.

@vinifmor vinifmor added the enhancement New feature or request label Jun 14, 2020
@gobonja
Copy link
Author

gobonja commented Jun 14, 2020

@vinifmor I think that your suggestions covers everything.

@vinifmor
Copy link
Owner

@gobonja , it is already available on staging. Could you give me a feedback if it is working properly on your end ? (you can install it through AUR as bauh-staging)

P.S: during the initialization process, bauh will create the symlinks if needed)

@gobonja
Copy link
Author

gobonja commented Jun 16, 2020

I just tested it and it works perfectly.

Great work!

@vinifmor
Copy link
Owner

Great ! The final 0.9.6 release should be ready soon

@vinifmor vinifmor added done and removed in progress labels Jun 17, 2020
@vinifmor vinifmor mentioned this issue Jun 26, 2020
@vinifmor vinifmor added the 0.9.6 label Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants