$XDG_DATA_DIRS is missing /usr/local/share on xubuntu 10.04

Bug #574264 reported by raevol
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xubuntu-default-settings (Ubuntu)
Medium
Lionel Le Folgoc
Lucid
Medium
Unassigned

Bug Description

Binary package hint: xubuntu-default-settings

Having upgraded from 9.10 to 10.04, application shortcuts in /usr/local/share/applications are not shown in the menu.

startxfce4 does not include the local directory, nor is it defined in /etc/X11/Xsession.d/.

I'm not sure what the appropriate fix for this is. Bug filed by request of mr_pouit from #xubuntu-devel on freenode.

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Thanks for the bug report. :p

Until it is fixed in the repository, you can edit /usr/share/xubuntu/session.sh and change:
export XDG_DATA_DIRS=/etc/xdg/xdg-xubuntu
to
export XDG_DATA_DIRS="/etc/xdg/xdg-xubuntu:/usr/local/share"

Changed in xubuntu-default-settings (Ubuntu):
assignee: nobody → Lionel Le Folgoc (mrpouit)
importance: Undecided → Medium
status: New → Triaged
Changed in xubuntu-default-settings (Ubuntu Lucid):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :
Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Hello ubuntu-sru,

I would like to SRU that (Bug #571133 and Bug #574264) for lucid, the diff is http://bazaar.launchpad.net/~xubuntu-dev/xubuntu-default-settings/lucid/revision/205
Is it ok with you?

Maverick isn't opened yet, but I can upload if needed...
Thanks!

Revision history for this message
Martin Pitt (pitti) wrote :

Why does it set the default value to /usr/local/share instead of /etc/xdg/xdg-xubuntu? This should be documented in the changelog, or it might be a bug?

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

@Martin: Maybe I misunderstood your remark, but that's the way xdg base dirs work... The first entry in the variable has the highest priority, so XDG_DATA_DIRS="/etc/xdg/xdg-xubuntu:/usr/local/share:/usr/share" will give /etc/xdg/xdg-xubuntu >> /usr/local/share >> /usr/share. So the default value is really /etc/xdg/xdg-xubuntu.

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Ah, of course. Sorry, misread it. Please go ahead and upload.

Revision history for this message
Scott Kitterman (kitterman) wrote : Please test proposed package

Accepted into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in xubuntu-default-settings (Ubuntu Lucid):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xubuntu-default-settings - 10.04.8

---------------
xubuntu-default-settings (10.04.8) lucid-proposed; urgency=low

  * usr/share/xubuntu/session.sh:
    - Do not forcefully set $XDG_CONFIG_DIRS, it creates issue with non-Xfce
      applications, and 60xdg_path-on-session from gdm already takes care of
      that. lp: #571133
    - Ensure that /usr/local/share is present in $XDG_DATA_DIRS. lp: #574264
 -- Lionel Le Folgoc <email address hidden> Mon, 03 May 2010 20:15:27 +0200

Changed in xubuntu-default-settings (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to maverick.

Changed in xubuntu-default-settings (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers