Way to add non-package desktop apps to Walker menu? #3946
-
|
I had a look through the official Walker/Elephant docs along with #2835 and while good, it doesn't explain how to add non-packaged apps to the list. There are some desktop applications which wont ever be installed through either the AUR or normal package manager. Discord's desktop app is an example today which might get an AUR in the future, but also stuff like an itch.io game or a github release .tz would be similar. Is there a way to either set up a folder structure or manually add paths that would allow Walker to auto detect these applications and run them like normal packaged apps? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Walker searches on the pkg=nwg-icon-picker
# run this to find the desktop file
pacman -Fl $pkg | grep -re '\.desktop$'
# it's here
desktop=/usr/share/applications/nwg-icon-picker.desktop
# check it to see Name=Icon Picker
cat $desktopAnother app you can run from terminal to compare is You need to ensure that the desktop files parse correctly. The format is picky and it depends on the application that's parsing the file (e.g. There are some packages you can search for that help to create desktop files with a GUI, but it's just simpler with Adding Desktop FilesIf you want to add a desktop file:
# vars from above
newdesktop=$XDG_DATA_HOME/applications/nwg-drawer.desktop
cp $desktop $newdesktop
# open it in the editor
nvim $newdesktop
For Wine AppsFor me, Steam sometimes adds the Wine apps to One tricky part here is setting the correct environment variables in case you need to set custom steam variables. WebappsWhen omarchy installs a webapp, it uses the script # $OMARCHY_PATH may be undefined for you, but it's in ~/.local/share/omarchy
# just don't change the files in there...
script=$(fd 'omarchy-webapp-install' $OMARCHY_PATH)
cat "$script"And it installs new |
Beta Was this translation helpful? Give feedback.
-
|
XDG would search these directories for echo "$XDG_DATA_HOME:$XDG_DATA_DIRS" | tr ':' '\n' | sed -e 's/$/\/applications/g'So you can iterate through them or whatever to find examples (or just use # this is kinda hacky
dirs=$(echo "$XDG_DATA_HOME:$XDG_DATA_DIRS" | tr ':' '\n' | sed -e 's/$/\/applications/g')
for d in $dirs; do
[[ -d "$d" ]] && fd '\.desktop' $d;
done |
Beta Was this translation helpful? Give feedback.
-
|
Can we have something like this in the docs? |
Beta Was this translation helpful? Give feedback.
Walker searches on the
Namekey from the XDG desktop-entry specAnother app you can run from terminal to compare is
nwg-drawer. It doesn't include a desktop file. Once you add the desktop files as below, thenwalkershould pick them up. I just tested by creating one fornwg-drawer.You need to ensure that the desktop files parse correctly. The format is picky and it depends on the application that's parsing the file (e.g.
walkerorelephantornwg-drawer). Usually when applicat…