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
200 votes
5 answers
485k views

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 ...
Registered User's user avatar
142 votes
1 answer
61k views

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, ...
Nathan Dyer's user avatar
  • 2,077
60 votes
2 answers
41k views

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-...
alfC's user avatar
  • 3,634
36 votes
2 answers
28k views

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 ...
The Okay Man's user avatar
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
25 votes
2 answers
25k views

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/...
Casey Keller's user avatar
  • 1,546
25 votes
2 answers
7k views

Rename default user directories

Is it possible to rename default directories like ~/Documents, ~/Music, ~/Videos? Especially I want to rename Videos to Movies.
madox2's user avatar
  • 795
23 votes
3 answers
2k views

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's user avatar
21 votes
1 answer
3k views

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 ...
user avatar
20 votes
3 answers
6k views

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 ...
Mukund's user avatar
  • 2,102
19 votes
6 answers
13k views

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 ...
MAKZ's user avatar
  • 455
16 votes
2 answers
12k views

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 ...
g0lem's user avatar
  • 467
14 votes
1 answer
18k views

Installation problem xdg-desktop-menu: No writable system menu directory found

When installing the IBM tsm backup client I have the following message on lucid (works on precise) > sudo apt-get upgrade Setting up tsm-client (6.4.0.7-3) ... xdg-desktop-menu: No writable system ...
mirams's user avatar
  • 713
14 votes
5 answers
15k views

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 ...
kicsyromy's user avatar
  • 760
13 votes
3 answers
23k views

Desktop launcher documentation? [duplicate]

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 ...
sashoalm's user avatar
  • 5,171
13 votes
1 answer
11k views

What is the replacement for gnome-open in GNOME? [duplicate]

gnome-open is typically used to open files from the CLI using their associated mime-type handler. It doesn't appear to be installed by default anymore in 12.04. The errata has not been well ...
ppetraki's user avatar
  • 5,503
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
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
12 votes
4 answers
2k views

How do I integrate my Windows filesystem with Ubuntu?

I recently got a new Windows computer and would like to dual boot with Ubuntu. I don't really want to have 2 separate file systems (with mounting) but would like to integrate the two, if it is ...
dukevin's user avatar
  • 1,087
11 votes
1 answer
22k views

How can I change the Desktop folder path? [duplicate]

I had some trouble upgrading to 11.10, and had to create a new user and copy some files to my old user to work. But now Ubuntu can't find my Desktop folder. I need to change the path, so where can I ...
Scoup's user avatar
  • 225
10 votes
5 answers
3k views

Weird XDG User Dir resetting bug

I have a weird problem with 12.04 LTS. Regardless of what I do to the ~/.config/user-dirs.dirs file, whenever I login again the next time, that file gets all set to $HOME only. Something is happening ...
sybreon's user avatar
  • 151
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
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
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
7 votes
2 answers
5k views

How can I force all applications to use $XDG_CONFIG_HOME instead of ~/.APP?

As far as I understand, the XDG guidelines recommend that applications store their configuration in $XDG_CONFIG_HOME/APP (usually ~/.config/APP) rather than ~/.APP (I'm not sure if there are also ...
lofidevops's user avatar
  • 21.1k
7 votes
1 answer
7k views

Functions of xdg-user-dirs

What are the functions and capabilities of xdg-user-dirs? In particular, I'm interested to have the folders it creates on a different partition instead of the whole Home.
Oxwivi's user avatar
  • 18k
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
6 votes
5 answers
14k views

How can I get the (XDG) Default User Directories from Python?

By example, In English the default user folders will be: $HOME/Desktop .... $HOME/Videos In Spanish the default user folders will be: $HOME/Escritorio .... $HOME/Vídeos The file ~/.config/user-...
Costales's user avatar
  • 2,278
6 votes
1 answer
4k views

How can i change the Pictures/Documents/etc directory?

I am a total noob in Ubuntu, and i would like to change the default directory of Documents, Music, Pictures etc. My setting is as follows: 1 partition for Windows 1 partition for ubuntu 1 ...
Odette's user avatar
  • 61
6 votes
1 answer
446 views

Any way to consolidate multiple .Trash directories

I have a seperate data partition with a functioning .Trash directory. But ~/.local/share/Trash is the only directory seen by trash:/// in nautilus. Here's the fstab entry for the partition: ...
Valknut's user avatar
  • 128
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

Can I change the name of the Desktop directory?

Is it possible to change Desktop directory name? If it is how can I rename that directory? I've tried mv /home/username/Desktop /home/username/newName.
miguel's user avatar
  • 55
5 votes
2 answers
1k views

How do I make the public folder not appear in the home folder of new accounts?

When I create a new user, how do I tell Ubuntu not to create a Public sub-folder?
Lewis Goddard's user avatar
5 votes
2 answers
3k views

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 ...
Jorge Castro's user avatar
  • 72.2k
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
2 answers
31k views

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's user avatar
  • 343
4 votes
1 answer
6k views

How do I reset gnome-open/xdg-open to actually open with my preferred browser?

Somehow gnome-open and xdg-open are now hopelessly broken. Setting my default browser in System -> Preferences -> Preferred Applications changes nothing. When I click on any link that points to a ...
Jarrod Davis'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
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
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
1 answer
1k views

Create global Template directory

I want to move Template directory out from my ~ home folder. I would like to have one global Template directory. One option, that I think can be possible is to create a link(shortcut or how is it ...
Benjamin's user avatar
  • 2,195
3 votes
1 answer
2k views

Ubuntu Studio menu audio, video production, graphics directory menu entry disappeared

Ubuntu Studio menu has broken - I must have installed something or made a change to the menu (I used the menu editor to add a launcher), and I lost the audio production, video production and graphics ...
miller the gorilla's user avatar
3 votes
1 answer
438 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
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
3 votes
0 answers
294 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
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
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
3 votes
1 answer
9k views

How to create new Magic Cookie?

I've been searching around on Google but I cannot find my answer on how to create a new MIT-MAGIC-COOKIE. I recently did a reinstall and I had copied over my files from a backup back into my home ...
user avatar
2 votes
1 answer
306 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