A .desktop file describes how a particular program is to be launched, how it appears in menus, etc. It is used by Freedesktop-compliant environments such as Gnome, KDE and Xfce.

learn more… | top users | synonyms

3
votes
1answer
74 views

Read .desktop files programmatically [closed]

I would like to make a C program (GTK) that reads a .desktop file. The only thing I need from the .desktop file is the exec command. Is there something built into GTK that would allow me to interact ...
1
vote
0answers
25 views

How to put a desktop entry into applications list in open-with dialogs?

Here is my desktop file: [Desktop Entry] Exec=/home/kaiyin/workspace/python/python3_scripts/unz.py %f MimeType=application/gzip;application/x-compressed-tar;application/zip;application/x-bzip; ...
1
vote
1answer
23 views

Icon stops loading after the application restarts

I have a application which uses "self-restart" mechanism. It kills itself and runs again. When I run it first time (with .desktop file) it loads its icon correctly. The problem is that when it ...
1
vote
1answer
26 views

How to validate/verify .desktop files?

I have a couple of .desktop files that aren't working as expected or not at all. I can't see any error anywhere and asking for help on each one seems unproductive. Is there a way I can verify that I'm ...
0
votes
1answer
48 views

Troubles with .desktop file

I've successfully installed Internet Explorer 7 with winetrick in a clean prefix. I can successfully run it from terminal like this: env WINEPREFIX=~/.wine32ie7 wine 'C:\\Program Files\\Internet ...
1
vote
1answer
46 views

Proper use of escape characters in desktop file

I have a command with a working .desktop Exec key as follows: Exec=env XDG_CONFIG_HOME=/home/bean/.config/gedit/ gedit %U I would like to use the $HOME variable instead and it works in the terminal ...
4
votes
2answers
99 views

Bash command to delete a certain file in * folders

The situation isn't really as simple as the title may imply. I have a .desktop file that execs with bash -c to set an environment variable then load the program. Now I need to add another command ...