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

Questions tagged [xdg]

For questions concerning the desktop environment utilities or standards and specifications of freedesktop.org (previously X Desktop Group, or XDG).

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

How to make sure dconf (or gsettings) and <guix>/dconf-editor use the same backend database

Disclaimer: I'm running Guix package manager as a user on Ubuntu 22.04.4. That is most likely part of the problem: Guix uses non traditional paths for packages and sets symlinks and various search-...
Necto's user avatar
  • 101
-3 votes
1 answer
266 views

How do I enable Linux to make use of desktop.ini files?

I've noticed that sometimes when transferring media from Windows to Linux, desktop.ini created by Windows are included. These files include useful metadata, such as the icon for the folder and more. ...
Lazerbeak12345's user avatar
0 votes
0 answers
48 views

How to fix Zscaler XDG under i3

I cannot authenticate to Zscaler on my Debian because XDG does not appear to be returning the auth token from the browser back to Zscaler. I'm pretty sure this is because I'm using i3 instead of Gnome ...
ericx's user avatar
  • 187
0 votes
0 answers
423 views

Where should XDG_CACHE_HOME be set on Ubuntu?

According to the specification: $XDG_CACHE_HOME defines the base directory relative to which user-specific non-essential data files should be stored. If $XDG_CACHE_HOME is either not set or empty, a ...
Moberg's user avatar
  • 67
1 vote
0 answers
192 views

`gio open` fails to use its own mime config

I'm struggling with gio failing to open an url using default browser under XFCE4 desktop environment. What could be the reason and how to fix it? gio info http://google.com identifies the link as text/...
krvkir's user avatar
  • 111
1 vote
1 answer
806 views

XDG Base Directory environment variables not respected by notionally compliant software

The goal I'm running Arch Linux. I want to store all config/data/cache/state files in subdirectories of ~/local, like so: ~ ├── downloads ├── documents └── local ├── data ├── state ├── ...
theo's user avatar
  • 336
0 votes
0 answers
30 views

Move .local folder outside home on a running machine [duplicate]

I've been on a mission to keep my home partition lean and easily backable until recently when I came across a bloated .local subdir much to my annoyance. I tried moving it out to a different partition ...
usrlocl's user avatar
2 votes
1 answer
406 views

How to find XDG user directories if specified system-wide

TLDR: How do I find the current settings for my XDG user directories other than invoking xdg-user-dir? I'm on a system that specifies non-standard XDG user directories in /etc/xdg/user-dirs.defaults. ...
calavicci's user avatar
  • 146
1 vote
2 answers
818 views

Where should I place .desktop files for 3rd-party apps installed in /opt?

Where am I supposed to put .desktop files for 3rd-party applications installed in /opt? I can put them in ~/.local/share/applications for each user but this is a maintenance nightmare. Preferably, I'd ...
LiamF's user avatar
  • 135
0 votes
3 answers
603 views

Is there a Windows equivalent to ~/.local/bin?

