Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xdg]

The tag has no usage guidance.

0
votes
1answer
428 views

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 ...
1
vote
1answer
153 views

Understanding AutostartCondition key in .desktop files

CentOS 7.x with GNOME 3 Shell by default provides the following *.desktop files under /etc/xdg/autostart/ with AutostartCondition key: # gnome-welcome-tour.desktop [Desktop Entry] Type=Application ...
0
votes
1answer
59 views

Where should I store my application files (data, cache, logs, crashes, etc.) [closed]

Although I did some research on this subject, I couldn't reach the exact information I wanted. Actually, not exactly disclosed, everyone approached in a different way. For the: Filesystem Hierarchy ...
1
vote
1answer
591 views

Launch default terminal emulator by command

How do I launch the default terminal emulator by command? x-terminal-emulator won't work because I'm not using a Debian and xdg-terminal doesn't seem to exist either. Is there any other way to launch ...
1
vote
1answer
715 views

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 ...
1
vote
1answer
264 views

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 ...
0
votes
0answers
52 views

Change icons directory to a xdg base directory

How can I change the icons directory from ~/.icons to $XDG_DATA_HOME/icons/? I set $XDG_DATA_HOME to ~/.data/, but it didn't work (it seems that the icon configuration is not compliant to XDG Base ...
0
votes
2answers
46 views

Can I use ~/.config/ instead of ~/ for arbitrary packages?

I read very little about xdg, probably just enough to be dangerous. From what I've seen online, it looks like the new cool thing is to put specification files for X in ~/.config/ instead of just ~/ ...
2
votes
1answer
180 views

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 ...
0
votes
1answer
47 views

Is there a standard XDG location for user secrets?

XDG defines ~/.config, ~/.cache and other shell-agnostic locations for user configuration files. Some applications define their own locations for user secrets, like ~/.ssh and ~/.gpg. Is there an XDG-...
2
votes
1answer
72 views

Which program runs $XDG_CONFIG_HOME/autostart in Debian 9?

Which program runs $XDG_CONFIG_HOME/autostart in Debian 9? I tried putting the following .desktop file in $XDG_CONFIG_HOME/autostart: [Desktop Entry] Type=Application Name=test Comment=test ...
1
vote
1answer
620 views

Cannot set default application for xdg-open

I am trying to make gthumb the default when opening png files from the terminal $ xdg-mime default ~/.gnome/apps/gthumb.desktop image/png I created this symlink: $ ls -l ~/.gnome/apps/gthumb....
2
votes
2answers
655 views

xdg-open on debian 9 fails to open browser

I decided to try lxdm (was using fluxbox and xfce), and discovered that for many programs the url handler was failing, producing this error message; Quite strange as you can see, it's prepending the ...
2
votes
1answer
313 views

Switching user with gdmflexiserver from i3

Apparently, when using gdm3 (the default of Ubuntu 18.04) we should be able to run gdmflexiserver to get a new greeter and log in with resp. switch to another user. When running the command in my i3 ...
2
votes
1answer
2k views

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/...
3
votes
0answers
196 views

Why does xdg-open use Mendeley as default for PDFs?

Similar to this question, I have some applications (Calibre, texdoc) open PDFs with Mendeley. Opening PDFs from Thunar, Thunderbird, Firefox etc. opens evince, the expected default. It seems that ...
0
votes
1answer
155 views

how can i change default xdg-viewer on chromium

