Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [freedesktop]

FreeDesktop is an informal standards body mostly (but not entirely) focused on graphical technologies of UNIX operating systems. The FreeDesktop website hosts both specifications and software.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Nautilus: End program after closing window

When I run nautilus from terminal it is still running after closing window. I only get this message after start: ** Message: 00:10:10.307: Connecting to org.freedesktop.Tracker3.Miner.Files How can I ...
0 votes
0 answers
14 views

Flatpak install freezes when downloading resource. Can I find source URL to download file manually from browser?

I am trying to update the Gnome Web (org.gnome.Epiphany) flatpak, on Ubuntu 22.04.4 LTS (on WSL2). One specific resource, "org.freedesktop.Platform.openh264" always freezes when downloading. ...
0 votes
1 answer
38 views

Is it Possible to Read stdout and stderr of Apps Launched From the Desktop?

Suppose I launch Firefox from my apps. Is the stdout and stderr redirected to a specific file or is it redirected to /dev/null? If it is indeed redirected to a specific file, I'd also like to know how ...
0 votes
0 answers
14 views

~/.local/share/ is not in $XDG_DATA_DIRS, however .desktop files under the applications folder is shown in GNOME launcher

I'm using GNOME under Arch Linux. According to freedesktop Menu Specification, .desktop files are under $XDG_DATA_DIRS/applications/. But when I was cleaning desktop entries today, I noticed that ...
0 votes
0 answers
33 views

Connecting to Wifi: org.freedesktop.resolve1: Permission denied

I have this problem when I try to connect to the wifi. If I run resolvectl I get the following error: resolvectl Failed to get global data: Failed to execute program org.freedesktop.resolve1: ...
1 vote
1 answer
679 views

Arch linux; org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”

I use sway on arch linux and a lot of apps log this error message: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser” How can I resolve this issue ? Thank ...
1 vote
1 answer
149 views

How to create custom Freedesktop menu categories?

I can't seem to create "Security" as a custom top-level Freedesktop category. (I have Sparky Linux with Openbox.) I did research and everyone agrees you can do it in three easy steps: ...
4 votes
2 answers
4k views

How to find human-readable information about file types recognized by `file`?

Searching, googling, I could not find any information about file types recognized by file. For example, an *.mp4 file is identified as "ISO Media" (while being able to play with VLC normally). This ...
10 votes
2 answers
9k views

Find out the owner of a DBus service name

I can't find a way to find what program implements the org.freedesktop.Notifications service. Is it possible to ask DBus to tell me what program provides it? The reason for asking this question is ...
14 votes
3 answers
3k views

Drag-and-drop without the drag

I sometimes need to drag-and-drop files onto an application. (Example — but my question here is not installing Chrome userscripts.) One solution is to use Dragbox, which opens a window from which I ...
3 votes
2 answers
1k views

overriding a single field in a desktop-entry

I'm setting up a Debian system, with LXDE as the Desktop Environment (really, I'm just remastering a Raspberry Pi OS image). I have an application that ships with a .desktop file. Cool! Unfortunately ...
0 votes
0 answers
23 views

How to config kde to make it follow freedesktop trash specification?

My trash cli follows freedesktop trash specification but dolphin does not, i want to config them to use same trashcan.
2 votes
1 answer
678 views

How to get rid of nag screen "Authentication is required to set one's own greeter properties"?

After a recent update on my Linux system I get a dialogue window every few (5?) minutes with the same message: Authentication is required to set one's own greeter properties. It has a password ...
0 votes
0 answers
21 views

Naming inconsistency in GNOME `.directory` and `.application` files

I'm using Debian 11 with GNOME 3.28 and I noticed that there are a lot of naming inconsistencies in .directory and .application files. For example, the name field of Utility.directory is Accessories ...
9 votes
1 answer
765 views

Store Firefox Primary Password in Secret Service

Is it possible to store the Firefox Primary Password (formerly known as the Master password) using the freedesktop secret service dbus API, in order to bypass the password prompt when Firefox starts ...
1 vote
2 answers
5k views

Fixing the "DBUS-call failed" error when opening files with xdg-open

When I call xdg-open pic.png I get this message. ** (ristretto:7580): WARNING **: 13:44:21.730: DBUS-call failed:GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop....
1 vote
0 answers
394 views

Is /org/freedesktop/DBus accessible from a web browser?

