Questions tagged [.desktop]

A .desktop file describes how a particular program is to be launched, how it appears in menus, etc. It is used by Freedesktop-compliant environments such as Gnome, KDE and Xfce.

Filter by
Sorted by
Tagged with
6
votes
3answers
6k views

Getting the current path in .desktop EXEC command

Im trying to make a .desktop file run a .sh which is stored in the same directory as the .desktop. The whole directory needs to be portable and moved from machine to machine. my run script is run.sh ...
0
votes
0answers
10 views

Udisksctl usage in Desktop Entry (.desktop files): Mount an ISO & Open in default File Manager

I have more than a few ISO files that don't behave with archivers, file managers, or any other graphical tools. For these, only mount or udisksctl will work, but I'd hoped for a seamless solution ...
0
votes
1answer
28 views

Centos 7 RPM Packaging - Create a desktop shortcut during installation

I am developing a cross-platform UI with .Net Core and am packaging it using RPM Package Manager. I have created the RPM file to be locally installed. The %install section of my spec file looks like ...
2
votes
1answer
735 views

Xampp launcher does not open window

I am creating Xampp desktop launcher on my Linux Mint 19 and I have very interesting problem. When I run this from terminal: pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /opt/lampp/manager-...
0
votes
1answer
65 views

Gnome: Possible to get each instance of an application associated with the icon which was used to start it?

I'm using Gnome 3.30 and beyond org.gnome.Terminal.desktop, I have two additional .desktop files with Exec=gnome-terminal --window-with-profile=XXX, where profile XXX uses custom command ssh kalle@XXX,...
1
vote
1answer
129 views

How do I make custom .desktop files behave correctly in the Gnome 3 sidebar?

I've installed TeamSpeak 3 to $HOME/Applications and I've created a custom desktop file: [Desktop Entry] Name=TeamSpeak 3 Comment=VOIP Client Path=/home/tomas/Applications/TeamSpeak3-Client-...
2
votes
2answers
2k views

How to add a software to the list under “open with” other applications in Linux Mint 16?

I want to add a software to the "open with" other applications list that drops down after clicking on a photo to open. I installed Photoscape on my Linux Mint 16 system but it does not show in the ...
1
vote
0answers
61 views

How debug the launch of a .desktop Desktop's file

When I right click a desktop icon, and click 'Execute' after a certain amount of seconds I get: "Did not receive a reply. Possible causes include: the remote application did not send a reply, the ...
3
votes
1answer
2k views

.desktop file does not work from /usr/share/applications

I created the following .desktop file under Fedora 24 using GNOME 3. [Desktop Entry] Encoding=UTF-8 Name=Jabref Exec=java -jar /home/zoltan/Bureau/Programs/JabRef-3.7-dev--snapshot--2016-11-08--...
0
votes
0answers
195 views

What is the correct way to associate MIME type with applications that have multiple desktop entries?

Description Applications in GUI environments represented by desktop entries (files with the desktop extension) can include a key called MimeType for supported MIME types for that application. Some ...
0
votes
0answers
19 views

How to edit desktop script to add Spotify controls ( like save/remove to library, show song or artist detail ) to context menu in Unity Launcher

The question is inspired by this post, https://unix.stackexchange.com/a/316367/319401. I was able to add control of save/pause next/previous to the context menu like the answer said, but couldn't ...
0
votes
0answers
97 views

Invalid desktop entry file: '/usr/share/applications/lxde-x-terminal-emulator.desktop'

i can't run terminal because of this error. contents of file: [Desktop Entry] Version=1.0 Name=Terminal emulator Name[pt_BR]=Emulador de terminal Name[zh_CN]=终端 Name[zh_TW]=終端機 Comment=...
1
vote
3answers
2k views

Start desktop launcher from command line on Mint

Can I start a desktop launcher from command line? E.g. I have a desktop launcher for slack in my ~/Desktop directory: vadim@my-pc ~/Desktop $ cat slack.desktop [Desktop Entry] Name=Slack Comment=...
0
votes
1answer
1k views

