Desktop-profiles doesn't export a correct XDG_CONFIG_DIRS

Bug #318959 reported by Marc Gariépy
6
Affects Status Importance Assigned to Milestone
desktop-profiles (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

$ apt-cache policy desktop-profiles
desktop-profiles:
  Installé : 1.4.15
  Candidat : 1.4.15
 Table de version :
 *** 1.4.15 0
        500 http://gulus.usherbrooke.ca intrepid/universe Packages
        100 /var/lib/dpkg/status

The cache file /var/cache/desktop-profile if generated and it contain those line.

== /var/cache/desktop-profile/activated_profiles ==
XDG_DATA_DIRS=$XDG_DATA_DIRS:/etc/Profiles/Rl-gnome/share:/usr/local/share:/usr/share
XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:/etc/Profiles/Rl-gnome/etc/xdg:/etc/xdg
== end file ==

here is the /etc/desktop-profiles/rl-profiles.listing i use

== /etc/desktop-profiles/rl-profiles.listing ==
xdg_config_dirs_rl;XDG_CONFIG;/etc/Profiles/Rl-gnome/etc/xdg;10;;Default value for gnome-appserv RL
xdg_data_dirs_rl;XDG_DATA;/etc/Profiles/Rl-gnome/share;10;;Default value for gnome-appserv RL
== end file ==

Here are my $XDG_DATA_DIRS and $XDG_CONFIG_DIRS, they both start with ":".

XDG_DATA_DIRS=:/etc/Profiles/Rl-gnome/share:/usr/local/share:/usr/share
XDG_CONFIG_DIRS=:/etc/Profiles/Rl-gnome/etc/xdg:/etc/xdg

If i modify the file /var/cache/desktop-profiles/activated_profiles to remove the $XDG_DATA_DIRS and $XDG_CONFIG_DIRS in both when i login, my env is set correctly.

== modifed /var/cache/desktop-profiles/activated_profiles ==
XDG_DATA_DIRS=/etc/Profiles/Rl-gnome/share:/usr/local/share:/usr/share
XDG_CONFIG_DIRS=/etc/Profiles/Rl-gnome/etc/xdg:/etc/xdg
== end file ==

Revision history for this message
Marc Gariépy (mgariepy) wrote :
Revision history for this message
Marc Gariépy (mgariepy) wrote :

As a workaround, i simply add a test in my file and run update-profile-cache again.
the file /var/cache/desktop-profile/activated_profiles is removed and my profile now are working

== /etc/desktop-profiles/rl-profiles.listing ==
xdg_config_dirs_rl;XDG_CONFIG;/etc/Profiles/Rl-gnome/etc/xdg;10;$(true);Default value for gnome-appserv RL
xdg_data_dirs_rl;XDG_DATA;/etc/Profiles/Rl-gnome/share;10;$(true);Default value for gnome-appserv RL
== end file ==

Since the update-profile-cache only make cache for static entry this diseable the cache file.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.