Skip to main content

Questions tagged [xdg]

Xdg was an acronym for the X Desktop Group, which is now known as freedesktop.org, but the label has remained. The freedesktop.org project has created a set of standards that now underlie X desktop environments such as GNOME, KDE and many others.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

How can I open Youtube urls via an xdg entry with Freetube?

I want to open Youtube urls from various browsers and applications like Twitter directly with Freetube. Is this possible via xdg? I tried it optionally with the Firefox app “External Application ...
joe's user avatar
  • 11
2 votes
0 answers
125 views

Help to open tibia on ubuntu 24.04. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'

I'm trying to install tibia on my computer. I always receive the following error when I try to run the program. Can someone help me? input: sudo ./Tibia output:QStandardPaths: XDG_RUNTIME_DIR not set,...
Docs aulas's user avatar
0 votes
0 answers
29 views

xdg-mime and xdg-open do not give the same results

I have installed an application that installs a protocol handler. If I run xdg-mime query default x-scheme-handler/foobar I get the application.desktop as the answer. But if I try to run it by using ...
tollo's user avatar
  • 141
1 vote
2 answers
84 views

How to hide desktop from Ubuntu Desktop Applications UI

I found the following link for changing file types application: https://superuser.com/questions/21626/ubuntu-change-the-default-program-used-to-open-a-type-of-file Here is the command for associating ...
stackbiz's user avatar
  • 383
2 votes
1 answer
284 views

How does the menu categorize apps

Many Ubuntu based distros that use a traditional menu have categories. (accessories,graphics,internet, office, etc) When I first saw these, I thought they were preset categories that someone manually ...
THE_PERSON4204's user avatar
1 vote
1 answer
266 views

Slow snap startup caused by an xdg-desktop-portal service (xdg-document-portal), no fuse 3.12, how to fix?

Any snap seems to start slowly. When running with --trace-exec I see the following message at the beginning of the logs: 2024/01/05 18:13:22.350176 cmd_run.go:1055: WARNING: cannot start document ...
Nobilis's user avatar
  • 211
2 votes
1 answer
147 views

How to set the icon for a file extension, in a portable way, without sudo

I am creating an app that wants to install an icon for an application-specific extension (.crystalopen), in a way that works not just on Ubuntu/GNOME but also is portable to other desktop environments ...
David Foster's user avatar
0 votes
0 answers
147 views

In 22.04.03 LTS, When Opening "Save As..." or "Open..." Dialogs from Browsers, Focus Remains in Original Window, Preventing Keyboard Navigation

In previous version of Ubuntu, I was able to use keyboard navigation when saving files in a "Save as...", and similarly when opening files. However, as of the update to 22.04, whenever I ...
cazort's user avatar
  • 160
2 votes
0 answers
159 views

Empty XDG user directories turn into symbolic links

For some reasons, when an XDG user directory (i.e., Desktop, Downloads, Templates, Public, Documents, Music, Pictures, or Videos) is empty, it turns into a symbolic link after some time. Below is an ...
TVG's user avatar
  • 337
2 votes
1 answer
69 views

How to make Spotify Snap Open Shared Song URLs?

Expectation: With the Spotify snap on Ubuntu, I would like Spotify to open a specific song when clicking on a link shared. What happens: My browser opens with the popup: Allow this site to open the ...
Brett Holman's user avatar
0 votes
0 answers
864 views

Couldn't open intellij as sudo user It shows error: XDG_RUNTIME_DIR not set in the environment

When I try to open intellij as sudo user, Command : sudo intellij-idea-community Result: CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true error: ...
velmurugan A's user avatar
-1 votes
2 answers
231 views

Unable to change the name of file being downloaded

This question is a blatant duplicate of this question. However, given that the question in place is 2 years and 6 months old, and has no answers or comments, I've decided to post this again in hopes ...
lesserfish's user avatar
6 votes
3 answers
1k views

How to open a PDF file with "Master PDF Editor" application from terminal?

