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

328
votes
15answers
290k 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 ...
23
votes
1answer
41k 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
1k 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?
65
votes
16answers
51k 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 ...
7
votes
3answers
24k 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 ...
6
votes
3answers
3k 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
1answer
14k 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?
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
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: ...
28
votes
2answers
30k 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 ...
21
votes
1answer
6k 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 ...
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 ...
2
votes
1answer
395 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 ...
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
926 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: ...
5
votes
3answers
14k 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
1k 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
14k 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?
5
votes
1answer
4k 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 ...
4
votes
1answer
914 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
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 ...
10
votes
1answer
920 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
439 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
410 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
164 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
2k 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
770 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
855 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 ...
3
votes
2answers
12k 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
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
171 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 ...
5
votes
3answers
4k 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
146 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 ...
2
votes
1answer
135 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
243 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
153 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
322 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 ...
5
votes
3answers
249 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?
5
votes
1answer
101 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 ...
2
votes
3answers
94 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 ...
2
votes
1answer
124 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
40 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
57 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
204 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
3k views

.desktop file not working [duplicate]

I have a .desktop file that contains these lines: [Desktop Entry] Name=Firestorm Comment=Client for Online Virtual Worlds, such as Second Life Exec=/home/deus/Programs/Firestorm_64bit/firestorm ...