line 1: [Desktop: command not found on .desktop file

When I try to execute this file: [Desktop Entry] Type=Application Name=Shiginima Launcher Icon=/home/edoardo/Immagini/SVG/minecraft-1.svg Exec=java -jar /home/edoardo/Scrivania/Giochi/Minecraft/...
1
vote
1answer
37 views

Desktop environment that raises terminal with gnu-screen instead of starting new one

I want to start a gnu-screen session, in a terminal, from gnome. I wrote the following desktop file [Desktop Entry] Version=1.0 Name=Screen Comment=Use the command line Keywords=shell;prompt;command;...
0
votes
0answers
36 views

Debian Gnome desktop - how to add parameters to the start of a program

I can start a program with parameters in a terminal terminator -l MyLayout How do I add parameters on start of a program when I press the command key or go to activities and select the application ...
0
votes
0answers
52 views

How to change user in .desktop file?

I have a .desktop file whose Exec= line I want to be run as another user. In a systemd service file, I can achieve this with a User= and Group= option. How to do the same in a .desktop file?
4
votes
2answers
334 views

Bash command to delete a certain file in * folders

I have a .desktop file that execs with bash -c to set an environment variable then load the program. Now I need to add another command before it goes to loading the program. Sometimes the program ...
0
votes
1answer
77 views

I installed Eclipse, how do I make it searchable?

I downloaded the installer and installed Eclipse to my Downloads directory. I also added the path to my Path variable so when I open a terminal and type eclipse, it runs. However, when I open the ...
1
vote
1answer
421 views

CentOS7 how to get xscreensaver working at login screen?

I was able to place the xscreensaver.desktop shown below in /usr/share/gdm/greeter/autostart to run xscreensaver at the login screen. I can see that the xscreensaver process is running as gdm user. ...
4
votes
1answer
618 views

Steam is unable to create .desktop file(s). Workaround or fix?

Today, I bought Project Hospital game on Steam for my Linux Mint 19 Cinnamon. I do have only this game installed, so I am unable to determine if the issue persists with other games. While the game ...
1
vote
0answers
41 views

Is there a GUI tool to organize 'open with' entries?

As there are several places where a file manager can get its entries for the context menus 'open-with' list, and some of these entries are not too easy to identify by hand, I asked myself if there is ...
0
votes
1answer
28 views

Protect user edited *.desktop files from upgrades

I like to edit /usr/share/applications/*.desktop files (fortunately, just a few of them) to fit my needs. When the relative application is updated, though, those edits I made get lost. How should I ...
2
votes
1answer
591 views

Making vim the default editor when I double click a file

When I run vim from the start menu, it opens up an xfce terminal window and runs vim. However, when I set vim to be my default text editor and double-click a file, it runs in xterm instead of the xfce ...
-1
votes
1answer
28 views

KDE .Deskop Exec doesn't return to prompt in terminal

I am trying to add an entry in KDE Menu Editor, that executes a command in terminal, and return to prompt in the opened terminal. The result: new terminal is opened, the command is executed but no ...
0
votes
1answer
36 views

Run combined hexo command from desktop entry

I have Debian 9.5 with xfce and hexo: 3.7.1 The question is about throttle my script called "draft": s@lokal:~$ sudo cat /usr/local/bin/draft #!/bin/bash killall hexo cd /home/s/Dropbox/blog hexo ...
2
votes
1answer
2k views

set multiple environment variables in .desktop file

I can add env in .desktop file in /usr/share/applications/ Exec=env FOO=bar /usr/bin/my_prog but I need to set 2 environment variables and no approach that I tried works (using env twice, appending ...
6
votes
2answers
5k views

i3wm dmenu add .desktop file

I wanted to add Android studio to the i3dmenu in: /usr/share/applications with the file android-studio.desktop containing: [Desktop Entry] Version=1.0 Type=Application Name=android-studio Exec="/usr/...
1
vote
0answers
207 views

How do i use a different GTK theme for netbeans?

I'm using Adapta blue as default desktop theme in my Fedora Linux workstation. However, I like Ambiance theme rendering of Netbeans IDE 9.0. I modified the launcher's exec in /usr/share/applications/...
3
votes
2answers
1k views

Nix desktop files

When I install a GUI application using nix, I see desktop files end inside ~/.nix-profile directory, e.g: ~/.nix-profile/share/applications/firefox.desktop However, my desktop expect that files to ...
9
votes
1answer
4k views

How to validate/verify .desktop files?

I have a couple of .desktop files that aren't working as expected or not at all. I can't see any error anywhere and asking for help on each one seems unproductive. Is there a way I can verify that I'm ...
-3
votes
2answers
3k views

Do `%f, %F, %u, %U` belong to bash?

I don't find %f, %F, %u, %U in bash manual. In /usr/share/applications/gedit.desktop, I also see similar usage: [Desktop Entry] Name=gedit GenericName=Text Editor Comment=Edit text files Exec=gedit %...
3
votes
1answer
1k views

List all desktop files that appears in application menu

Context I'm using GNOME 3.22 and I want to organize all desktop files in groups. To do so, I must list all desktop files that appears in the application menu and use some command from this guide to ...
6
votes
1answer
755 views

What does %k mean in Exec=?

Exec=sh -c "some command' %k No info in man sh and man exec on %k. What does %k mean here?
0
votes
0answers
257 views

Why *.desktop files of Gnome in /usr/share/applications are able to make Gnome fails?

I have a almost minimal installation of Debian 9.3 with Gnome 3 as a desktop environment and lightdm as display manager. It has to run in a kiosk-like mode, so I am getting rid of as much components ...
14
votes
1answer
5k views

What is the TryExec field in .desktop files?

I have searched a great deal and have been unable to find an answer to this. What does the TryExec field do in .desktop files? How does it differ from the Exec field?
-1
votes
1answer
30 views

How to make a Chromium instance with its own icon

As you probably have noticed most calendaring applications in Linux suck, so I have decided doing something about it. Basically I want to create an Arch package that puts Google Calendar right into ...
3
votes
1answer
4k views

Autostarting .desktop application at startup not working

I have read that adding a .desktop file to /etc/xdg/autostart can start an application at startup. I did the same to execute my application. But nothing happens on startup. Following is the content of ...
10
votes
2answers
3k views

How do I debug a .desktop file?

I have a .desktop file to start a python program in a specific conda environment, like this: [Desktop Entry] Version=1.0 Name=Qutebrowser GenericName=Web Browser Comment=View and edit files MimeType=...
1
vote
1answer
146 views

How to check why .desktop file is not running?

I have a desktop file with the following content: [Desktop Entry] Type = Service Name = Konqueror Exec = konqueror %U Comment = KDE File Manager & Web Browser Icon = konqueror Upon launching it ...
0
votes
1answer
215 views

How do I write a custom application launcher that runs an application as a specific group?

I am running Linux Mint Mate 18.2, from my console I currently run an application as a specific group using the following command sudo -g my-group "/home/me/apps/my.app/bin/start.sh" %f This ...
2
votes
2answers
245 views

Duplicates of .desktop files in Linux

I have a duplication of NetBeans for .desktop . I cannot find where these .desktop files are, I have searched for them using the GUI file explorer and cannot find them. And yes, I have looked in /usr/...
0
votes
1answer
3k views

Error 'Invalid desktop entry file:' when using web browser in LXDE

My system is Linux Lubuntu 17.10 and Firefox is installed as a browser. It can be accessed through the application panel, but clicking on the Web Browser Icon on the Task Bar leads to the following ...
1
vote
0answers
125 views

Can I use .desktop to treat a process as a separate app?

I would like to run a special instance of application foo on the GNOME desktop. Normally all foo windows are grouped together, but I'd like one instance to be treated as a separate application bar: ...
3
votes
2answers
2k views

What is Linux equivalent of CMD /K?

There is a .desktop compilation script, that needs to remain open after terminating, in case there are errors I need to correct. In Windows, I would run cmd /k script.bat, and the /k would keep a cmd ...
2
votes
0answers
55 views

Locate the .desktop file for a special menu item

There are various reasons why orphaned menu items can remain after package removal and need to be fixed in the package. In order to investigate the bug, it can help to see the exact path of the ....
1
vote
0answers
165 views

Different window class for a certain window

First at all i don't know if class is the correct word, so my apologies. I have this *.desktop file to open gnuplot #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=...
0
votes
1answer
353 views

What is the command line equivalent of xdg Terminal=true?

When I create an xdg-desktop file with Terminal=true, this has the effect of: launching a new terminal window running the command in that terminal (from Exec=command) What is the equivalent CLI ...
0
votes
1answer
911 views

gtk-launch only works when present working directory is Desktop

I just figured out how to manually create a .desktop file which allows a program to be launched by issuing the command gtk-launch [program.desktop]. Problem is it only seems to work if my present ...
0
votes
1answer
385 views

Cinnamon install showing Gnome as desktop?

I have installed the cinnamon desktop on arch. I can't see any icons in my menu, but the .desktop files are there. The icons are all specified to only show in "X-Cinnamon", but $XDG_CURRENT_DESKTOP ...