I want to open a PDF file from terminal. I only know the command xdg-open file-name.xxx to open a file. But once I use this command, it opens the PDF file with the Document Viewer application (Evince)....
Hussain's user avatar
  • 63
1 vote
1 answer
601 views

`xdg-open` thinks I'm running WSL, and fails because I'm not? [duplicate]

When I try to open a pdf file with xdg-open file.pdf, I get the following error message: jonas@jonas-thinkpad:~$ xdg-open file.pdf grep: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory ...
red_trumpet's user avatar
  • 1,879
0 votes
1 answer
204 views

Can't upgrade from ubuntu 20.04 to 22.04

Im trying to upgrade from Ubuntu 20.04 to 22.04, but the upgrade process stopped at the 'Installing the upgrades' step.
jloria's user avatar
  • 3
0 votes
1 answer
1k views

Browsers cant open custom URI (x-scheme-handler) via xdg, but it works well from console with xdg-open

I used xdg to set things up, so my custom URI would open in my custom desktop application. Things seem to work in the console. I tested it using both xdg-open and gio open: $ xdg-open foobar:id=333 $ ...
Mads Skjern's user avatar
  • 1,026
0 votes
0 answers
28 views

How does the expression `echo echo ${XDG_DATA_HOME:-$HOME/} ` work to give me my home directory? [duplicate]

echo ${XDG_DATA_HOME:-$HOME/} gives me the same result as echo $HOME. Yet $XDG_DATA_HOME:-$HOME and XDG_DATA_HOME are not in my environment. I haven't been able to find any documentation on how these ...
Peter Goodall's user avatar
12 votes
1 answer
2k views

Can't close "Open with.." dialog when there's no suitable application installed in Kubuntu

Clicking file that doesn't have associated program is an annoying problem in KDE. It opens a window that can't be closed easily [even with sudo pkill]. STEPS TO REPRODUCE Download a file with no ...
Shezan's user avatar
  • 525
4 votes
1 answer
8k views

How to troubleshoot xdg-desktop-portal in i3 wm?

I am troubleshooting the known "Firefox cannot open file dialogs" error, with Firefox printing this message on every attempt: Gtk-WARNING **: 22:45:36.767: Can't open portal file chooser: ...
Rafał Dowgird's user avatar
1 vote
0 answers
985 views

Turn the screensaver off using xdg-screensaver

I am facing problem turning off screensaver with bash script in Ubuntu 22.04. I am running a script something like that: #!/bin/bash xdg-screensaver lock sleep 5m xdg-screensaver reset It should lock ...
Anisur Rahman's user avatar
4 votes
1 answer
1k views

How do I add a file type to XDG?

Using LXQT, the file manager (PCManFM-QT) is showing all files with unrecognized suffixes as "text/plain". I've added an entry to /etc/mime.types mapping a new suffix to a new application/x-...
Mark Reed's user avatar
  • 211
7 votes
2 answers
11k views

No option for appearance in settings after upgrade to 22.04

I upgraded from 21.10 and I wanted to tweak my appearance but that option itself is not present.
Ankit Singhaniya's user avatar
0 votes
1 answer
2k views

Browser won't open Zoom using xdg

I have installed Zoom on Ubuntu 22.04, but cannot login, since my browsers (any of them, firefox, chrome, brave) will not open Zoom by xdg tag zoommtg. Some people had issues with the capital Z, but ...
Jake B.'s user avatar
  • 281
1 vote
1 answer
187 views

How can I change the Ubuntu Studio menu to display all games in a games category?

Since Ubuntu Studio switched to the plasma-desktop with 20.10 we have a new organized application menu which divides the games category in subcategories. This is nice if one install a lot of games. ...
mook765's user avatar
  • 16.3k
2 votes
0 answers
315 views

Why is kdeconnectd, xdg-desktop-portal-kde, and yakuake taking up so much CPU?

