A .desktop file is a launcher. When run, it executes a command, which usually 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

337
votes
15answers
309k 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 ...
29
votes
1answer
49k 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 ...
3
votes
1answer
2k 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?
67
votes
16answers
58k 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 ...
9
votes
3answers
31k 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 ...
7
votes
3answers
4k 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 ...
6
votes
2answers
19k views

How to make a shell file execute by double click [duplicate]

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?
31
votes
2answers
34k views

How can I find *.desktop files?

To the best of my knowledge, all shortcuts in the Unity Launcher have a corresponding *.desktop file. I have one shortcut (for skrooge) that doesn't have an icon. How can I find the *.desktop file ...
8
votes
1answer
17k views

How can I add folder shortcuts to the Unity Launcher?

I want to add some folder to the launcher so that I can access them at ease. How do I add shortcut to launcher?
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 ...
7
votes
3answers
12k 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 ...
5
votes
2answers
4k 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
1answer
65 views

Desktop entry, or other convinent but safe way to exec multiple statements,

I'm running Gnome on Ubuntu 15.4. I want to execute two or more actions at once, but let's try with two: sudo pm-suspend gnome-screensaver-command -l pm-suspend has been added and allowed to be ...
22
votes
1answer
7k 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 ...
8
votes
1answer
1k 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 ...
3
votes
1answer
556 views

How do you add/remove applications to/from the Unity Launcher from command line?

I am customizing an Ubuntu 14.04 Live CD with UCK (Ubuntu Customization Kit). The program gives you a chroot environment in a terminal to make changes. I want to add and remove what programs appear ...
1
vote
1answer
3k 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 ...
32
votes
3answers
3k 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 ...
7
votes
1answer
984 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
3answers
16k 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 ...
1
vote
3answers
2k views

Good Intellij installation on ubuntu 15

So I installed intellij idea. The installer does not create a desktop icon (...) and further more, when I try deploying my files to my xampp (lampp) installation, I get an error. I guess this is due ...
6
votes
1answer
5k 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 ...
5
votes
1answer
1k 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 ...
4
votes
2answers
716 views

Why won't this script run on startup?

This script works perfectly when I launch it manually. How can I get it to run on startup? The function of the script is to get Docky to auto relaunch in the case of a crash. I created the script ...
2
votes
1answer
2k 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 ...
11
votes
1answer
1k 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 ...
2
votes
1answer
479 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
1answer
582 views

Launching a .sh file from a launcher

I am fairly new to Ubuntu 14.04. I am doing a school project where I need to use navigation stacks. At this point the navigation works fine. My problem at this time is: Before I can launch rviz and to ...
1
vote
2answers
195 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 ...
1
vote
2answers
2k views

Running a .sh to execute multiple commands

I was curious how I would go about running multiple commands via shell script. For example, just to try it out, I'd like to be able to connect a .desktop to a .sh that will run all the update codes ...
1
vote
1answer
3k 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 ...
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
916 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 ...
4
votes
3answers
1k views

How Do I Create Mime Types For New Documents (Command Line)?

How do I give my application's custom document a custom icon? Additionally, how do I make the file manager open these documents when a user double clicks on them? I have to do this on the command ...
4
votes
2answers
14k 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 :/ ...
3
votes
1answer
277 views

Hide System Settings Applications in Dash

Is there any way to remove an application icon from the dash but keep it in the System Settings? I find it useless to have them in the dash, and it really clutters the display there.. Accessing them ...
3
votes
2answers
22k 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" ...
1
vote
1answer
228 views

Duplicate icons of an application, running in Wine

I am running Ubuntu 15.04 and Docky as my launcher. To run OriginPro under Wine from launcher I created a .desktop file and pinned it to my Docky However, when it starts, it opens a separate icon ...
10
votes
2answers
1k views

Desktop Files don't 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 ...
9
votes
1answer
985 views

Custom right-click action in Unity Launcher keeps cursor busy for 20 seconds

To have a "minimize window" option through right click on an icon in the Unity launcher (Ubuntu 14.04), I followed the detailed instructions here about changing a .desktop file and made a custom ...
5
votes
3answers
5k 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 ...
3
votes
1answer
157 views

How can I add a dynamic, application specific quicklist for recently used files to the Unity Launcher?

It would be an awesome feature to access recently used documents from LibreOffice with a dynamic quicklist in the launcher. There is quite some experience on how to create custom static quicklists. ...
2
votes
1answer
199 views

Help with syntax and customization of .desktop files for Unity

I tried below, and it works as expected. Sandboxing Firefox in a volatile state through Firejail. Exec=firejail --seccomp --private firefox What is this for? And what does it do? ...
2
votes
2answers
247 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
180 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
365 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 ...
7
votes
2answers
169 views

What happens internally when I click “Lock to launcher” in Unity?

In the Unity desktop, when I start a GUI application, its icon appears in the launcher (if it isn't already there). Now when I right-click this icon, I either get the option Lock to Launcher or ...
5
votes
3answers
323 views

Showing all installed programs in Ubuntu

In Ubuntu, where to see all programs just like the "program files" in windows, from which I can launch a program from a list of all program installed?
3
votes
2answers
205 views

Sort Unity Launcher icons alphabetically

I like to keep my locked Launcher applications sorted alphabetically, and I was wondering if it would be possible to write a script that sorts them, so I don't have to do it myself every time I add a ...
2
votes
3answers
100 views

Why are there redundant directories for .desktop files?

I know that the .desktop files of installed applications will be found in /usr/share/applications. Today, I came across the directory /usr/share/app-install/desktop. It contains the same .desktop ...