Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
1 answers
33 views
Making Neovim from GitHub the default file handler for text/source files
There may be a simple answer to this, but if there is, I'm not aware of it. I've downloaded the latest GitHub release of Neovim, because the one in the `apt` repositories is outdated by a few major versions. After following the installation instructions on the GitHub page, the `nvim` executable is p...
There may be a simple answer to this, but if there is, I'm not aware of it. I've downloaded the latest GitHub release of Neovim, because the one in the apt repositories is outdated by a few major versions. After following the installation instructions on the GitHub page, the nvim executable is placed in /opt/nvim-linux-x86_64/bin. From there, I can simply add it to my PATH in my .bashrc. This works fine for terminal use, but what if I got lazy and wanted to open files via the graphical file browser? It works fine with the apt version, because that is a deb package and everything. In the "Default Applications" app on Mint I've tried setting the default app for source code and text files as the nvim executable. It says it works, but when I try to double-click on a text file to open it, it doesn't. I've tried it numerous times, and I also tried adding the %U flag to it, to no avail. So as the title says, how can I set this version of nvim as my default app for text/source files?
Tumbleweed64 (23 rep)
Jul 29, 2025, 11:26 PM • Last activity: Jul 30, 2025, 06:08 AM
5 votes
2 answers
6080 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--master--fffad83.jar Icon=/home/zoltan/Bureau/Programs/Icons/Jabref Type=Application Categories=Developme...
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--master--fffad83.jar Icon=/home/zoltan/Bureau/Programs/Icons/Jabref Type=Application Categories=Development When I opened it from the desktop, it launched the application, however when I copied it to /usr/share/applications, the system couldn't recognise it and so I cannot launch it quickly. What can be the problem?
Zoltan Csati (153 rep)
Nov 23, 2016, 02:46 PM • Last activity: Jul 17, 2025, 04:29 PM
0 votes
2 answers
71 views
Multiple desktop files using the same system wide /usr/share/application desltop files
I have an application in which I have created a /usr/share/application/foo.desktop from my dpkg. I wish to have multiple instances of LINK types on my ~/Desktop/ which vary only the Name and Exec. It had looked easy and my attempt at it 'sort of' worked, except the Desktop/foo1.desktop and foo2.desk...
I have an application in which I have created a /usr/share/application/foo.desktop from my dpkg. I wish to have multiple instances of LINK types on my ~/Desktop/ which vary only the Name and Exec. It had looked easy and my attempt at it 'sort of' worked, except the Desktop/foo1.desktop and foo2.desktop do not get the Icon from the /usr/share/application file. What I want seems simple enough. You have a standard desktop file installed by package and then link to it, and each link varies some key parameters. In my case this is a type of recorder, and I would initiate multiple different data stream records. ChatGPT seems to think this cannot be done. I am skeptical as most of it does seem to work. I feel that I am missing some key point so suggestions are welcome. If anyone is interested, I can post examples.
Dale Amon (101 rep)
Oct 30, 2024, 04:59 PM • Last activity: Jul 17, 2025, 04:17 PM
1 votes
2 answers
431 views
.desktop files on Red Hat desktop launches gedit ONLY from desktop shortcut
I have .desktop files (shortcuts) on a RHEL 8.8 machine that are set up correctly and work on other RHEL systems, but for some reason, whenever trying to launch (double click) on these desktop files FROM the GUI it opens them in gedit. There used to be an option when right clicking on these files to...
I have .desktop files (shortcuts) on a RHEL 8.8 machine that are set up correctly and work on other RHEL systems, but for some reason, whenever trying to launch (double click) on these desktop files FROM the GUI it opens them in gedit. There used to be an option when right clicking on these files to "Allow Launching" which was part of our installation instructions for customers but that doesn't exist in the RMC menu anymore for any of the .desktop files. They are all set to executable. I installed the GNOME Tweaks and other add-on extensions and it's all set to use shortcuts. My software's shortcut is proprietary so I'm sharing one for Perforce. Getting a crash course in MIME types and GNOME desktop, but nothing is helping. I am comparing the /usr/share/application and /usr/share/packages locations and so far everything matches the systems where this functionality WORKS. Here's an example of one of the .desktop files:
[Desktop Entry]
Type=Application
MimeType=application/x-desktop
Name=P4V
Icon=/home/tcgllc/Perforce/p4v-2023.4.2558838/lib/P4VResources/icons/p4v.svg
Exec=/home/tcgllc/Perforce/p4v-2023.4.2558838/bin/p4v
Terminal=false
Path=/home/tcgllc/Perforce/p4v-2023.4.2558838/bin
One crazy aspect of this is that double clicking on them in the Files app (opened to ~/Desktop) works! It's JUST the .desktop files, in ~/Desktop, via double clicking on the gui. Tried all of the following: Copied P4V.desktop to /usr/share/applications
gio set P4V.desktop metadata::trusted true
gio set P4V.desktop metadata::trusted yes
xdg-mime default P4V.desktop application/x-desktop
update-desktop-database /usr/share/applications
update-mime-database /usr/share/mime
xdg-desktop-menu install /usr/share/applications/P4V.desktop --novendor
when I run file --mime P4V.desktop the output is
/home/tcgllc/Desktop/P4V.desktop: text/plain; charset=us-ascii
I have the free RHEL Developer subscription but it's self supported, RHEL Knowledgebase has been searched. I've been pulling my hair out for 2 days. I've tried everything I could find on google and I'm screaming uncle. If anyone can help me with this issue I would be immensely grateful! TIA KL Editing to add what I've tried based on chubblywarner's comments (sorry new here, I just saw it said to edit original post!?) YES you are correct in all of your initial points. I ended up re-creating the .desktop file and removing the copies of it I had placed all over the system to "start fresh". $ nano P4V.desktop (made updates to .desktop file) $ chmod +x ~/Desktop/P4V.desktop $ sudo update-mime-database /usr/share/mime $ sudo update-desktop-database $ gio info P4V.desktop standard::icon: application-x-desktop, text-x-generic standard::content-type: application/x-desktop standard::fast-content-type: application/x-desktop standard::symbolic-icon: application-x-desktop-symbolic, text-x-generic-symbolic, application-x-desktop, text-x-generic access::can-read: TRUE access::can-write: TRUE access::can-execute: TRUE access::can-delete: TRUE access::can-trash: TRUE access::can-rename: TRUE owner::user: tcgllc owner::user-real: tcgllc owner::group: tcgllc selinux::context: unconfined_u:object_r:user_home_t:s0 xattr-sys::security.selinux: unconfined_u:object_r:user_home_t:s0 metadata::nautilus-icon-position: 0,283 $ xdg-mime default P4V.desktop application/x-desktop $ gsettings get org.gnome.nautilus.preferences executable-text-activation 'launch' $ grep -r "application/x-desktop" ~/.config /etc/xdg /home/tcgllc/.config/mimeapps.list:application/x-desktop=org.gnome.gedit.desktop; /home/tcgllc/.config/mimeapps.list:application/x-desktop=P4V.desktop $ getenforce Permissive I'm not sure if anything below is useful, but it does look like there are warnings, permission issues? $ journalctl -b | grep -i desktop .... Aug 29 15:52:04 TEW-LINUX sudo: tcgllc : TTY=pts/0 ; PWD=/home/tcgllc/Desktop ; USER=root ; COMMAND=/bin/update-desktop-database Aug 29 15:52:21 TEW-LINUX sudo: tcgllc : TTY=pts/0 ; PWD=/home/tcgllc/Desktop ; USER=root ; COMMAND=/bin/update-desktop-database Aug 29 15:53:12 TEW-LINUX sudo: tcgllc : TTY=pts/0 ; PWD=/home/tcgllc/Desktop ; USER=root ; COMMAND=/bin/xdg-mime default P4V.desktop application/x-desktop Aug 29 15:53:52 TEW-LINUX gnome-session: gnome-session-binary: WARNING: Unable to inhibit system: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied Aug 29 15:53:52 TEW-LINUX gnome-session-binary: WARNING: Unable to inhibit system: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied Aug 29 15:53:53 TEW-LINUX gnome-shell: desktop-icons: File System Manager.desktop is writable by others - will not allow launching Aug 29 15:54:51 TEW-LINUX sudo: tcgllc : TTY=pts/0 ; PWD=/home/tcgllc/Desktop ; USER=root ; COMMAND=/bin/xdg-mime default P4V.desktop application/x-desktop Aug 29 15:55:15 TEW-LINUX sudo: tcgllc : TTY=pts/1 ; PWD=/usr/share/applications ; USER=root ; COMMAND=/bin/rm P4V.desktop Aug 29 16:23:31 TEW-LINUX gnome-session: gnome-session-binary: WARNING: Unable to inhibit system: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied Aug 29 16:23:31 TEW-LINUX gnome-session-binary: WARNING: Unable to inhibit system: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied Aug 29 16:26:53 TEW-LINUX org.gnome.Shell.desktop: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2400101 Aug 29 16:29:05 TEW-LINUX sudo: tcgllc : TTY=pts/0 ; PWD=/home/tcgllc/Desktop ; USER=root ; COMMAND=/bin/update-mime-database /usr/share/mime Aug 29 16:29:16 TEW-LINUX sudo: tcgllc : TTY=pts/0 ; PWD=/home/tcgllc/Desktop ; USER=root ; COMMAND=/bin/update-desktop-database Aug 29 16:31:35 TEW-LINUX org.gnome.Shell.desktop: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2000007 _updateDesktopIfChanged@/usr/share/gnome-shell/extensions/desktop-icons@gnome-shell-extensions.gcampax.github.com/desktopManager.js:415:21 _monitorDesktopFolder/<@/usr/share/gnome-shell/extensions/desktop-icons@gnome-shell-extensions.gcampax.github.com/desktopManager.js:368:89 Aug 29 16:32:27 TEW-LINUX gnome-shell: desktop-icons: File System Manager.desktop is writable by others - will not allow launching Aug 29 16:33:09 TEW-LINUX sudo: tcgllc : TTY=pts/0 ; PWD=/home/tcgllc/Desktop ; USER=root ; COMMAND=/bin/update-mime-database /usr/share/mime Aug 29 16:33:41 TEW-LINUX sudo: tcgllc : TTY=pts/0 ; PWD=/home/tcgllc/Desktop ; USER=root ; COMMAND=/bin/update-desktop-database Aug 29 16:36:02 TEW-LINUX org.gnome.Shell.desktop: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x2400101 Then, the final few commands: $ gnome-shell --version GNOME Shell 3.32.2 $ rpm -qa | grep gnome gnome-desktop3-3.32.2-1.el8.x86_64 gnome-shell-3.32.2-50.el8.x86_64 gnome-shell-extension-common-3.32.1-39.el8_10.noarch gnome-shell-extension-top-icons-3.32.1-39.el8_10.noarch chrome-gnome-shell-10.1-7.el8.x86_64 gnome-online-accounts-3.28.2-4.el8.x86_64 gnome-system-monitor-3.28.2-1.el8.x86_64 gnome-control-center-filesystem-3.28.2-37.el8.noarch gnome-terminal-3.28.3-3.el8.x86_64 gnome-shell-extension-places-menu-3.32.1-39.el8_10.noarch gnome-screenshot-3.26.0-3.el8.x86_64 gnome-session-wayland-session-3.28.1-19.el8.x86_64 gnome-bluetooth-libs-3.34.3-1.el8.x86_64 gnome-session-xsession-3.28.1-19.el8.x86_64 gnome-keyring-pam-3.28.2-1.el8.x86_64 gnome-control-center-3.28.2-37.el8.x86_64 gnome-shell-extension-window-list-3.32.1-39.el8_10.noarch gnome-font-viewer-3.28.0-1.el8.x86_64 gnome-user-docs-3.28.2-1.el8.noarch gnome-menus-3.13.3-11.el8.x86_64 gnome-tweaks-3.28.1-7.el8.noarch gnome-video-effects-0.4.3-3.el8.noarch gnome-themes-standard-3.22.3-4.el8.x86_64 gnome-shell-extension-horizontal-workspaces-3.32.1-39.el8_10.noarch gnome-classic-session-3.32.1-39.el8_10.noarch gnome-initial-setup-3.28.0-11.el8.x86_64 gnome-color-manager-3.28.0-3.el8.x86_64 gnome-calculator-3.28.2-2.el8.x86_64 gnome-shell-extension-user-theme-3.32.1-39.el8_10.noarch gnome-settings-daemon-3.32.0-19.el8.x86_64 libgnomekbd-3.26.0-4.el8.x86_64 gnome-shell-extension-launch-new-instance-3.32.1-39.el8_10.noarch gnome-software-3.36.1-11.el8.x86_64 gnome-bluetooth-3.34.3-1.el8.x86_64 gnome-session-3.28.1-19.el8.x86_64 gnome-keyring-3.28.2-1.el8.x86_64 gnome-autoar-0.2.3-2.el8.x86_64 gnome-shell-extension-apps-menu-3.32.1-39.el8_10.noarch gnome-boxes-3.36.5-8.el8.x86_64 gnome-terminal-nautilus-3.28.3-3.el8.x86_64 gnome-logs-3.28.5-3.el8.x86_64 gnome-getting-started-docs-3.28.2-1.el8.noarch gnome-shell-extension-desktop-icons-3.32.1-39.el8_10.noarch gnome-disk-utility-3.28.3-2.el8.x86_64 gnome-remote-desktop-0.1.8-3.el8.x86_64 gnome-characters-3.28.2-1.el8.x86_64 $ $ ls -l ~/Desktop/P4V.desktop -rwxrwxr-x. 1 tcgllc tcgllc 298 Aug 29 16:32 /home/tcgllc/Desktop/P4V.desktop I appreciate SO MUCH all of your help in diagnosing this weirdness. Unfortunately, I still only get gedit double clicking on the .desktop file ON the desktop. And still, when I double click on the .desktop files in the Files App, it will launch correctly. I'm going to include a visual of this. I do get the "Untrusted application launcher" pop up the first time running P4V.desktop in the Files App. Thereafter, the icon shows as expected. enter image description here Also, if I am responding to or communicating with you incorrectly, let me know what I should do if different. :) TYSVM
Klyn610 (11 rep)
Aug 29, 2024, 01:51 PM • Last activity: Jul 17, 2025, 03:49 PM
21 votes
1 answers
13365 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 using the correct syntax in the file, that it complies with the FreeDesktop standard, so I can ap...
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 using the correct syntax in the file, that it complies with the FreeDesktop standard, so I can apply specific fixes?
Braiam (36866 rep)
Sep 22, 2014, 04:50 PM • Last activity: Jul 17, 2025, 03:06 PM
8 votes
3 answers
12914 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 working directory is the Desktop directory for my username. Thus when I enter the command `gtk-launc...
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 working directory is the Desktop directory for my username. Thus when I enter the command gtk-launch program.desktop it runs. The problem is when I try to enter gtk-launch /home/userName/Desktop/program.desktop. Instead I get a message from terminal saying: **gtk-launch: no such application.** I know the file is there and cat works just fine reading it. Why does gtk-launch only seem to be working from inside Desktop? Can I get around this? I'm using Kali linux with GNOME from a persistent USB.
Shadow43375 (261 rep)
Sep 19, 2017, 12:14 AM • Last activity: Jul 12, 2025, 03:50 AM
0 votes
2 answers
2649 views
Cannot launch a desktop file using wine
I am not entirely sure this is the right place to post but I have Pop!_OS 22.04 LTS on my computer, and I tried playing the nostalgic game "Transformers: Fall of Cybertron". I found a windows copy, and since I am a total noob in linux, I probably missing some obious answers to this. When I try in Te...
I am not entirely sure this is the right place to post but I have Pop!_OS 22.04 LTS on my computer, and I tried playing the nostalgic game "Transformers: Fall of Cybertron". I found a windows copy, and since I am a total noob in linux, I probably missing some obious answers to this. When I try in Terminal: wine "/home/danielgrant/.local/share/applications/wine/Programs/Activision/Transformers Fall of Cybertron/Transformers Fall of Cybertron.desktop" I get the following error: MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0 0054:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\nsiproxy": c0000003 MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0 0024:err:process:exec_process L"Z:\\home\\danielgrant\\.local\\share\\applications\\wine\\Programs\\Activision\\Transformers Fall of Cybertron\\Transformers Fall of Cybertron.desktop" not supported on this system I have no Idea where even to start, so I would appreciate every help possible.
shlomi (1 rep)
Jul 13, 2022, 08:30 AM • Last activity: Jul 8, 2025, 10:05 AM
0 votes
1 answers
1994 views
How to create a Desktop Entry that executes a bash script inside the terminal?
**How to create a Desktop Entry that executes a bash script inside the terminal by clicking in a shell file?** _Note_: I don't want to open a specified terminal, but the default system terminal shell instead. I tried using this file (Open with `gnome-terminal`, but I prefer to open with the default...
**How to create a Desktop Entry that executes a bash script inside the terminal by clicking in a shell file?** _Note_: I don't want to open a specified terminal, but the default system terminal shell instead. I tried using this file (Open with gnome-terminal, but I prefer to open with the default one), but with no success:
[Desktop Entry]
...etc...
Exec=gnome-terminal -- bash -c "'%u'"
...etc...
I'm using Manjaro. Exemple of I'm trying to do: 1) Click on a Bash file using the file explorer 2) Select "Open with..." and "Execute as Shell Script" 3) A new terminal window opens 4) Conclusion: Instead of typing ./filename, I just double-click in the file
Felipecconde (31 rep)
Dec 18, 2023, 04:39 PM • Last activity: Jun 30, 2025, 09:04 PM
1 votes
2 answers
7982 views
.desktop file with Exec and Terminal=True: temporarily prevent terminal shutdown on application exit?
I have a Python terminal application, that I call from a .desktop file, something like this: ```none [Desktop Entry] Version=1.0 Name=My App Exec=python3 /home/pi/my_app.py Terminal=true Type=Application Categories=Application; ``` And it does what I want: when I double-click the desktop shortcut, t...
I have a Python terminal application, that I call from a .desktop file, something like this:
[Desktop Entry]
Version=1.0
Name=My App
Exec=python3 /home/pi/my_app.py
Terminal=true
Type=Application
Categories=Application;
And it does what I want: when I double-click the desktop shortcut, terminal starts up, application runs, when it is done, the terminal is shut down too. However, recently I started getting some errors/exceptions which force the Python application to shut down - and as this also shuts down the terminal, I cannot read the error messages. So I tried something like this:
[Desktop Entry]
Version=1.0
Name=My App
Exec=python3 /home/pi/my_app.py ; read -p "press"
Terminal=true
Type=Application
Categories=Application;
... however, since it is directly in the Exec argument, and there is no explicit call to bash, the read .. part is interpreted as command line arguments to the Python program, and now the program crashes instantly, shutting down the terminal (but at least it was easier to repeat this, and realize that the error message is from Python about command line arguments). Note that I would prefer not to add a call to bash in the .desktop file, since I've noticed, when I run this app directly from a terminal, I cannot get the error reproduced (apparently the error somehow shows up only when I run it from double-clicking the .desktop file). So, what else can I do, to run this application via the .desktop shortcut in a terminal, and have it not close the terminal window when the application exits, so I can read the error messages?
sdbbs (578 rep)
Mar 8, 2021, 03:57 PM • Last activity: Jun 13, 2025, 03:04 AM
0 votes
0 answers
168 views
what program to use to start .desktop files?
I made a desktop file: [Desktop Entry] Name=TLauncher start Exec=sudo java -jar TLauncher.jar Terminal=false Type=Application I changed it to: [Desktop Entry] Name=TLauncher start Exec=sh -c "java -jar TLauncher.jar" Terminal=false Type=Application The problem is that I don’t know how to start the c...
I made a desktop file: [Desktop Entry] Name=TLauncher start Exec=sudo java -jar TLauncher.jar Terminal=false Type=Application I changed it to: [Desktop Entry] Name=TLauncher start Exec=sh -c "java -jar TLauncher.jar" Terminal=false Type=Application The problem is that I don’t know how to start the code. When I double-click the desktop file, it just opens in the text editor. What should I use to launch it, or how should I do this?
sky3889 kriper (1 rep)
Jun 5, 2024, 10:04 AM • Last activity: May 31, 2025, 08:35 AM
0 votes
0 answers
44 views
Can't get .desktop files to launch in KDE
I've recently set up a new computer running Kubuntu 25.04 (KDE 6.3.4), and I have a few .desktop files I've brought over from my previous computer (which was using Gnome), where they worked fine. However, now I can't get them to be launchable. They're basically just designed to launch Chrome with a...
I've recently set up a new computer running Kubuntu 25.04 (KDE 6.3.4), and I have a few .desktop files I've brought over from my previous computer (which was using Gnome), where they worked fine. However, now I can't get them to be launchable. They're basically just designed to launch Chrome with a few specific settings. For example:
[Desktop Entry]
Categories=Network;Chat;
Comment[en_US]=A shortcut for Disney+
Comment=A shortcut for Disney+
Exec=/home/ross/scripts/disneyplus.sh
GenericName[en_US]=
GenericName=
Icon=/home/ross/Pictures/icons/disney-plus-logo.png
MimeType=
Name[en_US]=Disney+
Name=Disney+
NoDisplay=false
Path=/home/ross/scripts/
StartupNotify=true
Terminal=false
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
which points to a script with the contents:
google-chrome --disable-extensions -url http://disneyplus.com  -start-fullscreen &
The script works fine from the command line. The .desktop file is set to be executable, but the Allow Launching option doesn't appear on the right click menu. [context menu for the .desktop file](https://i.sstatic.net/X8UxCgcg.png)
$ desktop-file-validate disneyplus.desktop
reports no errors. Most of what I've found online so far suggests using gio to set the trusted flag from CLI, but that isn't working:
$ gio set disneyplus.desktop metadata::trusted true
gio: Setting attribute metadata::trusted not supported
I don't know what else I can try. Does anyone have any ideas?
Ross Thompson (1 rep)
May 12, 2025, 09:03 PM • Last activity: May 12, 2025, 09:03 PM
0 votes
0 answers
11 views
KDE Desktop file to open a URL: Errors about cgroups no such process
I'm trying to get `mailto` URLs to open in gmail on KDE. [Viagee](https://github.com/davesteele/viagee) used to be the accepted approach, but this seems to have been killed by Google [revoking the app from its application tore](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1083120) and ignoring...
I'm trying to get mailto URLs to open in gmail on KDE. [Viagee](https://github.com/davesteele/viagee) used to be the accepted approach, but this seems to have been killed by Google [revoking the app from its application tore](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1083120) and ignoring the developer. You'd think they would care more about all the linux users in the world Google does have a special URL https://mail.google.com/mail/?extsrc=mailto&url=%u which allows you to write emails is a "secure" environment with no access to other information about your account. So I'm using this. I create a new desktop files with a mime type for the mailto: URL scheme (x-scheme-handler/mailto). Like so:
[Desktop Entry]
Name=gmail mailto
MimeType=x-scheme-handler/mailto
Exec= bash -c 'echo %U | xargs -I ARG open "https://mail.google.com/mail/?extsrc=mailto&url=ARG "'

Terminal=false
StartupNotify=true
This works fine, but when I open a mailto URL from the command line I get the following warning. I presume because open exits quickly and KDE wants to track it.
kf.kio.gui: Failed to register new cgroup: "app-gmail\\x2dmailto-181d9665b276498992d078f40c9bba08.scope" "org.freedesktop.DBus.Error.UnixProcessIdUnknown" "Failed to set unit properties: No such process"
How do I get rid of this warning?
Att Righ (1412 rep)
Apr 28, 2025, 06:36 PM • Last activity: Apr 29, 2025, 06:37 AM
1 votes
1 answers
72 views
How do I get a local application launcher to show up in Fedora 41 using Gnome?
I've created a desktop launcher called `Firefox.desktop` for a version of Firefox that is not tied to my Linux distribution (Fedora 41) and placed it in `~/.local/share/applications` and even after restarting multiple times it still does not show up in the list of applications. How do I get it to sh...
I've created a desktop launcher called Firefox.desktop for a version of Firefox that is not tied to my Linux distribution (Fedora 41) and placed it in ~/.local/share/applications and even after restarting multiple times it still does not show up in the list of applications. How do I get it to show up there? I used desktop-file-validate on the desktop file and it didn't tell me about any problems. Here are the contents:
[Desktop Entry]
Version=1.0
Type=Application
NoDisplay=true
Exec=/home/esok/Applications/firefox/firefox-bin %u
Name=Firefox
Icon=/home/esok/Applications/firefox/icons/Firefox_logo_2019.svg.png
Eric Sokolowsky (165 rep)
Apr 2, 2025, 02:43 PM • Last activity: Apr 2, 2025, 09:01 PM
10 votes
5 answers
13763 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` I've tried: [Desktop Entry] Type=Application Terminal=true Name=RunMe #Exec=sh -c "`dirname %k`/run...
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 I've tried: [Desktop Entry] Type=Application Terminal=true Name=RunMe #Exec=sh -c "dirname %k/run.sh" #Exec=bash -c "export PATH=$PATH:dirname %k; bash run.sh;" #Exec=bash -c "export PATH=$PATH:dirname %k; sh run.sh;" Exec=bash -c "export PATH=$PATH:dirname %k; run.sh;" But nothing happens when I double click the .desktop file. If I double click 'run.sh' and choose 'run' the script runs fine. If I run the script from the command line with 'sh run.sh' it works fine. Any ideas, even just how I could debug which path its actually trying to run from?
Kiksy (283 rep)
Jul 14, 2014, 08:31 AM • Last activity: Feb 4, 2025, 11:56 AM
0 votes
1 answers
45 views
Run a GUI application on startup using Services with restart always
After creating an `electron` application that starts in full screen mode, how do i have it start on machine startup using a **service**, and always stay alive? When I tried running the app using a service, the app didn't start in full screen mode. The problem with using `.desktop` unit file is that...
After creating an electron application that starts in full screen mode, how do i have it start on machine startup using a **service**, and always stay alive? When I tried running the app using a service, the app didn't start in full screen mode. The problem with using .desktop unit file is that the restart=always option isn't available. It seems that using services for GUI apps doesn't work well on system startup.
Amitai Fensterheim (101 rep)
Jan 30, 2025, 10:13 AM
0 votes
1 answers
374 views
Steam: "Could not save properties due to insufficient write access"
I've gone ahead and installed Steam (flathub) from the Discover Store on KDE Neon, and I have a Steam Icon on my desktop. What I want to do is set it to run with my dedicated GPU. So I right-clicked and chose Properties: [![Right Click Steam on KDE Neon][1]][1] Then I went to the "Application" Tab a...
I've gone ahead and installed Steam (flathub) from the Discover Store on KDE Neon, and I have a Steam Icon on my desktop. What I want to do is set it to run with my dedicated GPU. So I right-clicked and chose Properties: Right Click Steam on KDE Neon Then I went to the "Application" Tab and chose "Advanced Options". There I enabled "run using dedicated graphics card": Steam run using dedicated graphics card on KDE Neon Linux But when I save this, then I get an error popup that looks like this: Steam Properties: Could not save properties due to insufficient write access > Could not save properties due to insufficient write access to: /home/shaunroselt/Desktop/com.valvesoftware.Steam.desktop. But how and why? This is my PC. Why would I not have the sufficient write access? --- There is also nothing useful under the "Permissions" tab as those permissions aren't editable: Steam Properties - Permissions Tab --- How can I get the necessary write access so that I can change properties on Steam?
Shaun Roselt (237 rep)
Jan 2, 2025, 09:05 AM • Last activity: Jan 2, 2025, 03:26 PM
0 votes
0 answers
34 views
Default applications in linux open suse leap 15?
**Description:** Have ```linux open suse leap ~15```!!! Can't open ```org.kde.discover.desktop``` file which located in ```/home/etc/Documents/Apps/``` in folder by created me. **Problems:** 1) May be I removed something and now any ```(AnyApp.desktop)``` is could not opened in my linux system. This...
**Description:** Have
open suse leap ~15
!!! Can't open
.kde.discover.desktop
file which located in
/home/etc/Documents/Apps/
in folder by created me. **Problems:** 1) May be I removed something and now any
(AnyApp.desktop)
is could not opened in my linux system. This is my 1'st problem today. 2) Snapshots is not working also. **I Try:** 1) And when I was try opening any
.desktop
file by (double click) it just was opened with libreoffice application
(calc)
but it's impossible. 2) In Settings/Applcations/No any workable associated application. (except for the calc).
Arthur Alunts (1 rep)
Nov 6, 2024, 08:26 AM • Last activity: Nov 6, 2024, 02:09 PM
11 votes
4 answers
20944 views
How to launch `.desktop` files from the terminal (or dmenu)
I want to run `.desktop` files from the terminal and dmenu. From the terminal, it should ideally be run with `./app.desktop` or `/path/to/app.desktop`, and `app.desktop` would be put in a `$PATH` directory. I'd rather not have to use an external command like `gtk-launch app.desktop`. Additionally, I...
I want to run .desktop files from the terminal and dmenu. From the terminal, it should ideally be run with ./app.desktop or /path/to/app.desktop, and app.desktop would be put in a $PATH directory. I'd rather not have to use an external command like gtk-launch app.desktop. Additionally, I've found that gtk-launch doesn't always work to launch the application with gtk-launch app.desktop, and even when it does work, putting #!/path/to/gtk-launch at the top of the .desktop returns the error gtk-launch: no such application ./app.desktop when I run ./app.desktop with it executable. I'm using bspwm and generally prefer launching things from the terminal or with dmenu_run so I don't have a desktop from which I can click on the .desktop files to launch them. How can I make the .desktop files executable?
ChocolateOverflow (1161 rep)
Dec 29, 2020, 02:51 PM • Last activity: Oct 30, 2024, 08:44 AM
0 votes
0 answers
27 views
Orchestrating singleshoot services, dependent services, desktop files and ports as a user
I am not sure how to title this, but essentially, I am looking for advice on to how to best implement the following. The specifics I can search online, but I am not sure how to glue it. I am trying to write a `.destkop` file that will call the command `uxplay` (AirPlay Unix mirroring server) and put...
I am not sure how to title this, but essentially, I am looking for advice on to how to best implement the following. The specifics I can search online, but I am not sure how to glue it. I am trying to write a .destkop file that will call the command uxplay (AirPlay Unix mirroring server) and put a system trey icon with a Quit menu entry. uxplay needs a couple of ports open, additionally, it requires a "DNS-SD Server". I am not familiar with that term, but it seems something like avahi is what I need. So high level this is what I imagine: 1. Launch the desktop file, via Krunner or Rofi. 2. The desktop file's Exec calls a script that will do two things: - Start a systemd user service. - Launch yad (Yet Another Dialogue) with a menu entry called Quit that then stops that user service. 3. The user service's Require and After will launch the avahi service. 4. The user service will then somehow open the required ports, maybe in its ExecStart. This part I am not so sure, because I think that would require root, could it somehow use a policy kit thing to display that dialogue in the desktop which provides privileges? 5. uxplay -p is finally called via Exec. When we quit: - ExecStop closes the ports (can I somehow persist the same privileges, so I don't have to policy kit again?) - Due to avahi's service PartOf clause, when uxplay.service stops, so does avahi.service If there are better ways I am happy to scrap all of this, it is simply the best I could come up with, although again, I am not even sure the ports section can be implemented inside a user service unit.
Mathias Sven (273 rep)
Oct 15, 2024, 02:29 PM
4 votes
3 answers
4971 views
How to refresh .desktop files in ~/.local/share/applications?
I have created a new `.desktop` file in `~/.local/share/application`. How do I make mate list it in Applications panel and in Run Application dialog (Alt+F2) without logging out and logging in again?
I have created a new .desktop file in ~/.local/share/application. How do I make mate list it in Applications panel and in Run Application dialog (Alt+F2) without logging out and logging in again?
CrabMan (517 rep)
Jun 30, 2017, 08:10 PM • Last activity: Sep 10, 2024, 10:24 AM
Showing page 1 of 20 total questions