I get this every time on bootup. Killing any of them doesnt work unless I pretty much nuke it from orbit, including uninstalling yakuake. I am also using Wayland at the moment, and am running Kubuntu ...
Anon's user avatar
  • 12.1k
0 votes
1 answer
3k views

How to return from xdg-open within a shell script

I have some shell functions which allow me to quickly open something in my browser, for example: issue () { if [[ -z "$1" ]] then xdg-open "https://github.com/myname/...
lacostenycoder's user avatar
3 votes
0 answers
4k views

What XDG environment variables should be set at boot?

Recently I got rid of my display manager and that caused Plank to not run, complaining that it could only work for X sessions. I was running an X session. Upon a bit of digging, I realised that my ...
scribe's user avatar
  • 680
1 vote
0 answers
29 views

Where to find the X-GNOME-* keys documentation for .desktop files

I've searched the net with no luck trying to find the documentation for the extended X-GNOME-* keys used into the .desktop files. can anyone point me to such documentation? Thanks
Miguel's user avatar
  • 11
26 votes
3 answers
8k views

In a .desktop file, what is the "%U" variable?

Or, more generally, what is the syntax of the commands such as exo-open --launch WebBrowser %u ?
Éric Viala's user avatar
0 votes
2 answers
577 views

What is the Minimum Setup Needed for Setting-up XDG Directories ($XDG_RUNTIME_DIR etc.)?

I'm in a setup (20.04) that is basically headless (a solaris zone, but we could probably consider it analogous to any server sort of setup), and as such, I don't have any graphical environment ...
stellarpower's user avatar
3 votes
0 answers
278 views

Should I add $HOME/.local/share to XDG_DATA_DIRS?

Currently XDG_DATA_DIRS contains /usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop. I would like to add ~/.local/share to the list. My reason is the following: Now the fish shell ...
MrMeszaros's user avatar
6 votes
0 answers
3k views

xdg-document is keeping my files open

I use Master PDf editor installed through flathub to edit some PDf files. When I close it, I can sse by lsof | grep /media/<MYUSER>/<DEVICE> that xdg-document is keeping my file open. What ...
robertspierre's user avatar
0 votes
0 answers
41 views

How to convert shell command line into XDG .desktop Exec key?

I am using Ubuntu 20.04 x86_64 with its usual GNOME3 I tried to use Wine to install certain Cyrillic-named library software, and it created a folder "Система ИРБИС64 unicode" in my desktop, ...
Wladimir Mutel's user avatar
2 votes
0 answers
1k views

xdg-utils seem to be unavailable on your system

After installing JetBrains IntelliJ IDEA Community edition and going through the customization wizard, hitting the final button labeled "Start Using IntelliJ IDEA" causes a window to pop up ...
Brendan Foote's user avatar
2 votes
3 answers
7k views

Ubuntu 20.04.1 tracker-miner errors in Syslog

New install of 20.04.1 running only pi.hole and unifi controller software. It’s Ubuntu desktop, but I’m basically running it headless. I’ve noticed that I’m getting this set of tracker-miner related ...
Matt's user avatar
  • 21
8 votes
2 answers
40k views

XDG_RUNTIME_DIR is not owned by us (uid 0)

XDG_RUNTIME_DIR is not owned by us (uid 0), but by uid 999!(This could eg happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)` I am trying ...
question_quasar's user avatar
2 votes
1 answer
614 views

Unable to lock screen

I'm using Ubuntu 18.04 with default DE on my laptop. I have an external monitor that I used for weeks without problem. (maybe during an update) I closed the lid and then the desktop appeared on the ...
Enrico R.'s user avatar
1 vote
1 answer
1k views

XDG RUNTIME DIR not set error encountered while trying to use KDE Partition Manager

Ubuntu dabbler here with quite the situation. I'm using Lubuntu 19.10 and I was trying to reformat a flash drive. Running the KDE Partition Manager doesn't allow me to do anything other than view the ...
Joseph Pascual's user avatar
1 vote
0 answers
157 views

After removing sddm and lubuntu-desktop, my desktop environment is missing some environment variables

After removing sddm and lubuntu-desktop, and using startx to spin up a graphical interface with my window manager of choice (cwm), ~/.local/bin is not on the PATH anymore. I googled around and it ...
Dominykas Mostauskis's user avatar
5 votes
1 answer
2k views

Is there any GUI tool for xdg-mime?

Usually, I should write a FileType.xml and use xdg-mime install FileType.xml then use xdg-mime default xxx.desktop file-type to set default application and xdg-icon-resource install xxx to set ...
Nichts Hsu's user avatar
3 votes
1 answer
432 views

How to open *.htm differently than *.html?

I'm trying to get *.htm files to open in a different application than for *.html (MIME Type text/html), as generally described in GNOME Help > Add a custom MIME type for all users. I've created /usr/...
rphair's user avatar
  • 163
0 votes
1 answer
198 views

find . -name "documentation.html" | xargs xdg-open

The (bash) command find . -name "documentation.html" | xargs xdg-open finds a file and passes its path to xdg-open, but xdg-open errors out: xdg-open: unexpected argument './distribution/docs/target/...
ahoffer's user avatar
  • 101
0 votes
1 answer
372 views

Extremely slow graphical desktop startup process Ubuntu 18.10

I have experienced a stubborn issue after upgrading my Ubuntu from 18.04 to 18.10. Every time I would like to login into my system via lightdm the login process takes a lot of time (more than 2 ...
László Tóth's user avatar
3 votes
0 answers
393 views

Can I lowercase all the /home/$USER/ directories that start with an uppercase letter? [duplicate]

~/Pictures, ~/Downloads, ~/Desktop, ~/Documents, etc. These are some of the only uppercase directories on my system, and I usually type ~/pictures forgetting that the first letter has to be uppercase. ...
cat's user avatar
  • 1,682
1 vote
1 answer
827 views

Either system tray icons or unity-control-center icons disappear - how can I have both?

Note: I'm using Unity desktop on 18.04. First, most of the icons in unity-control-center are missing after I installed then uninstalled mate-desktop and caja. I tried reinstalling all of the ...
Aryo Adhi's user avatar
  • 1,397
1 vote
0 answers
450 views

phpstorm snap missing desktop

Ubuntu 16.04 (kernel: 4.13.0-1012-azure) Snap 2.32.3.2 Snapd 2.32.3.2 I tried installing phpstorm via sudo snap install phpstorm --classic. I can see that phpstorm is installed and can be run from ...
raupie's user avatar
  • 11
8 votes
1 answer
8k views

How do mimeinfo.cache files relate to mimeapps.list?

The different mimeinfo.cache files are populated by update-desktop-database from the .desktop files you have around. However, file browsers and such seem to use mimeapps.list files. Manipulating ...
Raphael's user avatar
  • 1,992
2 votes
1 answer
2k views

Unable to install VeraCrypt - (k)ubuntu 17.10

Trying to install VeraCrypt on a new install og Kubuntu 17.10. However I'm having some trouble. Running the veracrypt-1.21-setup-gui-x64 file (double click -> execute), extracted from archive (...
Edward Alekos's user avatar
13 votes
3 answers
16k views

ubuntu-dock settings not accessible in gnome-control-center by default

I recently shifted to Ubuntu 17.10. After enabling ubuntu-dock extension from Gnome-Tweak-Tools, I found no specific settings for customizing the Ubuntu-Dock in gnome-settings or gnome-control-center. ...
mhm's user avatar
  • 1,342
0 votes
0 answers
546 views

Can I meddle with xdg-setting to open a popup asking me with which browser to open a link I just clicked?

I work on multiple browsers simultaneously. I wish that every time I open a link from outside a browser( let's say from a pfd) a window or a terminal pops up to ask me which browser to use. Is there ...
Salim Mahboubi's user avatar