Questions tagged [.desktop]

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.

326 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
0 answers
1k views

Use desktop-file-install to uninstall?

I installed a desktop file using desktop-file-install now I changed my mind and I want to remove it, can I use desktop-file-edit to manage the installed desktop files? I particularly want to use ...
Shayan's user avatar
  • 1,501
8 votes
0 answers
493 views

After screen lock, open windows jump to other monitor

(regular Ubuntu 22.04 desktop - fully updated) After my screen locks, I always have some windows moving from one monitor to another. If I had 2 similar size monitors, it wouldn't bother me that much, ...
Jakke's user avatar
  • 1,016
6 votes
1 answer
2k views

In Ubuntu 18.04 (GNOME desktop), a .deskotp application launcher pointing to a script doesn't run said script

Well for Unity/Ubuntu 16.04 I added a custom script to the quick launch menu by added a *.desktop file inside ~/.local/share/applications/ With content as: [Desktop Entry] Type=Application Terminal=...
paul23's user avatar
  • 343
5 votes
0 answers
3k views

Icons put in /usr/local/share/icons/hicolor/apps

I want to create a new desktop entry and a new MIME type for an app called FreeFileSync for all users. I read that it recommends to do in directory /usr/local/share. More precisely, the app recommends ...
Bob's user avatar
  • 208
5 votes
0 answers
485 views

How can I get a change to a .desktop file get recognized by Unity/Gnome?

Unity/Gnome does not appear to pickup changes to .desktop files automatically (in particular the "Name" and "Icon" fields). I have found update-desktop-database, but that seems to update the MIME ...
blueyed's user avatar
  • 8,965
5 votes
1 answer
225 views

how to use an image for my custom .desktop file for unity previews

When one left clicks an application, it also displays the screenshot of the desired application. screenshot of the desired effect: I can't find the screenshotlink=? command in the vlc.desktop ...
blade19899's user avatar
  • 26.7k
4 votes
1 answer
5k views

How can I make a custom desktop file for VS Code for my dock, under Ubuntu 20.04?

I want to make a launcher icon on the dock for VSCode under Ubuntu 20.04. I called it code.desktop and put it in .local/share/applications, then pinned it to the dock. However, when I click on it, I ...
Jack M's user avatar
  • 1,310
4 votes
0 answers
1k views

Create .url files when drag and drop from browser instead of .desktop

I used to drag-and-drop links from the browser in Windows to a folder to save them. That created files with extension .url, and the content is like: [InternetShortcut] URL=https://askubuntu.com/ When ...
Steven's user avatar
  • 41
4 votes
0 answers
3k views

How to have two separate Chrome dock items

I'm using super+1 to access the first item on the dock/launcher, which is Google Chrome. I want to have super+2 bound to another instance of Chrome, so that I could go between them with my keyboard. ...
goldylucks's user avatar
3 votes
1 answer
1k views

Desktop file doesn't work

I'm trying to make a desktop file for vcvRack. I have the program and other files saved in ~/.Rack/. The program launches fine when I double click it or launch in from terminal using ./Rack. The file ~...
iHnR's user avatar
  • 301
3 votes
0 answers
76 views

Create a folder for all the shortcuts

My job has a certain standardization for Desktops in Windows, however we've decided to chance some of our O.S.s to Ubuntu. Herein lies the problem, in order to make the transition "as smooth as ...
Lucas's user avatar
  • 31
3 votes
0 answers
354 views

.desktop WINE — open file in running program

I am using Ubuntu 18.04. I'm running a text editor under WINE and am trying to figure how to add the ability to right-click on a text file in a file manager and have it open in that text editor, or at ...
Lee's user avatar
  • 677
3 votes
0 answers
37 views

Desktop folders are auto arranged after I add/delete some folder on desktop [Ubuntu 20.04]

Since I have upgraded from Ubuntu 18.04 to 20.04 I am having this problem that Desktop folders are auto arranged whenever I add or delete some folder on desktop. Most of the times some certain folders ...
ukasha sohail's user avatar
3 votes
0 answers
518 views

.local/share/applications not overriding /usr/share/applications on my Kubuntu 20.04 install

I’m having an annoying issue on my Kubuntu 20.04 install. I fail to to override a menu entry using KMenuEdit. It creates a file under “~/.local/share/applications” but it gets ignored and the original ...
petersaints's user avatar
3 votes
0 answers
165 views

Why did Firefox, Mailspring, and other applications disappear from the dock in Ubuntu 20.04?

After upgrading to Ubuntu 20.04, I noticed upon reboot that Firefox, Mailspring, and several other apps are missing from both my Ubuntu dock and the Activities launcher. I can launch them by hand, but ...
Ken Kinder's user avatar
  • 4,170
3 votes
0 answers
306 views

User .desktop file duplicates and hijacks system app icon in GNOME dock

I'm trying to set up a custom "Open in Emacs" .desktop file that uses the emacsclient utility to open a new buffer in an existing Emacs instance, if available, or start a new instance otherwise. In ...
duncanka's user avatar
3 votes
0 answers
529 views

