Questions tagged [xdg]

112 questions
96
votes
2 answers

Which distributions have $HOME/.local/bin in $PATH?

For example, in Ubuntu, there is always a .local directory in the home directory and .profile includes this line: PATH="$HOME/bin:$HOME/.local/bin:$PATH" $HOME/.local/bin does not exist by default, but if it is created it's already in $PATH and…
Stoffe
  • 1,063
  • 1
  • 7
  • 6
38
votes
2 answers

Create a custom URL Protocol Handler

I would like to register a URL scheme (or protocol) handler for my own custom URL protocol, so that clicking on a link with this custom protocol will execute a command on that URL. Which steps do I need to take to add this handler? Example: I want…
palswim
  • 4,919
  • 6
  • 37
  • 53
19
votes
1 answer

How to validate/verify .desktop files?

I have a couple of .desktop files that aren't working as expected or not at all. I can't see any error anywhere and asking for help on each one seems unproductive. Is there a way I can verify that I'm using the correct syntax in the file, that it…
Braiam
  • 35,380
  • 25
  • 108
  • 167
17
votes
4 answers

Open a directory in the default file manager and select a file

In a program which I am writing I want to offer the functionality to open the directory where the file which I am currently processing is located and automatically select that file (so that the user does not need to search for it). I know that I can…
jakun
  • 375
  • 1
  • 3
  • 13
15
votes
2 answers

Who is creating Documents/Video/Pictures/etc. in home directory

I had Ubuntu-14.04 installed in a minimum configuration, i.e. with no X Windows support. Later I added x-server packages for my card, and a lightweight WindowManager (I don't want KDE or GNOME), so I normally launch X with startx, however someone…
Mark
  • 1,763
  • 5
  • 25
  • 45
14
votes
2 answers

What's the right way to add directories to XDG_DATA_DIRS?

I've installed some app under /opt/myapp, which has a /opt/myapp/share directory. As I finish installing, it tells me: Note that '/opt/myapp/share' is not in the search path set by the XDG_DATA_HOME and XDG_DATA_DIRS environment variables, so…
einpoklum
  • 8,772
  • 19
  • 65
  • 129
13
votes
2 answers

Is there a home directory location for overriding icons?

There are a few home directory locations that complement /usr locations. Files in these locations override their /usr counterparts. For example: ~/.local/bin complements /usr/bin ~/.local/share/applications complements /usr/share/applications If I…
lofidevops
  • 2,967
  • 6
  • 39
  • 58
11
votes
2 answers

How can I make IDLE the default editor for Python files?

If I double click on a Python file on my Gnome Classic desktop, it is not opened in IDLE. How can I make IDLE the default editor for Python files? I have tried to delete all the other programs that were being opened. I have been looking through…
Amateur Programer
  • 521
  • 2
  • 9
  • 21
10
votes
1 answer

How to make flatpak applications use standard locations for user data files?

Applications installed with Flatpak are keeping user data and configuration under ~/.var/app/ (see Wiki and documentation). I would like the applications installed with Flatpak to reuse the configuration and data left from the system versions of the…
Alexey
  • 1,868
  • 4
  • 20
  • 35
10
votes
4 answers

Installing files in ~/.local

When installing software compiled from source, I normally place them in /usr/local/, which is by far the most common default in my experience, and standard practice at least on Debian and its derivatives. Now I want to install something in my home…
pipe
  • 921
  • 10
  • 25
10
votes
3 answers

user-dirs.dirs reset at start-up

I wanted to have some of the sub-folders of my home directory (like Music, Downloads,Videos) on my hard-disk-raid instead of my SSD. Therefore I deleted those folders in my home directory, recreated them on the RAID and made symlinks pointing from…
Marcel
  • 1,114
  • 1
  • 14
  • 28
8
votes
1 answer

What is the procedure to update mime type associations in KDE?

I would like to revert to the default mime definitions at the system level, and also rebuild my local mime database. I am running Arch Linux KDE. The Arch Wiki says, If you use a desktop environment you should first check if it provides its own…
MountainX
  • 17,168
  • 59
  • 155
  • 264
8
votes
1 answer

What is the user equivalent of the global /opt directory?

I'm wondering if anybody has agreed on a user equivalent of the global /opt directory, for third-party packages that are distributed as a tarball to be unpacked as a single directory. Examples include Firefox Beta, Tor Browser, and innumerable…
Tobia
  • 669
  • 8
  • 14
8
votes
2 answers

Where should an app save working files?

I'm designing a GUI application that works with scanned documents. It allows the scans to be manipulated before they are saved/exported, so it needs to store the data for each scanned page temporarily while it is being worked on. The amount of data…
Malvineous
  • 6,524
  • 5
  • 52
  • 76
7
votes
2 answers

How to create / delete $XDG_RUNTIME_DIR at login / logoff

Today I was surprised to ssh into my box running Arch Linux and find that /run/user/$(id -u) didn't exist. The XDG Base Directory Specification says: $XDG_RUNTIME_DIR defines the base directory relative to which user-specific non-essential runtime…
Tom Hale
  • 28,728
  • 32
  • 139
  • 229
1
2 3 4 5 6 7 8