I want to change my external default viewer not to be xdg, i need it too be VNC... I tried on chrome/settings but found nothing. im using ubuntu 14.04(ZorinOS
0
votes
1answer
333 views

What is the command line equivalent of xdg Terminal=true?

When I create an xdg-desktop file with Terminal=true, this has the effect of: launching a new terminal window running the command in that terminal (from Exec=command) What is the equivalent CLI ...
0
votes
1answer
427 views

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 ...
7
votes
1answer
3k views

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 ...
4
votes
0answers
146 views

Set default program for MIME type: image/*

Is there really no way to set the default program for all MIME sub-types of a top-level type? E.g., image/*. I am talking about the XDG MIME spec, and not the older mailcap scheme. And I'm not asking ...
0
votes
1answer
216 views

recreate xdg directories after accidentally deleting it

im running xdg-user-dirs-update command, which create two files in .config directory, user-dirs.dirs and user-dirs.locale. user-dirs.dirs lookes like this: # This file is written by xdg-user-dirs-...
4
votes
1answer
61 views

How to use SELinux to reject applications' modifications to home directory?

I have grown to be annoyed by applications ignoring the XDG base directory specification. What's the best way to deny applications any changes to the home directory except in the specified ...
34
votes
2answers
14k views

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

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 ...
2
votes
0answers
58 views

Is there a standard way for getting the media mount path (like /media/user, /run/media/user…)?

In an application, I need to find out where removable media is mounted. On Ubuntu, this happens in /media/username/ . On Arch, it is /run/media/username/ . On other systems, its just /media/ etc. ...
1
vote
1answer
705 views

Why does dconf differ from dconf-editor?

Kali 2016.2 in Qemu: /usr/bin/qemu-system-x86_64 -boot d -m 5000 --enable-kvm -cdrom kali-linux-2016.2-amd64.iso I'm trying to list root dir: # /usr/bin/dconf list / org/ But dconf-editor shows ...
3
votes
1answer
278 views

Can I add the Twig file type to Linux?

I generally give Twig files a "twig" extension. As I understand it these Twig files are usually recognised as HTML like files by Linux using some sort of scan algorithm. So Nemo for example ...
1
vote
1answer
67 views

How to programmatically query the Freedesktop application database?

I know about xdg-mime which can query the mapping from MIME filetype to associated desktop application. But this can return mappings to non-existent applications, e.g. $ xdg-mime default non-...
3
votes
0answers
399 views

Is there a specification or defined purpose of XDG user directories from freedesktop.org?

Specifically I am asking about ~/Templates/, but any information about the other directories is appreciated. I understand how to use ~/Templates in the context of my graphical file manager, but I am ...
3
votes
1answer
461 views

Equivalent for `dm-tool switch-to-user `otheruser in different display managers

When using lightdm I can switch to another user by executing dm-tool switch-to-user. Is there a way that doesn't depend on the display manager? If not, what would be the equivalent command for the ...
1
vote
1answer
43 views

I just wanted to find where xdg-mime was looking for associations. What the hell is it _doing_?

It's too long to post the whole strace here, try strace -fe open,openat xdg-mime query default inode/directory suffice to say that command spits 429 lines, it seems like it's attaching processes to ...
0
votes
1answer
231 views

XDG resolves filename as text/plain

I have a MIME definition file which is installed as part of a package: $ rpm -ql virt-viewer | grep mime /usr/share/mime/packages/virt-viewer-mime.xml $ cat /usr/share/mime/packages/virt-viewer-mime....
0
votes
1answer
678 views

XDG desktop/menu files and XFCE

I've been using XFCE for about a week now; I finally gave up on KDE on my desktop because of too many problems with the set-up there (switching between multiple users with multiple X servers running ...
5
votes
1answer
3k views

How to set an icon for custom mimetype in Linux Mint Mate?

I'm using Linux Mint 17.2 MATE I have a problem assigning an icon for custom (newly created) file type. My task: To set new double-click action and new icon for *.session files. My sequence of ...
8
votes
2answers
3k views

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 ...
2
votes
0answers
49 views

Is there a single documentation page for all the XDG_* environment variables?

I can find documentation for some XDG_* here and there, but for many others I still don't know where to look. I have not been able to find a single document where the meaning of all these variables ...
7
votes
3answers
2k views

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 ...
3
votes
1answer
4k views

Autostarting .desktop application at startup not working

I have read that adding a .desktop file to /etc/xdg/autostart can start an application at startup. I did the same to execute my application. But nothing happens on startup. Following is the content of ...
2
votes
1answer
486 views

How can I change the order in which update-desktop-database puts the applications supporting a mimetype?

I am running manjaro linux which is built on top of Arch Linux. I use cinnamon desktop environment occasionally and Awesome for the rest. I am trying to figure out how I can get the system to choose ...
3
votes
1answer
422 views

What is xdg-icon-resource doing in addition to moving icons to destination?

Installing icons manually by copying files to /usr/share/icons/hicolor/256x256/apps/My256pxSquareIcon.png and using sudo xdg-icon-ressource install --theme hicolor --context apps --novendor --mode ...
3
votes
1answer
156 views

Emacs entry missing from window manager menus

Since some time ago I have no menu entry for Emacs anymore on my Debian system. The same happens on two different machines -- one running testing and one running unstable. I have tried switching ...
1
vote
1answer
374 views

How to have an /etc/xdg/autostart/app.desktop service wait for a (systemd) service?

TLDR: How to have an /etc/xdg/autostart/app.desktop service wait for a systemd service? Long: I have an app started by /etc/xdg/autostart/app.desktop that requires a systemd service to be started ...
1
vote
1answer
79 views

What is wrong with URI handling on Linux Mint?

I'm using Linux Mint 17.2 XFCE. I face very strange problem on my Linux Mint 17.2 XFCE. When I open files, that are located in paths with non-latin names (for example /home/yanpas/Загрузки) I see ...
1
vote
0answers
324 views

Generating xdg menu lua files on Debian

I'm trying to figure out how to generate a menu.lua for Awesome WM on Debian (actually Kali 2.0). In a nutshell it's a Lua file representing the structure of the Applications menu so it can be ...
2
votes
1answer
1k views

List mimetypes that default to a given .desktop file

I can list the mimetypes potentially handled by a .desktop file doing something like this: $ grep 'MimeType' /usr/share/applications/eog.desktop | tr ';' '\n' MimeType=image/bmp image/gif image/jpeg ...
1
vote
1answer
464 views

desktop agnostic icon theme lookup

How can you determine the user's icon theme without using neither GNOME nor KDE nor any other desktop specific programs/libraries/files? I could not find anything about how to determine users icon ...
6
votes
2answers
3k views

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 ...
0
votes
1answer
442 views

System-wide desktop file installation for unpackaged software

I want to configure a locally installed unpackaged application to be started via applications menu in Debian. It should be independent of desktop environment and visible to all users. I don't want to ...
6
votes
2answers
954 views

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 ...
1
vote
1answer
56 views

Is there an xdg comliant DE independant “default-aplication-setter application”?

Topic is the question. Requirements: FOSS of course Independant of desktop environments is compliant with the Association between MIME types and applications standard Has optionally a neat GUI (my ...