Questions tagged [xdg]
The xdg tag has no usage guidance.
124
questions
0
votes
1
answer
40
views
XDG-MIME does not function properly
I'm encountering an error similar to xdg-mime-install-does-not-update-files-mime-type-association and why-does-xdg-mime-query-filetype-fail-to-find-a-new-added-file-type
But the solution to the first ...
0
votes
0
answers
15
views
Block xdg-settings from being altered on package install
Running on ArchLinux, and it's incredibly frustrating that Chromium, upon install, sets itself as the default browser using xdg-settings (which many programs prefer over $BROWSER).
Is there a method ...
4
votes
1
answer
620
views
How to permanently disable autostarting of applications on Linux/Debian?
Many GNU/Linux distros come with autostarts configured that are not needed for most users and are a privacy and security risk (even if small). In principle, it makes sense to only autostart things one ...
1
vote
1
answer
240
views
Shouldn't files in /etc/xdg/autostart/ be removed when removing a package?
I came across the messages below with sudo journalctl --since today | tail -n 3000. Shouldn't autostart entries be removed from there when removing a package?
It seems like general good practice to ...
0
votes
0
answers
65
views
Flatpak-installed Spotify client doesn't evoke the web browser
I'm on Fedora 39 on bspwm (very minimal installation, maybe I'm missing some library necessary for this) and installed Spotify client from flathub using flatpak install flathub com.spotify.Client and ...
0
votes
0
answers
159
views
Unable to copy using wl-copy (wl-clipboard) - issue with `xdg-mime`
OS: Arch linux (linux-6.8.1.arch1-1)
WM: Hyprland
When I run echo 'hello' | wl-copy, I get the following output:
echo "hello" | wl-copy
Usage: file [-bcCdEhikLlNnprsSvzZ0] [--apple] [--...
1
vote
0
answers
151
views
No "File Open" / "Save As" dialogue in Chrome/Brave
I have a strange behaviour in my Chrome-based browsers.
I cannot open/upload/save/download files. It does not show me the "file open" dialogue when I press an upload button on any website. ...
1
vote
1
answer
33
views
Make Nemo show another name for a folder
I know about that xdg-user-dir stuff that helps make home subdirs in desired language.
My locale is Russian and the system created 'download', 'documents', etc dirs in Russian language, and Nemo shows ...
1
vote
0
answers
95
views
XDG_* environment variables not set in graphical login
When I login into one of the virtual consoles I have those environment variables XDG_RUNTIME_DIR XDG_SEAT XDG_SESSION_CLASS XDG_SESSION_ID XDG_SESSION_TYPE XDG_VTNR correctly set.
On the other hand if ...
1
vote
0
answers
492
views
Correct way to launch xdg desktop portal under bare WM setup?
Context
I'm running Void Linux with X11. I'm not using any desktop environment or display manager. I simply type startx from tty to launch X11, and ~/.xinitrc launches BSPWM, polybar, and all the ...
0
votes
0
answers
216
views
Enabling screen sharing in Wayland on Rocky 8 in Gnome
I'm trying to get screen sharing to work on a machine running Rocky 8.8 and using Gnome as its desktop environment using Wayland. The screen sharing tool I'm using is screego, which runs in a web ...
3
votes
1
answer
807
views
Chromium doesn't open file dialog
When using chromium, the open or save file dialogs don't work. Examples: attaching a file or trying to download the attachment. I click them, nothing happens, nothing pops up. When running Firefox, ...
1
vote
0
answers
124
views
Design .desktop File to Launch the Default Terminal Emulator with Arguments
I'd like to be able to open text and source code files in neovim (or any other terminal-based text editor) when an XDG-compatible GUI application asks with which application to open that file. For now,...
0
votes
1
answer
979
views
What to store in XDG_DATA_HOME?
I'm reading up on the XDG Base Directory Specification, but I'm having some trouble understanding what exactly the $XDG_DATA_HOME is for. The specification mentions the following:
There is a single ...
1
vote
0
answers
909
views
How to switch to a different xdg-desktop-portal to have a different file picker?
I am using nemo as my default file and desktop manager using How to set Nemo as the default file manager in Ubuntu?
In brief it looks like:
sudo apt install nemo
xdg-mime default nemo.desktop inode/...
3
votes
2
answers
1k
views
How to switch to a different xdg-desktop-portal?
In my machine I, have multiple xdg-desktop-portal
$ ls -la /usr/share/xdg-desktop-portal/portals
.rw-r--r-- 100 root 23 Mar 14:48 gnome-keyring.portal
.rw-r--r-- 99 root 20 Mar 02:25 gnome-shell....
5
votes
2
answers
4k
views
Which xdg-desktop-portal am I currently using?
On my machine, I have multiple xdg-desktop-portal instances:
$ ls -la /usr/share/xdg-desktop-portal/portals
.rw-r--r-- 100 root 23 Mar 14:48 gnome-keyring.portal
.rw-r--r-- 99 root 20 Mar 02:25 gnome-...
3
votes
0
answers
9k
views
'/var/lib/flatpak/exports/share' is not in the search path set by the XDG_DATA_HOME and XDG_DATA_DIRS
Weird one, when I update flatpaks I get the following message in terminal:
Note that '/var/lib/flatpak/exports/share' is not in the search path
set by the XDG_DATA_HOME and XDG_DATA_DIRS
environment ...
0
votes
1
answer
2k
views
Setting default file manager and locating a file with the default file manager
Please don't mark it as duplicated before reading my question. I know that there already are those questions, but the existing answer did not work as expected, and that is why I am asking this ...
3
votes
1
answer
1k
views
google-chrome-stable not respecting xdg-open
I have a file downloaded using google-chrome-stable in ~/Downloads/video.mkv, but clicking the file in Chrome's downloads page somehow opens the file in Firefox instead of my default video player.
...
1
vote
1
answer
2k
views
Wayland Issue on FreeBSD
The Problem
Hello, I am completely new to FreeBSD and relatively new to UNIX systems in general. I am following the FreeBSD Handbook, and loving it so far. My goal is to install river tiling window ...
1
vote
1
answer
513
views
Bridge dbus service to another bus
This is the situation:
I have NetworkManager running on the host system.
I have systemd and dbus running in a privileged Docker container.
I want nmcli in the container to access the NetworkManager ...
1
vote
1
answer
468
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
0
answers
220
views
On running xdg-settings get default-we-browser, I get the following message "unknown desktop environment"
I am running an R script that tries to open a link on the linux server.
But on running the script, I get the following error
xdg-open: no method available for opening 'https://unix.stackexchange.com/'
...
1
vote
1
answer
641
views
xdg-screensaver lock returns exit code 4 even though it worked
On an up to date openSUSE Tumbleweed install with KDE, running xdg-screensaver lock works (as in, the screen is locked just as if I'd done so through the UI), but it returns exit code 4, which ...
2
votes
1
answer
5k
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
2
answers
420
views
Where to put personal scripts according to XDG basedir spec?
I have a number of self-written scripts on my PC. I want to put these in the correct spot in my homedir according to the XDG Basedir spec. But I also want to backup these scripts in an clear and ...
2
votes
1
answer
594
views
changing default program that opens a file using xdg-mime
I want to change the default program that opens video/mp4 files using xdg-mime from vlc.desktop to the firefox browser, firefox-firefox.desktop. I tried following the instructions given here however I ...
1
vote
1
answer
780
views
XDG autostart order - how to control it?
When logging into my XFCE session, there are several "things" started via the XDG autostart mechanism. Is it possible to control the order in which applications start, or having some sort of ...
1
vote
1
answer
2k
views
What is "New Virtual Output" in kde screen share (portal) dialog?
In kde wayland when you choose the pipewire source in obs, you get the Desktop Portal dialog that allows you to choose one of your screens or a "Full Workspace". But also there is an option &...
4
votes
0
answers
712
views
default-url-scheme-handler not implemented for xfce
I run this code on kali linux:
xdg-settings set default-url-scheme-handler https google-chrome.desktop
I got this error:
xdg-settings: default-url-scheme-handler not implemented for xfce
how can I ...
4
votes
1
answer
3k
views
Where/How are the XDG_*_DIR user directory variables supposed to be set?
I'm referring to: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
I have the following files in my .config directory:
~/.config/user-dirs.dirs:
# ...
XDG_DOWNLOAD_DIR=&...
0
votes
2
answers
1k
views
How to make Mozilla Firefox to follow the Freedesktop XDG specification?
I want to use the XDG specification to avoid cluttering in my $HOME directory in Arch Linux.
Right now, Firefox version 101 created a $HOME/.mozilla directory, which I want to place somewhere else.
So,...
1
vote
1
answer
366
views
Xdg-Mime won't change default application for .xopp (Xournalpp) files
I'm trying to change the default application for the filetype .xopp, which is a file for the xournalpp application. I currently ran the following commands:
xdg-mime query filetype 2022-06-09/note.xopp
...
4
votes
1
answer
3k
views
$XDG_CACHE_HOME vs. $XDG_STATE_HOME
Based on the XDG Base Directory Spacifications, $XDG_STATE_HOME should store history and log of the programs. But it is very common to see UNIX programs storing these kind of stuff at $XDG_CACHE_HOME, ...
4
votes
1
answer
758
views
Firefox is already running ... error, but only from MS Teams
Whenever I click an HTTP(S) link in my desktop Teams client it hangs for about 5 seconds, then I get an error saying:
"Firefox is already running, but is not responding. To use Firefox, you must ...
2
votes
1
answer
771
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.
3
votes
1
answer
1k
views
XDG_DATA_DIRS env variable using two separator types in fish shell
After doing an OS upgrade (opensuse leap 15.2 -> 15.3), my XDG setup broke. Among other things, my XDG_DATA_DIR env var uses two different value separators: : and .
Current XDG_DATA_DIRS value:
/...
1
vote
1
answer
759
views
Make cron inherit XDG_RUNTIME_DIR
I have a cron job that runs emacsclient which requires that XDG_RUNTIME_DIR to be set. I can set the variable to something like /run/user/1000 in the crontab but then this assumes that the owner of ...
-1
votes
1
answer
452
views
Arch Linux: Is it possible to configure chromium to be my default browser for only a single website?
xdg-settings get default-web-browser produces firefox.desktop. This is what I want in almost every case. For a single website I want links to open in chromium.
2
votes
0
answers
148
views
Xfce4: How to decide which application to open the url based on patterns
The system has a bunch of browsers (like Chromium and Brave). All urls are to be opened by Chromium. So brave is not the default application for that. However, I want youtube links to be opened by ...
6
votes
2
answers
11k
views
Custom URI handling: xdg-open and Firefox work, but Chrome doesn't
I'm trying to configure my Linux environment to open obsidian:// URIs using the Obsidian app (see Using Obsidian URI).
This is the flow I'm using. I'm doing this on a clean Ubuntu machine to make sure ...
1
vote
1
answer
3k
views
xdg-open from .desktop file (in script)
I am trying to get a shell script to launch a browser. When run standalone, this script successfully opens a browser with
xdg-open http://localhost:8080
However, I am trying to make it convenient ...
1
vote
1
answer
780
views
How do I set priority of which application opens a url schema (rdp://) in kde?
I have several applications installed that handles url schema rdp:// (for example, rdp://[email protected]). These applications are Krdc and Remmina. I want such links to be opened in krdc, but they are ...
1
vote
1
answer
479
views
Open default application for file and wait until it terminates
I tried to use xdg-open but it does not wait until the application terminates.
I also tried to get the MIME-type of the file with xdg-mime query filetype fileHere and using xdg-mime query default MIME-...
1
vote
0
answers
586
views
How to change UnitPath property in systemd? [closed]
I'm experimenting with a non-standard home directory setup making heavy use of $XDG_CONFIG_HOME, $XDG_CACHE_HOME, etc. and most programs have run just fine. Unfortunately, my systemd user service for ...
4
votes
2
answers
2k
views
Problem with zsh_history file
I am currently trying to clean up my home directory by following this XDG BASE DIRECTORIES website.
To do so, i have stored in my ~/.zshenv:
# ---- Default editors ---- #
export EDITOR="nvim"...
1
vote
1
answer
486
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 ...
0
votes
0
answers
877
views
xdg-mime not doing anything
Created an empty file in ~ called test.desktop. Ran xdg-mime default test.desktop inode/directory, which returned success (returned 0). After this, xdg-mime query default inode/directory returned caja-...
6
votes
0
answers
2k
views
Portable way to set custom URL scheme handler for all users
I already know how to create a custom URL scheme and set its handler using xdg-utils:
xdg-settings set default-url-scheme-handler name handler.desktop
However, the command affects only the current ...