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.

32 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
6 votes
1 answer
2k views

How to use xdg-desktop-icon?

I am on Ubuntu 12.04 with KDE. I'd like to use the xdg-desktop-icon tool because it can be scripted and works cross desktop. Made a minimal file: test.desktop [Desktop Entry] Encoding=UTF-8 Type=...
James Mitch'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
4 votes
0 answers
4k views

Could not open X display, XDG_Runtime_DIR Error:

Output from terminal from where i tried to run nautilus and read an external drive. Also, i got a terminal window before logging in that system is running under log graphics mode, i will have to login ...
Harshit Laddha's user avatar
3 votes
0 answers
3k 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
3 votes
0 answers
5k views

Changing protocol handler in google chrome, opening a Telegram link

I installed Telegram Desktop for Linux 64-bit. To join a Telegram channel, when a channel URL is opened in google chrome (e.g. telegram.me/channel_name) the browser prompts and asks which application ...
DummyBeginner's user avatar
2 votes
1 answer
102 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
2 votes
0 answers
146 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
  • 327
2 votes
0 answers
304 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
2 votes
0 answers
247 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
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
1 answer
608 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
2 votes
0 answers
100 views

“user.mime_type” in desktop environment

Context Guidelines for extended attributes (FreeDesktop) says: user.mime_type: Sets the MIME type of a file explicitly. This attribute is documented by the "Shared MIME-info Database ...
Hibou57's user avatar
  • 1,195
2 votes
0 answers
734 views

Custom launcher in Ubuntu 12.04 xdg/autostart

I have some script that should start when user logs in. I've created .desktop file and put it into /etc/xdg/autostart. It works on two pretty old PCs with Ubuntu with a long life (10.xx -> 11.10 -> 12....
Alexander's user avatar
  • 173
2 votes
1 answer
2k views

How to stop Nautilus from using Home as Desktop Folder?

As of a recent boot, my desktop folder is defaulting to ~/. I would prefer the default behaviour : the desktop directory should be ~/Desktop. As a first way to solve my problem I tried gconftool-2 -...
Zanny's user avatar
  • 21
2 votes
1 answer
387 views

xdg-email can't find thunderbird

Clicking a mailto link in chromium-browser it executes xdg-email mailto:[email protected] (or maybe without "mailto:", which seems to be the same thing). In my case this opens kmail instead of ...
dessert's user avatar
  • 40.1k
1 vote
0 answers
44 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
1 vote
0 answers
856 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
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
1 vote
0 answers
154 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
1 vote
0 answers
252 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
1 vote
0 answers
84 views

How to update nautilus bookmarks after changing user-dirs?

I change the user-dirs.dirs of xdg. However, those changed dirs like the Pictures bookmarks are missing, how to make the bookmarks shown again? Thanks.
dspjm's user avatar
  • 280
1 vote
3 answers
3k views

awesome wm with xubuntu - setting wallpaper resets to default

I am using awesome v3.4.15 (Never Gonna Give You Up) and (X)Ubuntu. My display manager is lightdm. In /etc/xdg/awesome/rc.lua I've added this line to change my background to a solid color: theme....
polym's user avatar
  • 61
1 vote
1 answer
363 views

Installing Anki 2.0.42 breaks graphical display on fresh Ubuntu 16.04 install - xdg-mime related?

Installing the 64 bit Anki deb file (v2.0.42) on my Dell Inspiron 5423, running Ubuntu 14.04 or Ubuntu 16.04, seems to break the desktop (details and photo below). I have only been able to fix the ...
cfogelberg's user avatar
0 votes
0 answers
122 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
0 votes
0 answers
169 views

Can't save or import file in Firefox or Chrome

I can't upload or download files in Firefox or Chrome on my Ubuntu 22.04. Usually when I click on "attach" or "import" buttons, a window appears and I can choose a file on my hard ...
djcaesar9114's user avatar
0 votes
0 answers
822 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
0 votes
0 answers
36 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
0 votes
1 answer
365 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
0 votes
0 answers
543 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
0 votes
0 answers
509 views

error when running synaptic: XDG_RUNTIME_DIR not set in the environment cannot open display

After installing synaptic by typing sudo apt-get synaptic I tried to run it with sudo synaptic and I am getting this error: error: XDG_RUNTIME_DIR not set in the environment synaptic (4865):Gtk ...
chinmay joshi's user avatar
0 votes
1 answer
1k views

Delay an application at /etc/xdg/startup

For some reason when it's started too quickly when it's active it shows my desktop instead of overlaying on the active windows.I have guake.desktop in /etc/xdg/startup and I'm wondering if there's a ...
Jürgen Paul's user avatar
  • 2,097