Sample Header Ad - 728x90

Launch AppImages with keyboard shortcuts

1 vote
0 answers
810 views
I have the password manager KeePassXC as an AppImage on my system. I run it _thousands_ times a day and I want to add a key-bind/shortcut to launch it, not just have the icon on the menu with a regular .desktop file. Edit. I did this: 1. **Create a script** named keepassxc (or the name of the AppImage you want to launch) that points to the /path/of/app.AppImage. I created mine in a hidden folder called .bin in my user's home directory (~/.bin) with a content like this:
#!/bin/bash
   /home/username/AppImages/KeePassXC.AppImage
2. **Add the directory of the script to your $PATH**. (In my case the directory was ~/.bin, so): 1. Edit the file ~/.profile (with nano, vim, or any text editor) 2. Add:
export PATH="$HOME/.bin:$PATH"
3. Refresh it (or logout - login):
source ~/.profile
3. Edit keyboard shortcuts (this deppends your desktop environment...) - The shortcut should have keepassxc (or the name you gave to the script) as the **command** - Then, select the key combination you want. Don't forget, of course, to have the **AppImage with permission to be executed**. Cheers! Edit 2 reason: make notes more clear as requested
Asked by PolGZ (93 rep)
Jul 16, 2020, 03:10 PM
Last activity: Aug 31, 2021, 12:02 AM