We have some homebrewn applications running in top of a Xubuntu 18.04 OS, communicating with each other using D-Bus. The UI part is run in a web browser and web socket is being used for the ...
0 votes
1 answer
64 views

Linux Trash implementation: Correct place for a Trash Log?

I am working on a Trash implementation and would like to store a log for every deletion. I have reviewed the Freedesktop Trash Specification but couldn't find any information about where to store a ...
9 votes
2 answers
5k views

Purpose of the autostart-scripts directory

A user can place .desktop files in his ~/.config/autostart/ directory to run a script on login (session start) in Gnome, or indeed any Freedesktop-compliant environment. But, on my openSUSE Leap 42.2 ...
1 vote
1 answer
402 views

How should I handle two seemingly conflicting XDG Desktop Entry requirements?

According to my understanding of the File Naming section in the XDG Desktop Entry Specification, I should name my .desktop file following reverse-DNS notation: The name of the desktop entry should ...
1 vote
1 answer
429 views

How do I keep stdin open when launching an executable via a Desktop Entry File (i.e. .desktop)?

I have a desktop application that relies on stdin. If I run it in the terminal, it runs great and quits when stdin closes (CTRL+D). I also have a systemd activation socket set up which can launch ...
6 votes
2 answers
4k views

Why does `xdg-mime query filetype ...` fail to find a new added file type?

I installed a new file type to share MIME database. But xdg-mime query filetype cannot tell the new type. This problem only happens on my own Linux OS which does not use GNOME or KDE as its desktop. ...
1 vote
1 answer
4k views

How can I find the value of $XDG_CONFIG_HOME, $XDG_CONFIG_HOME, $XDG_STATE_HOME, etc in a Bash script?

This seems like a simple question that every application developer would have, but I can't find the answer. Per the latest XDG Basedir Spec, there are many directories that should be defined in ...
1 vote
1 answer
1k views

The unknown service dbus-:[email protected]

What is the weird service? From the logs it looks like it's a slice created by D-Bus at startup. The January release of Fedora 35
2 votes
1 answer
708 views

Custom mime type for directories

Is it possible to make a custom mime type for directories (inode/directory)? Just like what MacOS does with *.app folders (app bundle) which make it possible to open them in another program.
2 votes
1 answer
3k views

free desktop dbus error while installing any package using pip

Whenever I try to install any package using pip, I get this error message at the beginning of the shell output. ERROR: Introspect error on :1.803:/modules/kwalletd5: dbus.exceptions.DBusException: ...
11 votes
3 answers
11k views

How to utilize XDG directories and paths in Bash?

I wonder how to access not only the variables defined in ~/.config/user-dirs.dirs with xdg-user-dir, e.g. "$(xdg-user-dir VIDEOS)", but also the following standard variables: XDG_CACHE_HOME:-$HOME/....
7 votes
5 answers
32k views

How to restart polkitd?

My desktop PC is also used as a NIS/NFS server for a small workgroup. It runs for months without reboot. Recently I observed that when I log into a desktop session the computer becomes less ...
0 votes
0 answers
118 views

custom environment variable for freedesktop application

Do Freedesktop-conforming desktop environments (e.g. KDE, GNOME, and GNOME 2 derivatives) support a method for running all instances of some particular application, whether invoked as a default ...
132 votes
6 answers
197k views

How to properly and easily configure `xdg-open` without any environment?

I'm using OpenBox window manager without any desktop environment. xdg-open behaves strangely. It opens everything with firefox. $ xdg-settings --list Known properties: default-web-browser ...
1 vote
2 answers
1k views

Why is the icon I've placed into /usr/share/icons not displaying in the MATE Applications menu?

I have a .desktop file in /usr/share/applications with the entry: [Desktop Entry] Icon=my-app ... I have placed my-app.png into /usr/share/icons/hicolor/32x32/apps. The icon displays just fine for ...
1 vote
1 answer
214 views

How can I use a prefix in the <glob> element of a mime info file?

I have a bunch of files in the form of xyz-timestamp.log, which I want to associate with a different application, than normal log files. I read up on mime types and found out, that I can add a mime-...
1 vote
2 answers
123 views

Reason for text/plain pattern "*,v" in shared-mime-info?

The freedesktop.org media type database shared-mime-info has a filename pattern *,v associated with MIME type text/plain, and I can't figure out why - if only because ,v and *,v are basically useless ...
1 vote
0 answers
41 views

