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

342
votes
15answers
316k 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 ...
31
votes
1answer
51k 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 ...
67
votes
16answers
60k 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
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?
9
votes
3answers
33k 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
20k 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
35k 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 ...
9
votes
1answer
18k 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?
5
votes
1answer
69 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 ...
3
votes
1answer
586 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 ...
22
votes
1answer
8k 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 #Exec=/usr/share/...
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: .local/share/applications/indicator-session-shutdown....
8
votes
1answer
2k 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 ...
7
votes
1answer
1k 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 ...
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
13k 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 to ...
6
votes
1answer
6k 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 ...
6
votes
3answers
379 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?
4
votes
2answers
724 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 ...
12
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
495 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
3k 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
2answers
201 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
1answer
611 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
1answer
71 views

What's wrong with this .desktop file?

I can't figure out what's wrong with this. According to this, it should work. Thanks! [Desktop Entry] Version=1.0 Name=D3GO Comment=D3GO televizija preko interneta Exec=~/D3GO/D3GO Path=~/D3GO/ Icon=~...
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 ...
32
votes
3answers
4k 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 ...
16
votes
3answers
966 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
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 :/ ...
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 ...
3
votes
1answer
325 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
252 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
1k 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 ...
9
votes
2answers
196 views

Timestamp in Exec= line of .desktop file possible?

Lubuntu 16.04 - Openbox session I can use the terminal to open a time-stamped file with gedit: gedit ~/$(date +%Y%m%d%H%M%S).txt The command can also be used via a keyboard shortcut in Openbox. &...
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 $...
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 ...
3
votes
1answer
165 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
2answers
230 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
1answer
220 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? Actions=NewWindow;...
2
votes
2answers
248 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
377 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 ...
1
vote
2answers
4k views

Ignoring BGRT: invalid status 0 (expected 1)

I've created a 15.10 Ubuntu USB drive and booting off it with an ASUS Rampage IV Black Edition motherboard, I get: Ignoring BGRT: invalid status 0 (expected 1) and then nothing. I've become really ...
3
votes
2answers
3k views

How do I start gnome-terminal with a specific width/height?

I would like to configure gnome-terminal to start with a bigger window by default. How do I do it?
3
votes
2answers
214 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 ...