A .desktop file is a launcher. When run, it executes a command and launches an application. Use this tag if you are asking a question about using a .desktop file or about the .desktop file format in general.

learn more… | top users | synonyms

261
votes
15answers
213k views

How can I edit/create new launcher items in Unity by hand?

Will Unity allow making custom launcher icons from .desktop files or via menu editing system? (Right now the launcher doesn't give the option to "keep in launcher" on all programs. For some programs ...
15
votes
1answer
18k views

Creating a .desktop file for a new application

I just installed the lastest version of UGENE. I works fine but in order to use it, I have to enter the following in the terminal: cd ugene-1.11.5/ then execute ./ugene -ui to launch UGENE GUI. This ...
44
votes
11answers
27k views

Running a .desktop file in the terminal

From what I can gather, .desktop files are shortcuts that allow application's settings to be customized. For instance, I have lots of them in my /usr/share/applications/ folder. If I open that ...
10
votes
0answers
33k views

Ubuntu 13.10 - Black screen after login session [duplicate]

Yesterday, the system asked me if I wanted to upgrade to 13.10 from 13.04. Since that was the first time for me, I decided to proceed and ran the installation without worrying about it. After the ...
5
votes
2answers
3k views

What is the shutdown command?

I want to create a shutdown icon for the launcher in 13.04. In former versions of Ubuntu I used this desktop file and put it in the launcher: ...
1
vote
1answer
1k views

How to make a shell file execute by double click

I have tried right clicking on the file selecting properties and then the permissions tab and setting it to execute. However, when I double click the file it opens in gedit. What do I do?
4
votes
3answers
8k views

Desktop launcher documentation? [duplicate]

Possible Duplicate: What is the syntax for .desktop files? How do I add a custom launcher? I prefer to create new desktop launchers (.desktop files) using just a text editor, for example ...
1
vote
1answer
2k views

How to make a launcher(.desktop file) for a binary file?

I have sccceded in making launchers with python scripts,php scripts,etc as launchers. Now I want to make a binary file as a launcher. It is not an installable binary file. It is actually the binary ...
28
votes
3answers
2k views

Are there any GUI apps that can create .desktop files?

My question is simple. Is there any fast and easy way of creating .desktop files for shortcuts? For example, I think you can right click and create .desktop shortcuts in Linux Mint. I already know ...
5
votes
1answer
2k views

What represent the StartupWMClass field of a .desktop file?

I am working on this pre-existent .desktop file and I have a doubt: The file content is: [Desktop Entry] #Icon=connect-data-space Icon=XCloud Categories=Utility; Type=Application ...
5
votes
1answer
626 views

What is TargetEnvironment=Unity?

I have a pure Lubuntu 12.10 installation. While looking at some .desktop files in /usr/share/applications I see TargetEnvironment=Unity. One example is in the .desktop file for Google Chrome: ...
4
votes
3answers
6k views

Create a .desktop file that opens and execute a command in a terminal

I would like to know how to write the Exec command of a .desktop file to open a new terminal and execute a shell script in it. The shell script is working and accessible by all users. When launching ...
4
votes
3answers
537 views

.desktop files: how to specify the icon path

I had a look at the .desktop files on my 12.04 Ubuntu system, and many of them do not have a full path specification for their icon file. It is rather something like: Icon=anjuta or Icon=vlc or ...
4
votes
3answers
7k views

Setting up Conky on Ubuntu

I am surprised after seeing the features in the picture shown. After searching a little bit, I came to know that it is a conky theme. But now I also am not clear about it, and I don't know how to ...
4
votes
1answer
488 views

Desktop internet shortcut opens as text file

I have two very similar .desktop launcher files that are to be used as internet shortcuts. When I double click on one file it opens properly in a webbrowser as I would like. When I double click on ...
2
votes
1answer
968 views

How to find the .desktop files for pinned applications in the Unity launcher?

I know the desktop files live in /usr/share/applications and ~/.local/share/applications. I'm looking for 2 information: Where can I see the desktop items that show in my launcher (I would love to ...
2
votes
1answer
250 views

How can one run a shell script just before the desktop session begins?

I want my system to run with 1366x768 resolution. Note that this resolution is not detected by the open source driver. So I created a bash script as follows :- xrandr --newmode "1368x768_60.00" ...
0
votes
1answer
861 views

Lxde - desktop file for opening files in lxterminal

I have a .desktop file in .local/share/applications for opening text files in vim (console version). This works perfectly in gnome, unity. In Lxde it fails. I tried using lxterminal in place of ...
15
votes
3answers
356 views

My .bashrc alias not run in .desktop file

I've added the following line to the .bashrc file: alias midos="sh /home/erkanmdr/Belgeler/midos/midos.sh" This command works fine in the terminal and tty. But not working in my .desktop shortcut ...
6
votes
1answer
448 views

Why so many files in /usr/share/app-install/desktop?

For 14.04, I'm trying out Lubuntu LTS. If I run ls -l /usr/share/app-install/desktop, I get a list of 3085 .desktop files. All except one are dated Apr 18. The exception is: -rw-r--r-- 1 root root ...
2
votes
2answers
20k views

13.04 Dual monitors on my desktop

I just upgraded to 13.04 from 12.04. I was wondering how to use both of my monitors side by side in 13.04. They work together in mirror but do not work side by side. I have looked through the "tweak" ...
9
votes
2answers
915 views

Desktop Files don't use seem to use $PATH correctly

I am creating .desktop files for use in the Unity Launcher. I have my own location in my home directory where I put my executables (~/usr/bin/) which is correctly added to my PATH environment ...
2
votes
1answer
196 views

How to remove duplicate entries in dash?

After upgrading to Ubuntu 14.04 from 12.04 I have duplicate entries in dash. How can I get rid of them?
2
votes
1answer
831 views

How to refresh launcher icon application menu in ubuntu 12.04?

After modifying a desktop file in /usr/share/applications, I need to refresh the launcher icon application menu so that my modification shows up. For the sake of clarity, the menu that should get ...
2
votes
2answers
5k views

Execute sh script from *.desktop file?

What I want to do at all, is that: Create script that has icon on it. So I know only one way - file.desktop file with icon. Settings icon on it was successful, but I have no luck setting EXEC value :/ ...
2
votes
2answers
210 views

Nautilus description versus /usr/share/applications file directory

When using Nautilus and I navigate to the /usr/share/applications directory I get a listing of the meta data that is extracted from all of the .desktop files that live in that directory. So the file ...
1
vote
1answer
95 views

Desktop entry does not appear in Unity launcher

I created a .desktop entry for a custom QGIS installation in ~/.local/share/applications. For some reason the Unity launcher and Kupfer refuse to index the entry - it does not show up. Here is the ...
8
votes
1answer
563 views

How do I determine an application's process name?

This is the situation: Working on (the next version of) a Unity Quick List editor, I would like to add a reliable way of "restarting" launcher icons. To do so, I need to remove the icon (editing ...
3
votes
3answers
956 views

Permission of a .desktop file

Need some clarification about the permissions of .desktop files. I can see all the .desktop files in /usr/share/applications/ owned by root have permission, -rw-r--r-- also examples.desktop at ...
1
vote
3answers
56 views

How to get custom desktop file to be the default program for certain files

I have written a python wrapper for vlc that sits as an appindicator and monitors keystrokes to vlc and loads next/prev files in folder. I have the script working from nautilus scripts. Now I need ...
1
vote
1answer
350 views

Unable to run executable link

I added a link to the desktop using Nautilus ("Make Link"): me@1234:~/Desktop$ ls -al total 8 drwxr-xr-x 2 alex alex 4096 Sep 8 12:15 . drwxr-xr-x 42 alex alex 4096 Sep 8 00:22 .. lrwxrwxrwx 1 ...
0
votes
1answer
162 views

How to create a desktop entry for an application located in the user space?

I compiled the latest QGIS sources into ~/bin/qgis. I can start the application from the command line running ~/bin/qgis/bin/qgis. Now I want to have application launcher entry. So I copied the ...
0
votes
2answers
761 views

Creating a foobar.desktop file and a Wine app icon on the launcher

This a specification of my previous question (What's a .desktop file?) where I wondered how to create a .desktop file in order to create an icon on the launcher for a Wine application. I don't ...
0
votes
1answer
83 views

What's a .desktop file? [duplicate]

I wanted to know what's a .desktop file and how can I generate one in order to have a Wine application displayed on my Launcher bar on the left. Now I have to open the folder where I store the ...