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
0
votes
1answer
388 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
860 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 ...
2
votes
1answer
27 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
1answer
6k views

How do I create an Xfce application menu containing only the contents of one category?

I want to create an application menu in Xfce that contains no submenus, rather just contains application launchers for all .desktop files in the virtualization category. If you are uncertain as to ...
2
votes
0answers
47 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, ...
2
votes
1answer
689 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
137 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
274 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
306 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
77 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
180 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
194 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 ...
6
votes
1answer
991 views

Spotify controls (next, previous etc) via context menu in gnome favorites

I've added Spotify launcher to Gnome Shell Dash so it's now a favorite app. How do I add next / prev / play-pause / stop commands to Spotify context menu ? For those who still find this unclear, the ...
6
votes
1answer
943 views

Should “#!/usr/bin/env xdg-open” be included in .desktop files?

Some people add the following line to a .desktop file: #!/usr/bin/env xdg-open But when I checked files under the /usr/share/applications/ in my debian sid, there's no such file that would include ...
1
vote
1answer
1k views

How to fix the intermittent double click behavior of my Ubuntu 16.04 Unity desktop files

I tried and tested @terdon's .desktop file yesterday. Here it is: "A cleaner way would be to write a .desktop file that launches your script and then double click that. Something like: [Desktop ...
2
votes
1answer
162 views

.desktop file for ncurses application

I am trying to create a .desktop file for the calcurse ncurses calendar application: [Desktop Entry] Version=1.0 Type=Application Name=calcurse Comment=an ncurses calendar TryExec=calcurse Exec=...
0
votes
1answer
909 views

Resolving Error: Running Xilinx through Wine

I've run the Xilinx 14.7 Full Installer for Windows successfully via Wine on the prefix com.xilinx.verilog, then went to ~/Library/Application\ Support/com.xilinx.verilog_145331572525077/ to confirm ...
1
vote
0answers
295 views

How do I write an application launcher that will start Atom in a custom working directory?

I am maintaining a Jekyll-powered blog and on my local machine its git repository is located at /home/fusion809/GitHub/fusion809.github.io to edit it in Atom I have created this application launcher (...
2
votes
1answer
541 views

.desktop file execute error message

I want to run a program with a specific user group and added sg mygroup before the command in the Exec line of a .desktop file. While I could successfully run the command in a terminal, I could not ...
1
vote
3answers
3k views

How to automatically “Run in Terminal” for script in CentOS linux

I have a simple script that basically does "tail -1000f /public/XERlog" I created a file called log.desktop on the desktop which contains: Exec= tail -1000f /public/XERlog Name= XERlog Path=/tmp/ ...
7
votes
1answer
5k views

How to pass argument in .desktop file

When launching an application through the command line I successfully use: gourmet --gourmet-directory $HOME/my/custom/path/ But it does not work when trying to replicate this behaviour on a ....
2
votes
0answers
242 views

How to make desktop shortcut to start command with custom title font and window borders

Im Using Linux Mint 17.2 rafaela amd64 with cinnamon. I have a couple old windows themes I downloaded and if I apply them with the system settings dialog I get this: t Which is great! Except I only ...
4
votes
1answer
586 views

How could a script know the path of the .desktop file that launched it?

How would a bash script know if it has been launched by a .desktop file, and how would it know the path of that launcher? Extra Points: How would I extract the "comment" field of that .desktop file - ...
2
votes
0answers
110 views

Keep mouse pointer busy while launching a script

I have a Windows program which is run via wine. Since it needs a couple steps of preparation, I created a script app.sh: #!/bin/sh do-something do-something-else wine app.exe Then I added the app to ...
5
votes
0answers
89 views

library for .desktop files [closed]

How can I read .desktop files without having to (re)invent the wheel?  Is there a Python or C library that is available in the Ubuntu repos?  Or something with a command line front-end that could be ...
1
vote
1answer
126 views

Mailto not working with custom .desktop file

My problem is that mailto links do not seem to work properly. I'm using Sylpheed, but that's not specific to the problem. I created a file at /usr/share/applications/sylpheed-compose.desktop so that ...
2
votes
1answer
402 views

.desktop file. Correct exec path

I use Fedora. There are a number of programmes packaged in a security spin. Included desktop files work but open the programmes with root priviliges. How can I edit the desktop file shown here to ...
2
votes
2answers
138 views

Nightly show as Firefox in Dash

I have created the following .desktop file in ~/.local/share/applications, when I search "Nightly" Nightly appears in search results with the correct icon(earth at night), but when I opened it it ...
1
vote
0answers
86 views

How do I assign a value to the Path key in a .desktop file including the $HOME environment variable correctly?

I'm making a .desktop file for Minecraft. Nothing appears to happen upon executing the it. The Exec and Path keys in the file: Exec=java -jar Minecraft.jar Path=$HOME/.minecraft/ I've also tried ...
3
votes
2answers
1k views

How do I write a command for the Exec key in a .desktop file containing a reserved character correctly?

I'm trying to make a .desktop file for Minecraft. Nothing appears to happen upon executing the file. I've tried assigning the Exec key as follows: Exec= java -jar "~/.minecraft/Minecraft.jar" Exec= ...
0
votes
0answers
626 views

Linux Mint - Just created launcher does not show on MATE desktop but is in ls listing

I created a launcher by right-clicking on my Desktop, filled in the fields and saved it. But it didn't appear on my Desktop. So I opened Caja and it did not show there either. So I opened a terminal ...
1
vote
1answer
2k views

Run specific command from .desktop with root

I have a program that I wish all users of my linux install to be able to run with root privileges from a .desktop file. Currently in my .desktop file I have: Exec=gksu command but this of cause ...
1
vote
1answer
2k views

Getting Current path in .desktop entry for ICON 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. Now I can get the ...
3
votes
1answer
281 views

Read .desktop files programmatically [closed]

I would like to make a C program (GTK) that reads a .desktop file. The only thing I need from the .desktop file is the exec command. Is there something built into GTK that would allow me to interact ...
1
vote
0answers
230 views

How to put a desktop entry into applications list in open-with dialogs?

Here is my desktop file: [Desktop Entry] Exec=/home/kaiyin/workspace/python/python3_scripts/unz.py %f MimeType=application/gzip;application/x-compressed-tar;application/zip;application/x-bzip; Name=...
1
vote
1answer
35 views

Icon stops loading after the application restarts

I have a application which uses "self-restart" mechanism. It kills itself and runs again. When I run it first time (with .desktop file) it loads its icon correctly. The problem is that when it ...
0
votes
1answer
2k views

Troubles with .desktop file

I've successfully installed Internet Explorer 7 with winetrick in a clean prefix. I can successfully run it from terminal like this: env WINEPREFIX=~/.wine32ie7 wine 'C:\\Program Files\\Internet ...
2
votes
1answer
464 views

Proper use of escape characters in desktop file

I have a command with a working .desktop Exec key as follows: Exec=env XDG_CONFIG_HOME=/home/bean/.config/gedit/ gedit %U I would like to use the $HOME variable instead and it works in the terminal ...