Questions tagged [xdg]
For questions concerning the desktop environment utilities or standards and specifications of freedesktop.org (previously X Desktop Group, or XDG).
55
questions
-3
votes
1
answer
161
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.
...
0
votes
0
answers
42
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 ...
0
votes
0
answers
306
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 ...
1
vote
0
answers
151
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/...
1
vote
1
answer
607
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
├── ...
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 ...
1
vote
0
answers
252
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. ...
1
vote
2
answers
630
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 ...
0
votes
3
answers
510
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 ...
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 ...
0
votes
0
answers
866
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 ...
0
votes
2
answers
454
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 ...
1
vote
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 ...
3
votes
0
answers
143
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 ...
3
votes
1
answer
846
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 ...
5
votes
2
answers
882
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 ...
0
votes
1
answer
426
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 ...
35
votes
1
answer
10k
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?
0
votes
1
answer
109
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:
$ ...
3
votes
1
answer
520
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
...
3
votes
0
answers
441
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 ...
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 ...
0
votes
2
answers
746
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 ...
0
votes
1
answer
271
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 ...
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://...
1
vote
1
answer
378
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 ...
11
votes
2
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 ...
10
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 ...
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 ...
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 ...
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 ...
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 "...
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 ...
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 ~/....
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 ...
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-...
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 ...
2
votes
1
answer
117
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 ...
0
votes
1
answer
198
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 ...
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
...
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 ...
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
...
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 ...
29
votes
4
answers
21k
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
6
votes
2
answers
2k
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 ...