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

292
votes
15answers
242k 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 ...
17
votes
1answer
26k 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 ...
52
votes
13answers
35k 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 ...
3
votes
1answer
530 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?
5
votes
3answers
12k 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 ...
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 ...
1
vote
1answer
5k 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?
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: ...
5
votes
3answers
9k 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 ...
15
votes
1answer
4k 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
3answers
1k 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 ...
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 ...
30
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
3answers
10k 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 ...
5
votes
1answer
739 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: ...
6
votes
1answer
798 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 ...
4
votes
1answer
656 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
2k 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
1answer
1k 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
324 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" ...
1
vote
2answers
78 views

My custom .desktop file appears in Dash as a text file

I recently installed MATLAB on my computer. I found that while I could easily start MATLAB from the terminal, there was no executable file I could double click on to run it. So I created a Bash script ...
0
votes
1answer
1k 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 ...
16
votes
3answers
498 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 ...
3
votes
2answers
21k 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
1k 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 ...
4
votes
1answer
7k views

Adding Folder shortcut to Launcher Ubuntu 14.04

I want to add some folder to the launcher so that I can access them at ease. How do I add shortcut to launcher?
2
votes
2answers
8k 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
228 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
90 views

association window <-> .desktop file <-> launcher entry

I'm trying to integrate my JS code with unity using low level dbus messaging. I'm able to set launcher icon properties (progress, count, menu etc) for known .desktop files ( for example, ...
1
vote
1answer
203 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 ...
10
votes
1answer
731 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 ...
5
votes
3answers
2k 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 ...
2
votes
1answer
89 views

Adding my launcher to the Unity Launcher automatically. How?

Based on official documentation: In order to add your launcher to the Unity Launcher on the left, you select and drag it onto the Launcher panel. Alternatively, you can place your .desktop ...
1
vote
1answer
32 views

How do I fix(make) apps windows to be opened at desired place of the desktop?

For example I want SMPlayer window to be always opened in the middle of the desktop because when I place it in the middle every time that I launch it goes up left to the top with time so I have to ...
1
vote
1answer
33 views

Google chrome opens specific website when ran from launcher

I'm having a problem with my Google Chrome. When I open it from launcher (I mean bar on the left side) it starts with youtube website, and it starts to play some video. (This happens since my friend ...
1
vote
3answers
96 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
746 views

How to move icons on Kubuntu?

I'm new to Linux world. Recently I've installed Kubuntu and I don't know how to move icons on the desktop. When I drag an icon from applications (start menu) and drop it, I can't move it anymore. For ...
1
vote
1answer
457 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
2answers
51 views

What is this Directory?

I know that the .desktop files of mostly of installed applications will be founded in the /usr/share/applications. Today and accidentally I came to the directory /usr/share/app-install/desktop. It ...
0
votes
3answers
35 views

How can I launch Chromium from Dash/Unity with switches?

I want to launch Chromium browser with the --no-referrers switch, which was mentioned on this site. However, I'm not sure how to do that. Normally, I use the Dash to launch Chromium, how do I add the ...
0
votes
1answer
378 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
1k 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
117 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 ...