On Ubuntu, the default path includes /usr/bin, which is where most system applications are installed via sudo. The equivalent on Windows is C:\Program Files, protected by UAC. (Of course, it's more ...
lofidevops's user avatar
  • 1,328
3 votes
1 answer
4k views

Why is the $XDG_RUNTIME_DIR (/run/user/$UID) directory not created after "su - user"?

Why is the $XDG_RUNTIME_DIR (/run/user/$UID) directory not created after "su - user" ? : administrateur@localhost:~$ su - test Password: test@localhost:~$ systemctl --user Failed to connect ...
SebMa's user avatar
  • 1,843
0 votes
0 answers
1k views

Why is the RuntimeDirectory is not created by user service startup?

when I start "myApplication-myInstance.service" as a user, the RuntimeDirectory (see man systemd.exec) is not created : $ systemctl --user cat myApplication-myInstance.service | grep ...
SebMa's user avatar
  • 1,843
0 votes
2 answers
512 views

Linux XDG file dialog: custom pinned folders?

Is there a way to add custom folders to the left bar of the XDG file dialog in Linux? How? Below is a screenshot of the file dialog from my Firefox under Kubuntu 20.04, with plasma-browser-integration ...
MichaelK's user avatar
  • 139
2 votes
1 answer
4k views

Replacing of GTK+ file dialogs with KDE's via XDG portals not working (XFCE, Manjaro)

I'm stuck after trying and triple-checking everything from the most upvoted answer (from @ntninja) to this question. I did this on two machines - Manjaro and an old Ubuntu 18.04 LTS. Installed the ...
theciivl's user avatar
3 votes
0 answers
149 views

ChromeOS linux show in folder

When I click 'show in folder' in a Linux app running on Chrome OS, Visual Studio Code will be launched. I would much prefer the Chrome OS built in file manager to display the folder. I have found the ...
tcn's user avatar
  • 31
3 votes
1 answer
966 views

Why can't gio load info for my handler?

I'm trying to set up zoom and having a bit of trouble. At the top level, I would like to be able to open zoommtg: links with xdg-open. I get this right now: % xdg-open zoommtg: gio: zoommtg:: The ...
Daniel Wagner's user avatar
5 votes
2 answers
1k views

OpenSSH modify location of user's specific files to comply with XDG specification

Is it possible to modify the default location of the user's specific files of OpenSSH (~/.ssh)? I've found the XDG base directory specification and I was wondering if it was possible to make OpenSSH ...
JeromeB's user avatar
  • 53
0 votes
1 answer
434 views

KDE: Unknown protocol 'unityhub' even though unityhub does exist

I'm using KDE Neon and have installed Unity Hub via it's AppImage and integrated it with my system. The problem is when I tried to install Unity Editor via UnityHub button on this Download Archive ...
Risal Fajar Amiyardi's user avatar
37 votes
1 answer
11k views

What does XDG stand for?

The XDG Base Directory Specification standardizes best practices for which folders a user-scoped programs may write to. What does XDG stand for, what's the story behind the name?
Ari Sweedler's user avatar
0 votes
1 answer
120 views

xdg-mime query default http://google.com hangs

running a normal query xdg-mime query default http://google.com hangs until I move/remove ~/.local/share/applications/Steam output from running fbrokendesktop to try to find errors: $ ...
SultanLegend's user avatar
3 votes
1 answer
588 views

Where does systemd actually search for units?

Today I spent too many hours figuring out what is wrong with my systemd which was refusing to find units in .config/systemd/user. The symptoms were: systemd-analyze --user verify <unit> worked ...
Meowxiik's user avatar
  • 101
3 votes
0 answers
448 views

How to configure xdg-open to open links in VMware Horizon Client

I had to reinstall Ubuntu for the first time today after it stopped booting. The last thing on my list I need to fix is setting up VMware Horizon Client. I have installed version 4.8. I need to log ...
Cam's user avatar
  • 131
1 vote
2 answers
2k views

How to set default variable for a single command with env variables?

I need to override default browser for single process. This process starts manually from npm scripts. To achieve this programmatically, I decided to override BROWSER environment variable right before ...
Yaroslav Kishchenko's user avatar
0 votes
2 answers
795 views

How to avoid Firefox re-using a Firefox instance on another machine when sharing the same X11 DISPLAY?

With two Linux servers I experience over X11 some very surprising behaviour. Here the details about the situation: I have two remote Linux machines, Paula (RHEL6) and Marie (CentOS7). I connect to ...
halloleo's user avatar
  • 415
0 votes
1 answer
288 views

Links from Discord is stuck

My default browser set correctly: XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default x-scheme-handler/https Checking /home/user/.config/mimeapps.list userapp-Nightly-T8BWRZ.desktop &BROWSER is unset ...
Gudest's user avatar
  • 1
13 votes
5 answers
18k views

How to configure Firefox open Zoom URLs using Zoom application

I'm using a conference application called Zoom. There are URLs that can be clicked to open the application and let jump in right away to the meeting that ID existed in the URL. For example: https://...
Muhammad Gelbana's user avatar
1 vote
1 answer
395 views

Is there any implementation of xdg-utils on MSYS2 or Cygwin?

Recently I have a project which need to to use tools in xdg-utils. However in order to make it compatible with windows, is there any implementation of this project on Windows? If there is not, is ...
pah8J's user avatar
  • 755
11 votes
2 answers
3k views

Where should userspecific application log files be stored in GNU Linux?

This question is about log files produced by simple user applications. The files are specific to the user. Because of that /var/log is not a solution here. I can not find informations about such ...
buhtz's user avatar
  • 329
10 votes
2 answers
18k views

google chrome. linux. XDG-OPEN keep asking me (forever) what to do with magnet links

(i'm on latest chrome beta (64) but it is happening in all the previous version of chrome i used.) when i press magnet links in google chrome, i get this card: Open xdg-open? so i mark to always ...
Azriel's user avatar
  • 221
2 votes
2 answers
2k views

KDE recent documents

In KUbuntu in "Application Menu", there is the "Recent Documents" container-item: I suppose other DEs also have something similar. What is the way to add there some document manually? (E.g. to put a ...
Sasha's user avatar
  • 108
4 votes
1 answer
5k views

Why is ~/.local/share a two-level directory?

I've never seen anything under ~/.local other than share, and the XDG Spec doesn't mention any other directories under .local. What is the motivation for having two levels of directories here as ...
rcorre's user avatar
  • 256
0 votes
1 answer
3k views

xdg-user-dirs won't update in linux applications

I'm using Archlinux and I have two users in it. I created the first user when I was starting out with the system and this second is failry recent. The problem is, I can't access my xdg-user-dirs ...
ArchNoob's user avatar
  • 111
2 votes
0 answers
1k views

Why does "xdg-open" with an URL open two extra empty tabs in Opera?

My xdg html default looks like this: $ xdg-mime query default text/html opera.desktop The Exec line in opera.desktop looks like this: Exec=opera %U Now, opening a tab in Opera like this: opera "...
Hubro's user avatar
  • 5,806
2 votes
1 answer
3k views

How to remove unwanted menu shortcuts in KDE so they don't come back after an update?

Is there a recommended way to remove unwanted menu shortcuts from the application menu (XDG standards compliant). I've got a few packages that tend to install multiple shortcuts even though I only ...
Adam Luchjenbroers's user avatar
2 votes
1 answer
2k views

Downloads folder keeps coming back after I delete it

My downloads folder keeps coming back after I delete it. I want to have my home directory setup so that it looks like the following: desktop documents loads Per this answer I have changed my ~/....
Kredns's user avatar
  • 3,007
1 vote
2 answers
2k views

Using a shell script: How to get the icon name (or path) of an open window in X-based window manager?

I am able to get window ids and window titles using wmctrl, but so far I haven't been able to get the path to the icon used by the window. I've tried looking at xdg utilities, but the closest was ...
dgo.a's user avatar
  • 881
2 votes
1 answer
2k views

Unable to switch to greeter

I'm using LightDM 1.16.5 along with the Awesome window manager on NixOS. After logging in, I am unable to switch users without first logging out of my current session. The command dm-tool switch-to-...
arussell84's user avatar
7 votes
2 answers
1k views

xdg-open hogging the CPU by forking itself endlessly

Whenever xdg-open encounters a file it does not have a default application associated with it forks itself. This process repeats recursively until killed. While doing this, it of course takes up all ...
user2244484's user avatar
2 votes
1 answer
120 views

Markdown files starting with '##' confuse KDE

I have an unusual problem with KDE in Arch Linux. In particular, Dolphin detects files with the .md file extension as MATLAB rather than Markdown files, but only when the file's first two characters ...
jasonhansel's user avatar
0 votes
1 answer
201 views

deluge "open folder" uses wrong application

while xdg-mime query default inode/directory returns enlightenment_filemanager.desktop I'd want deluge open folder to use enlightenment file manager. is there a way to "reverse" the xdg-mine query ...
euri10's user avatar
  • 431
12 votes
2 answers
6k views

Problems with using xdg-mime default. The default was successfully set but it is not used via xdg-open

Directories keep opening in Firefox when I use xdg-open. I do not want this. I did: xdg-mime default dolphin.desktop application/x-directory and xdg-mime default dolphin.desktop inode/directory ...
pretzlstyle's user avatar
3 votes
1 answer
4k views

KDE launcher opens .desktop files in kate

Opening programs via the 'Application Launcher' menu, then selecting the program works. Using the launcher generated on the panel, eg by right-clicking on an open program, then selecting 'Show A ...
chrisb2244's user avatar
0 votes
2 answers
1k views

Configure which program to use as terminal

I have created a neovim.desktop file for a (terminal) application that looks like this: [Desktop Entry] Name=Neovim MimeType=text/english;text/plain;... Exec=nvim -f %F Type=Application Terminal=true ...
Dave Vogt's user avatar
  • 1,738
4 votes
3 answers
20k views

XFCE Login Error: Unable to Load Failsafe Session

I'm having a problem logging into xfce under Arch Linux. Problem: After logging in (with Slim like I usually do), I get this error message: Unable to load a failsafe session Unable to determine ...
GreenRaccoon23's user avatar
29 votes
4 answers
22k views

What are the step to move all your dotfiles into XDG directories?

The XDG Base Directory Specification provide a set of directory one may used to store data that used to go in so called dot files/directory in the user folder. This post aims to help users who desire ...
psychoslave's user avatar
2 votes
4 answers
2k views

Mimetype not known on KDE (open-xdg, kde-open)

My system Archlinux with KDE, all upgrades done. I have libreoffice installed. The problem Every time I open a file from the terminal (for ex: open-xdg mypdf.pdf) I have a buch of warnings (see ...
ochurlaud's user avatar
  • 165
3 votes
1 answer
3k views

Redirecting xdg-open to another system?

I frequently ssh into a linux system offsite and love to use tools like 'hub' and others that offer commandline tools that open X-apps (most commonly web-browsers). However, it always fails because ...
Yeraze's user avatar
  • 677
1 vote
1 answer
252 views

right-click (xdg-open) opened up some opaque windows covering my screen; xkill won't kill them

I right-clicked on something in chromium with relatively low memory. Chromium opened up some opaque right-click boxes and never filled them in and won't kill them. These are now covering part of all ...
isomorphismes's user avatar
4 votes
3 answers
2k views

How do I get current icon theme name in linux?

Im writing small TODO applet for conky in lua. Id like to display small icon next to task, which matches current icon theme. I have already read which icon to look for on freedesktop.rg. How to get ...
roslav's user avatar
  • 151
2 votes
1 answer
1k views

Dissappearing those pesky .x* config files

I'm trying to force as many of my dotfiles as possible to honor $XDG_CONFIG_HOME (and friends) instead of crapping all over my home directory. This involves some minor tweaks to some common apps, but ...
So8res's user avatar
  • 1,519