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.

105 questions
194
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…
Registered User
  • 4,904
  • 11
  • 37
  • 43
138
votes
1 answer

What is the "Templates" folder in the home directory for?

For as long as I can remember, every time I install Ubuntu there is a folder in the home directory called "Templates." I've always just deleted it, but I'm curious: what's it supposed to be used for, and why is it in the default install?
Nathan Dyer
  • 2,037
  • 3
  • 16
  • 15
60
votes
2 answers

What can I use instead of gnome-open?

What is a current replacement of gnome-open command (generic open of files based on the type)? Before: gnome-open mydoc.pdf # opened PDF in default application Now: gnome-open The program 'gnome-open' is currently not installed. You can…
alfC
  • 3,532
  • 5
  • 32
  • 43
35
votes
2 answers

Why is my desktop the same as home folder?

My desktop (not the /home/user/Desktop folder) shows the contents of my /home/user folder. I don't know how I have done it and can I have some help on undoing it? The /home/user/Desktop folder just contains my desktop files which do not appear on my…
The Okay Man
  • 565
  • 2
  • 5
  • 11
25
votes
2 answers

Rename default user directories

Is it possible to rename default directories like ~/Documents, ~/Music, ~/Videos? Especially I want to rename Videos to Movies.
madox2
  • 775
  • 1
  • 12
  • 29
25
votes
2 answers

How can I change the default location of content directories (eg Pictures, Templates, Music) in my home folder?

I have multiple users on my home desktop. I am content with most of the default user directories, however I would like to make one change. I would like to setup a common directory for Music (ie /home/common/Music/) that is writable to all users and…
Casey Keller
  • 1,536
  • 3
  • 14
  • 23
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?
Aleksandr Levchuk
  • 2,266
  • 1
  • 16
  • 22
23
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 ?
Éric Viala
  • 341
  • 2
  • 4
21
votes
1 answer

How to set the default program to open a certain file type in a certain folder?

As well as being a Panda I am also an artist, I make my artwork mostly in GIMP and save my pictures to a certain directory on my computer. However I have a slight inconvenience because I save my images in jpeg format, however the default program to…
user364819
20
votes
3 answers

Is there a way I can rename Trash to Crap?

I was trying to Rename the folder Trash to Crap. I did this I first ran cd /home/username/.local/share/ Now my present working directory is /home/username/.local/share then when I typed ls I could see the folder Trash. then I renamed it to Crap by…
Mukund
  • 2,094
  • 2
  • 18
  • 26
18
votes
6 answers

Why do PDF documents open with ImageMagick?

Query shows evince is my default handler. But, double clicking a pdf file opens ImageMagick. A pdf file's Properties shows ImageMagick as the default handler. Why is this happening ? After answering the why, also tell me how to solve it using…
MAKZ
  • 445
  • 1
  • 4
  • 14
16
votes
2 answers

Is $HOME/.local/share the default value for $XDG_DATA_HOME?

What's the default value for $XDG_DATA_HOME variable? I get an empty line with: echo $XDG_DATA_HOME According to the Free Desktop XDG Base Directory Environment variables specification, it might be equal to $HOME/.local/share?
g0lem
  • 457
  • 3
  • 7
  • 13
13
votes
3 answers

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. A temporary hack i found for accessing the dock…
vanillascotch
  • 1,282
  • 2
  • 12
  • 13
13
votes
3 answers

Desktop launcher documentation?

Possible Duplicate: What is the syntax for .desktop files? How do I add a custom launcher? I prefer to create new desktop launchers (.desktop files) using just a text editor, for example to create an iotop launcher I write: [Desktop…
sashoalm
  • 5,105
  • 17
  • 48
  • 77
13
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
  • 740
  • 1
  • 5
  • 19
1
2 3 4 5 6 7