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

4
votes
1answer
60 views

How could a script know the path of the .desktop file that launched it?

How would a bash script know if it has been launched by a .desktop file, and how would it know the path of that launcher? Extra Points: How would I extract the "comment" field of that .desktop file - ...
2
votes
0answers
32 views

Keep mouse pointer busy while launching a script

I have a Windows program which is run via wine. Since it needs a couple steps of preparation, I created a script app.sh: #!/bin/sh do-something do-something-else wine app.exe Then I added the app ...
0
votes
0answers
25 views

How can I make a desktop application update immediately?

I created a bash script which when executed as a desktop application modifies its own application icon. This is done my altering the Icon= line in the application's .desktop file. Here is a gif of ...
2
votes
0answers
27 views

library for .desktop files [closed]

How can I read .desktop files without having to (re)invent the wheel?  Is there a Python or C library that is available in the Ubuntu repos?  Or something with a command line front-end that could be ...
1
vote
1answer
22 views

Mailto not working with custom .desktop file

My problem is that mailto links do not seem to work properly. I'm using Sylpheed, but that's not specific to the problem. I created a file at /usr/share/applications/sylpheed-compose.desktop so that ...
1
vote
1answer
340 views

How to add a software to the list under “open with” other applications in Linux Mint 16?

I want to add a software to the "open with" other applications list that drops down after clicking on a photo to open. I installed Photoscape on my Linux Mint 16 system but it does not show in the ...
2
votes
1answer
85 views

.desktop file. Correct exec path

I use Fedora. There are a number of programmes packaged in a security spin. Included desktop files work but open the programmes with root priviliges. How can I edit the desktop file shown here to ...
1
vote
0answers
38 views

How do I assign a value to the Path key in a .desktop file including the $HOME environment variable correctly?

I'm making a .desktop file for Minecraft. Nothing appears to happen upon executing the it. The Exec and Path keys in the file: Exec=java -jar Minecraft.jar Path=$HOME/.minecraft/ I've also tried ...
2
votes
2answers
169 views

How do I write a command for the Exec key in a .desktop file containing a reserved character correctly?

I'm trying to make a .desktop file for Minecraft. Nothing appears to happen upon executing the file. I've tried assigning the Exec key as follows: Exec= java -jar "~/.minecraft/Minecraft.jar" Exec= ...
0
votes
0answers
161 views

Linux Mint - Just created launcher does not show on MATE desktop but is in ls listing

I created a launcher by right-clicking on my Desktop, filled in the fields and saved it. But it didn't appear on my Desktop. So I opened Caja and it did not show there either. So I opened a terminal ...
0
votes
0answers
30 views

How to put .desktop launcher in autostart directory using makefile

I want my program to add a .desktop launcher to the ~/.conf/autostart directory. How do I do this? I already have the following code to put the launcher in the applications directory: desktopdir = ...
1
vote
1answer
254 views

Run specific command from .desktop with root

I have a program that I wish all users of my linux install to be able to run with root privileges from a .desktop file. Currently in my .desktop file I have: Exec=gksu command but this of cause ...
1
vote
1answer
123 views

Getting Current path in .desktop entry for ICON command

Im trying to make a .desktop file run a .sh which is stored in the same directory as the .desktop. The whole directory needs to be portable and moved from machine to machine. Now I can get the ...
3
votes
1answer
145 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
87 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
30 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 ...
2
votes
1answer
197 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
258 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
93 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
149 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 ...
2
votes
2answers
94 views

Nightly show as Firefox in Dash

I have created the following .desktop file in ~/.local/share/applications, when I search "Nightly" Nightly appears in search results with the correct icon(earth at night), but when I opened it it ...