Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
46 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 ...
0
votes
0answers
66 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
11 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
48 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
1answer
33 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
28 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
39 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?
0
votes
1answer
52 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 ...
5
votes
1answer
580 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
1answer
397 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-...
1
vote
0answers
34 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
23 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 ...
-1
votes
1answer
27 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
0answers
66 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-...
0
votes
1answer
35 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 ...
1
vote
0answers
171 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/...
2
votes
1answer
1k 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 ...
1
vote
3answers
958 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
0answers
41 views

Using Exec=konsole -e in a .desktop file does not work as expected [duplicate]

I have a desktop file to provide a custom "action" in the Dolphin context menu, as per this answer: [Desktop Entry] Type=Service Icon=upload-media X-KDE-ServiceTypes=KonqPopupMenu/Plugin MimeType=all/...
0
votes
0answers
132 views

Open Link (type 2) desktop files from the command line

I have a Link (type 2) desktop file that looks like this: $ cat example.desktop [Desktop Entry] Encoding=UTF-8 Name=Link to The World Wide Web project Type=Link URL=http://info.cern.ch/hypertext/WWW/...
6
votes
1answer
705 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
210 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 ...
-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 ...
1
vote
1answer
307 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. ...
1
vote
1answer
125 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
187 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
223 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
110 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: ...
2
votes
0answers
51 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
140 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
319 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
731 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
367 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 ...
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
329 views

What is the advantage of .desktop files without executable bit set?

The freedesktop organization defines the standard for .desktop files. Unfortunately it defines not the permissions of the file (see freedesktop mailinglist) and software is distributed with a) ...
0
votes
1answer
755 views

desktop action with bash command and terminal [closed]

I try to create a desktop file service action, under KDE, to split flac files by their cue and I would like it to open some terminal to display the process, ideally to wait for me to close it (for ...
-3
votes
2answers
2k 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 %...
5
votes
2answers
4k 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/...
3
votes
1answer
26 views

How to give a program an additional name/label for search?

I am starting a lot of programs via the synapse launcher. For convenience, I'd like to give a program an additional name/label/tag/whatever, such as "XXYYZZ". Is this possible (on XFCE)?
2
votes
0answers
45 views

Formatting of strings in .desktop files

I have accidentally noticed that on my machine (running KDE) fields of desktop entries (those little .desktop files used to make desktop icons and such) may contain some simple HTML-style formatting, ...
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 ...
3
votes
1answer
604 views

Add another sub-level to KDE-Submenu in Dolphin actions/services?

Is it possible to create lower levels of sub-menus in Dolphin context menu than the one created by the line X-KDE-Submenu= under [Desktop Entry]? Example: I have created an action called "Subtitles"...
0
votes
1answer
124 views

What are all possible values for the 'Type=' option in a .desktop service file in KDE/Dolphin's?

In application launchers that I have seen is Type=Application, in Dolphin actions (that I can create in ~/.local/share/kservices5) it is Type=Service. Are there other possibilities beside these two ...
0
votes
1answer
255 views

How can I use ifuse command in a bash script? [duplicate]

When I enter this command in a terminal window, it works as expected: ifuse "/home/sadi/mnt" But it is ineffective when used in a bash script run via a .desktop file. What can I do to use it like ...
0
votes
1answer
287 views

convert .desktop files to Debian Menu System files

As I noticed more and more programs come without an entry for the Debian Menu System, but they do come at least with some .desktop file. Is there a (ready made) way to convert these .desktop files to ...
0
votes
1answer
68 views

freedesktop menus and redundancy of entries

i wanted to create my own menu in xfce, with only the items i needed. i succeeded with the following code: <Menu> <!--find *.desktop files--> <DefaultAppDirs /> <...
2
votes
0answers
167 views

how to specify which terminal is used by gtk-launch

As discussed here, gtk-launch can launch applications either directly or in a terminal window, depending on whether the .desktop file specifies that the application runs in a terminal. It seems to me ...
4
votes
1answer
176 views

determine (in script) if command runs in terminal (from desktop file?)

Simplified down, I want to write a shell function which runs a program in a new window. For applications like … emacs, firefox, gitk that can look like this: myopen() { $@ } But I want to open ...
2
votes
1answer
1k 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--...