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
1 vote
0 answers
27 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
  • 126
0 votes
1 answer
27 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
  • 101
0 votes
3 answers
100 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,308
0 votes
1 answer
265 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,477
0 votes
0 answers
83 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,477
0 votes
0 answers
64 views

Progress in taskbar on Linux desktops

I notice that some apps on some Linux desktops are able to show a progress bar of a window's or app's ongoing tasks in the taskbar or dock icons, like Windows 10 does. What is the name of the standard ...
Nick Booker's user avatar
0 votes
2 answers
117 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
  • 119
1 vote
1 answer
2k 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
2 votes
0 answers
83 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
  • 21
3 votes
1 answer
399 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
2 votes
1 answer
439 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
  • 23
0 votes
1 answer
367 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
26 votes
1 answer
5k 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
73 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
2 votes
1 answer
287 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
3 votes
0 answers
391 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
1k 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
541 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
  • 263
0 votes
1 answer
200 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
12 votes
5 answers
16k 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
296 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
  • 745
6 votes
3 answers
2k 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
  • 269
9 votes
2 answers
17k 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
  • 211
2 votes
2 answers
1k 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
  • 88
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
  • 214
0 votes
1 answer
2k 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,676
1 vote
1 answer
2k 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
  • 2,987
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
  • 821
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
108 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
185 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
  • 371
12 votes
2 answers
5k 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
3k 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,678
4 votes
3 answers
18k 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
26 votes
4 answers
18k 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
2k 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
  • 627
1 vote
1 answer
237 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
2 answers
1k 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
948 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,511
6 votes
2 answers
1k views

!xdg-open <URL> doesn't open the website in my default browser

I am using gvim 7.3.401 on archlinux. The shell command :!xdg-open http://www.vim.org doesn't open my default browser with that link. In fact, it appears to do nothing. This works as expected within ...
Maxim Kim's user avatar
  • 163
79 votes
6 answers
110k views

Where should the XDG_CONFIG_HOME variable be defined?

The XDG specification talks about the XDG_CONFIG_HOME variable, but does not specify where it should be defined. Should we define it in /etc/X11/Xsession, or is it the window manager's config file ...
NOLFXceptMe's user avatar
  • 1,082
3 votes
3 answers
7k views

Rename Linux home folder structure to system language

I have installed the Ubuntu distro first in Portuguese. Then, I decided I wanted the English language. I would like that the default folders like "Desktop" and "Documents" were renamed to this names, ...
nunos's user avatar
  • 641
28 votes
3 answers
27k views

How can I register a custom protocol with xdg?

I've been struggling this morning trying to associate an application with a custom protocol, namely emacsclient and org-protocol. I'm calling this protocol from a webbrowser bookmarklet, and I get ...
julien's user avatar
  • 1,496
5 votes
3 answers
5k views

How to change the PDF reader of Chrome on Linux

It seems Chromium uses xdg-open to open PDF files. How do I change it to another PDF reader? I'm using Linux Mint 8 LXDE.
chenge's user avatar
  • 343
5 votes
4 answers
5k views

Picasa:// links in Google Chrome (Linux)

When I go to Picasa Web to see another user's album, I can download pictures using Picasa with it. This launched a URL like picasa://downloadfeed/?url=http%3A... In Firefox, when I click this, I can ...
raphink's user avatar
  • 3,771