How to Create a .desktop File For Your Application in Solus
I'm sorry my tutorial is considered complicated. I don't speak English and use an online translator, so I was very brief.
- Edited
[Desktop Entry]
Name=Zygrib
Type=Application
Icon=/home/brent/Downloads/zyGrib-8.0.1/data/img/zyGrib.icns
Exec=/home/brent/Downloads/zyGrib-8.0.1/bin/zyGrib
Comment=no stinkin tooltip
Terminal=false
Keywords=Weather;
Categories=System;Settings;
save as <yourfilename>.desktop and place is in /usr/share/applications or ./local/share/applications (hope you knew that in case if you dont know)
Hope this will work for u. Exec is the executable file name with the path .
There is no Categories as Weather so it goes to Others . Check for categories.
https://developer.gnome.org/menu-spec/
https://developer.gnome.org/menu-spec/#additional-category-registry
So the weather goes as science/Education i guess. if you want to move it to Education then update with this
Categories=Education;
Category Directories are in ls /usr/share/desktop-directories
The main menus in cat ~/.config/menus/gnome-applications.menu
@ALL: thanks for the great replies. Although I did not have success, I eventually will. Have a great Sunday.
- Edited
Hi algent, for zygrib I drop the executable into the terminal and it launches. For stacer I'm still changing directory in terminal to folder then output/stacer. It's convoluted but it was another person's method (in your old stacer build thread) and I just stayed lazy about it.
If I can get zygrib onto desktop and menu, then I know I'll be able to do it for stacer.
Have a little time, I'm going to write this file from scratch again and delete the old one.
- Edited
AguerreroG you started your build in the Documents folder. I find that wild. I've done it in Downloads and one in /.build.
What has me always scratching my head about builds is this: does it matter where you start? Or are there places one must never start a build? edit: good youtube clip
It doesn't matter where you start writing documents
- Edited
viyoriya
You want to hear something really weird but all too common? SOLVED.
I walked away from this file a couple days. Actually I threw the .desktop file away to start over today.
In my /desktop folder there was the icon.
I moved it to desktop.
Simultaneously when I did that the icon also appeared in task bar. I deleted it since it's redundant.
Thank you for helping me. You do a lot of good.
Problem clear on my end.
edit: re-word
- Edited
brent cool . sometimes it may not appear immediately a reboot will read all the .desktop files from global and local dir or you can execute this command in terminal
if its global
sudo update-desktop-database
if its local
update-desktop-database ~/.local/share/applications/
for future .desktop files