[xubuntu-users] Difference between etc/xdg/ and /etc/xdg/xdg-xubuntu

Kiyotaka Nemoto kiyotaka at nemotos.net
Wed Dec 24 23:50:28 UTC 2014


Hi,

This may be a basic question, but I would like to make sure if I
understand correctly how I should put files in /etc/xdg if I want to
make a system-wide customization.

There are some files whose names are identical in /etc/xdg and
/etc/xdg/xdg-xubuntu: e.g. /etc/xdg/menus/xfce-applications.menu and
/etc/xdg/xubuntu/menus/xfce-applications.menu

The ones in /etc/xdg/xdg-xubuntu are the customized file for Xubuntu
and the others are the original ones from XFCE.

The priority of the files used is defined by $XDG_CONFIG_DIRS

The default is:
XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg

So, the priority of files in /etc/xdg/xdg-xubuntu is higher than those
in /etc/xdg.

When one customizes the settings, the system modifies files under ~/.config.
So if one wants to apply these changes system-wide, one has to check
first if the file is under /etc/xdg/xdg-xubuntu and copy the files in
~./config to /etc/xdg/xdg-xubuntu. If not, then check if the file is
under /etc/xdg.


Confusing part is xfce-perchannel-xml
In default xubuntu installation, ls
~/.config/xfce4/xfconf/xfce-perchannel-xml lists the following 5
files;

thunar.xml
xfce4-desktop.xml
xfce4-keyboard-shortcuts.xml
xfce4-panel.xml
xfwm4.xml

ls /etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml lists the
following 10 files (I append * to the files found in ~/.config);

thunar-volman.xml
*thunar.xml
*xfce4-desktop.xml
*xfce4-keyboard-shortcuts.xml
xfce4-notifyd.xml
xfce4-power-manager.xml
xfce4-session.xml
xfprint.xml
*xfwm4.xml
xsettings.xml

ls /etc/xdg/xfce4/xfconf/xfce-perchannel-xml lists the following 5 files;
thunar-volman.xml
*xfce4-keyboard-shortcuts.xml
xfce4-power-manager.xml
xfce4-session.xml
xsettings.xml

I don't find xfce4-panel.xml in either /etc/xdg or /etc/xdg/xdg-xubuntu

Where should I put xfce4-panel.xml if I customize it and apply system-wide?

I think it should be put in /etc/xdg/xdg-xubuntu, but I'm not sure.


Is my understanding correct? Please correct me if I'm wrong.

Thank you in advance and happy holidays,

Kiyotaka

--
Kiyotaka Nemoto
E-mail: kiyotaka at nemotos.net




More information about the xubuntu-users mailing list