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.

Questions for this tag should concentrate on configuration and aspects of the xdg standards and related xdg tools.

The freedesktop.org desktop standards are available at the official site, which also hosts related projects.

Included with Ubuntu is the xdg-utils package, which allows users to modify certain aspects of their desktop environment and integrate certain applications into it, whichever desktop they are running. As listed in the package description, these tools are included:

  * xdg-desktop-menu - Install desktop menu items
  * xdg-desktop-icon - Install icons on the user's desktop
  * xdg-icon-resource - Install icon resources
  * xdg-mime - Gather MIME information about a file
  * xdg-open - Open a URL in the user's preferred application that
               handles the respective URL or file type
  * xdg-email - Open the user's preferred email client, potentially with
                subject and other info filled in
  * xdg-screensaver - Enable, disable, or suspend the screensaver
  * xdg-settings - get various settings (default web browser) from
                   the desktop environment

The XDG Base Directory Specification can be found here.

110 questions
198
votes
5 answers

Where is the .Trash folder?

Using Ubuntu 11.10, I accidentally deleted a file that was approximately 700 MB. I tried to find it in the in following locations, but couldn't: /home/user/.local/share /home/user/ <-- there was no folder .Trash /home/user/Desktop/ <-- there was no…
26
votes
3 answers

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 ?
23
votes
3 answers

Why is there no more ~/.Trash?

I remember the nice mv somefile ~/.Trash command but that folder does not exist on newer Ubuntus. Does anyone know why?
14
votes
5 answers

How can I set the 'Path' variable in a .desktop file to be relative to the location where the desktop file is located?

I want to set the 'Path' variable in a .desktop file relative to the location where the desktop file is located and I can't manage to do that. When I don't declare it or set it to blank it defaults to my home folder no matter where I run it from;…
kicsyromy
  • 760
5
votes
2 answers

What's the absolute path of an icon declared in a .desktop file?

In a .desktop file you can declare an icon, however it's not clear how this translates to an icon on disk: Icon=eric Where on the filesystem can I find this icon? Related to this question: How do I add an icon to an app that doesn't have one?
Jorge Castro
  • 71,754
4
votes
2 answers

How to set XDG_RUNTIME_DIR

$XDG_RUNTIME_DIR is not well set on my computer and this causes upstart to write PID files to my home folder. May I know what it should be and where to set it?
Cyker
  • 343
2
votes
1 answer

Public directory ($XDG_PUBLICSHARE_DIR) created despite "enabled=False" in user-dirs.conf

I've set "enabled=False" in my /etc/xdg/user-dirs.conf which, according to comments in that file, and also according to the spec, should stop xdg-user-dirs-update from running at login time and thus also from recreating any missing $XDG_*_DIR…
0
votes
1 answer

What do user folders do?

In ~/.config/user-dirs.dirs you can change the user folders. But do they actually do anything except for changing the links in Nautilus? I can see that changing XDG_DESKTOP_DIR does something – namely it changes the contents of which folder are…
UTF-8
  • 5,710
  • 10
  • 31
  • 67
0
votes
1 answer

who manages $HOME/.recently-used?

Who manages $HOME/.recently-used? And is there a spec for it? Could not find one, but maybe I am blind.
guettli
  • 1,777