.desktop launcher providing arguments results in "No such file or directory"

[Desktop Entry] Version=1.0 Type=Application Name=launcher Comment= Exec=sh -c "echo hi" Terminal=true StartupNotify=false results in Failed to launch child: sh -c 'echo hi' With error: No ...
1 vote
1 answer
753 views

Make Firefox open app without first prompting to choose from window with one choice

No posted answer in StackExchange worked: they are years-old and pertain to very old versions of Firefox. EDIT: At first I posted about opening files from the downloads list. I later discovered I get ...
46 votes
3 answers
9k views

Why do some applications use ~/.config/appname for their config data while others use ~/.appname?

I've noticed that some applications put their configuration files to ~/.config/appname while others use ~/.appname (the classic way, AFAIK) for this. What's the sense in this distinction and what ...
7 votes
3 answers
8k views

XDG user directories

After installing Linux Mint Debian edition my .config/user-dirs.dirs looks like this: # This file is written by xdg-user-dirs-update # If you want to change or add directories, just edit the line you'...
10 votes
5 answers
6k views

Why do freedesktop .desktop files not allow relative paths?

The .desktop files have become the de-facto standard to easily access applications on Linux desktops, with executables not being easily startable from the GUI otherwise and many launchers not using ...
1 vote
1 answer
7k views

Ubuntu Notification Failed to execute program org.freedesktop.Notifications: No such file or directory (23)

i was working on a python script that displays notification, here's the library I'm using https://www.devdungeon.com/content/desktop-notifications-linux-python from gi.repository import Notify Notify....
0 votes
1 answer
496 views

Run sudo Exec in .desktop via pkexec: Qt Error

I have a configuration in virtualbox that requires me to run the application with sudo privileges. I have been editing the .desktop file to run with sudo (note a simply changing the Exec variable to ...
3 votes
0 answers
134 views

Is it possible to require both glob and magic specified in mimetype definition?

Given the following freedesktop shared-mime-info file: <?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info&...
2 votes
0 answers
104 views

Is it possible to use unicode character within glob pattern in mime definition file?

I'm issuing the command xdg-mime install nv-custom.xml - using this file: <?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/...
7 votes
1 answer
3k views

Create a custom XDG_DIR with custom icon

I'd like to create a custom XDG_CUSTOM_DIR directory in my home directory pointing to $HOME/Custom and assign an icon to it. I've done: xdg-user-dirs-update --set CUSTOM ~/Custom So far so good... ~...
3 votes
1 answer
171 views

How to run a "Desktop Entry" from another "Desktop Entry"?

Is somehow possible to run a "Desktop Entry" from another "Desktop Entry"? Searching inside the freedesktop Desktop Entry Specification the answer seems "No". What I want to do is to create a single ...
4 votes
1 answer
3k views

List mimetypes that default to a given .desktop file

I can list the mimetypes potentially handled by a .desktop file doing something like this: $ grep 'MimeType' /usr/share/applications/eog.desktop | tr ';' '\n' MimeType=image/bmp image/gif image/jpeg ...
5 votes
3 answers
639 views

Opening a URL with xdg-open using Mozilla Remote Protocol

Older versions of Netscape and Mozilla (for X11) supported the so-called remote protocol: it was possible to open a URL or start composing an e-mail whenever a Netscape/Mozilla window (not necessarily ...
20 votes
2 answers
24k views

xdg-open default applications behavior

When I have no defaults.list and mimeapps.list, xdg-open opens text/plain with gvim. But when I create defaults.list in /usr/share/applications/ and add the following lines : [Default Applications] ...
1 vote
0 answers
366 views

Freedesktop dbus error

In .xsession-errors file I noticed strange message: dbus-update-activation-environment: setting LC_IDENTIFICATION=uk_UA.UTF-8 dbus-update-activation-environment: setting LC_TIME=en_US.UTF-8 dbus-...
9 votes
6 answers
45k views

How to change Firefox icon shown on panel and menus?

I installed Firefox on Linux Mint Debian Edition with the Cinnamon desktop. This Firefox package doesn't use the regular Firefox icon, with the fox curled around the world ; it has what I call the "...
24 votes
4 answers
16k views

Is there an "open with" command for the command line?

Does the command line have a way to get a recommended list of programs used to open a particular file, based on the file type? For example, a .pdf file would have an open with... recommendation using ...