Ubuntu 16.04 custom application not launching after creating .desktop file

I hope I have a straight forward question that I am just not able to resolve because I am so inexperienced. I am running Ubuntu 16.04 and want to use the astronomical image viewer sao-ds9. I tried to ...
Christian's user avatar
3 votes
1 answer
2k views

Execute a desktop shortcut to a jar file on Ubuntu 18.04

I need to run a .desktop file as an admin but I have issues achieving this. I am working with this .desktop file #!/usr/bin/env xdg-open [Desktop Entry] Type=Application Name=Some Application Exec="/...
JRsz's user avatar
  • 131
3 votes
0 answers
1k views

"Unable to make the service xyz executable, aborting execution"

I am trying to integrate Peazip portable into my KDE desktop. I have extracted peazip portable in a path in my home directory. I added a symbolic link to the executable by running: sudo ln -s /home/...
Bruni's user avatar
  • 10.6k
3 votes
0 answers
2k views

Run .desktop file at startup (and follow its Icon= specification)

I want to run a script at startup that would use a custom icon that should appear in Plank dock. For that I have created a .desktop file in ~/.local/share/applications that runs the script (see all ...
user avatar
3 votes
0 answers
2k views

Desktop file not working

I installed visual studio code from a tar file in /opt/ . So I had to make a desktop file for the application as shown below [Desktop Entry] Type=Application Name=Visual Studio Code MimeType=text/...
Siddhant Reddy's user avatar
3 votes
0 answers
2k views

How to make Lubuntu run smoother on old hardware?

I've installed Lubuntu today and noticed that the performance of it on my computer even after that distro being so lightweight is a bit heavy on my system. It has all those animations when you open ...
Amal S. Kuriakose's user avatar
3 votes
0 answers
633 views

After login Desktop not showing 16.04

I am using Ubuntu 16.04 and I have installed Kali linux tools on top of that using Katoolin, after restarting I can enter the password but desktop showing blank no icons. I used below command but it ...
Anwar jan's user avatar
3 votes
0 answers
2k views

Where are SVG launcher icons automatically loaded from?

I have created several desktop shortcuts for VirtualBox machines (VBMs) on my 15.04 Ubuntu OS. I've noticed that desktop files in /usr/share/applications and ~/.local/share/applications usually have ...
Josh Pinto's user avatar
  • 7,919
3 votes
1 answer
672 views

Which hidden files in the /home/user folder control the desktop?

The background story: The other day my (L)ubuntu offered me to upgrade from 12.04 LTS to 14.04 LTS, which I gladly accepted. At the end of the evening, I started the update out of the update manager, ...
Jan's user avatar
  • 757
3 votes
1 answer
2k views

.desktop file in xsessions folder not autorunning

I was setting up a kiosk per this tutorial http://www.instructables.com/id/Setting-Up-Ubuntu-as-a-Kiosk-Web-Appliance/?ALLSTEPS I have hit a problem with the kiosk.desktop file since it is not ...
skids89's user avatar
  • 131
2 votes
0 answers
597 views

The databases in /usr/share/applications cannot be updated

I m trying to perform File association to register my custom file extension for my application(ex: if I do xdg-open myFile.myExtension, it should launch my app). I m following this link to do it. I ...
Vipul Gupta's user avatar
2 votes
0 answers
433 views

How to make icon show in xfce panel for python script?

This appears to be the same question as How to add launcher icon for python script? but the solution given there doesn't seem to work for me. I have an executable tkinter script for which I have made ...
saulspatz's user avatar
  • 239
2 votes
0 answers
76 views

Why I can't change position of this application icon in the launcher? I can't move from last icon position

I have installed STS (Spring Tool Suite) IDE on Ubuntu 20.04 and I am finding the following problem with the icon in the launcher. The problem is that executing this application, it correctly start ...
AndreaNobili's user avatar
  • 4,539
2 votes
0 answers
84 views

Drag Highlighting On the Desktop Is not Calibrated Right In 21.04

I don't think that it is possible for me to screenshot an example of this (please let me know if there is a better way), as the mouse doesn't seem to show up in screenshots. But essentially what is ...
Kalcifer's user avatar
  • 233
2 votes
0 answers
121 views

My custom .desktop file doesn't show in the applications menu

I have created my own .desktop file by copying an existing one [Desktop Entry] Type=Application Name=Arduino IDE GenericName=Arduino IDE Comment=Open-source electronics prototyping platform Exec="...
LukasFun's user avatar
  • 161
2 votes
0 answers
658 views

Desktop launcher - Could not find the program

I recently installed an application which I will use quite a lot, but it didn't come with a desktop launcher. I'm using Kubuntu 20.04 and I created the following paraview.desktop file in /home/myname/....
Davide_sd's user avatar
  • 269
2 votes
0 answers
484 views

Spyder Desktop entry does not work

I have an installation of Spyder via anaconda on Ubuntu 18.04 and also on Linux Mint 20. In both cases I don't get an entry in the launcher, even if I copy the spyder.desktop file that came with the ...
kksagar's user avatar
  • 211
2 votes
0 answers
64 views

Custom desktop launcher no control or link from taskbar icon

I use several self made scripts in my ubuntu 20.04 to make my life easier. I put some of them into desktop launchers. But the vanilla-launchers (*.desktop files) have no control from the taskbar icon: ...
Sayan Dey's user avatar
  • 228
2 votes
0 answers
104 views

Hide all windows not working

When I hide all windows using the keyboard shortcut Ctrl+Super+D it hides some but not all of the windows. The remaining windows cannot be clicked and are visible behind the desktop. System: Ubuntu 20....
Kvothe's user avatar
  • 645
2 votes
0 answers
52 views

Ubuntu 20.04 - flash or blink of a native dekstop background or color

I've changed my desktop background in settings, but every time system is loading just before desktop shows up with my custom background there is a flash or a blink of native background or a background ...
soonic's user avatar
  • 143
2 votes
0 answers
3k views

Always launch certain applications using dedicated graphics card?

I have Nvidia proprietary drivers installed. In the (Ubuntu) dock or app-grid, I can right-click on an application, and select "Launch using dedicated Graphics Card". How can I make certain ...
Enterprise's user avatar
  • 12.4k
2 votes
0 answers
218 views

.desktop file execution problem

Having upgraded from 18 LTS to 20 LTS, all of my .desktop shortcut files located in folders stopping working. Any of the files may be copied onto the desktop, and once I select "Allow Launching&...
mlmccauley's user avatar
2 votes
1 answer
2k views

KDE task bar not recognizing the .desktop file

I have Ubuntu 18.04 with Plasma 5 desktop. I'm a programmer, and I have a question about a rare situation. I have a desktop file in ~/.local/share/applications/xapp.desktop with a content like this:...
James Suárez's user avatar
2 votes
1 answer
2k views

Cannot open folders from icons on desktop

I'm on Ubuntu 18.04 and noticed sometime that I cannot open any folders from the icons on my desktop anymore. The following error is given in /var/log/syslog when trying: $ cat /var/log/syslog | tail ...
drstoop's user avatar
  • 151
2 votes
0 answers
184 views

Grouping Icons from Multiple Eclipse Installs

I have two different Eclipse installs in my Ubuntu 18.04 with different plugins I create two .desktop files: Install A [Desktop Entry] Name=Eclipse Java Type=Application StartupNotify=true ...
Gustavo Marques Lupatelli's user avatar
2 votes
1 answer
66 views

Interactive icon / .desktop

I'm wondering if it's possible to create an interactive .desktop file. An icon to a directory you can put on the desktop that changes when something is stored in the directory. What I want is create ...
defossez's user avatar
  • 161
2 votes
2 answers
538 views

How to pass a terminal-title to a terminal opened via desktop shortcut (.desktop)?

Is there a way to set a title to a terminal that is opend via desktop shortcut? The perfect solution would be if the [Desktop Entry] Name=myTitle could be displayed in the title. Does anyone know if ...
ssssstut's user avatar
  • 667
2 votes
0 answers
2k views

Running SSH through system suspension

I would like to have my system suspend automatically when I'm not using it. However, I would still like to be able to remote into my machine any time I need. I keep OpenSSH-server and my Desktop ...
Eliter's user avatar
  • 69
2 votes
1 answer
3k views

How to configure Gnome to use the icon from the .desktop file in the Dock?

I have a .desktop launcher in ~/.local/share/applications. I have specified an Icon there. This icon is visible in the "Activities launcher". But when i select it, the icon is not used in the Dock. ...
Witek's user avatar
  • 3,943
2 votes
0 answers
145 views

Ubuntu 17.04 desktop not loading

I've had Ubuntu 17.04 working for a few weeks along with Windows 10 since my computer supports dual boot. When I started my computer and tried to login the background went black and only my cursor ...
carlos lopez's user avatar
2 votes
0 answers
599 views

How can I add a preview image (not an icon) to a .desktop file that will show up when I select the program in the Dash?

Before I start, let me just be clear, I am NOT asking how to add an icon. When I go to the Dash, and right click on an application, it says "No image available." How do I add an image? Here are the ...
Curtice Gough's user avatar
2 votes
1 answer
2k views

Running a long command, split into multiple lines, in a .desktop file?

Say we have this file, start-term-tabs.sh: gnome-terminal \ --tab --title="Term 1" \ --working-directory=/tmp \ -e "bash -i" \ --tab-with-profile=Default --title="Term 2" \ --working-...
sdaau's user avatar
  • 3,056
2 votes
0 answers
30 views

I seem to have two desktops running concurrently as well as over the top of each other

hope to god someone has seen this and knows wtf is going on :) I hardly ever log directly into the machine and will generally just use X2GO to connect to it remotely. I have not requested to install ...
torz's user avatar
  • 21
2 votes
0 answers
525 views

Script crashes when starting from .desktop file

When I execute script from terminal by hand, it runs without problems: gksudo /path/to/module.sh But when I use .desktop file to run script on startup: [Desktop Entry] Type=Application Exec=gksudo /...
notgiorgi's user avatar
  • 133

1
2 3 4 5
7