Red Hat Bugzilla – Bug 249109
KDE sets XDG_CONFIG_DIRS to desktop environment specific directory
Last modified: 2008-07-26 01:57:26 EDT
Description of problem:
I'm trying to add a menu item for a third party software to both the Gnome and
KDE menu using xdg-desktop-menu. Normally, xdg-desktop-menu creates .menu files
and put them in /etc/xdg/menus/applications-merged, and the new menu items get
picked up by both KDE and GNOME. With KDE on F7, /etc/kde/env/env.sh sets
XDG_CONFIG_DIRS to /etc/kde/xdg:/etc/xdg, causing xdg-desktop-menu to create the
.menu files in /etc/kde/menus/applications-merged, a location GNOME does not
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Get a copy of xdg-utils from http://portland.freedesktop.org/xdg-utils-1.0/
xdg-utils is the package that contains xdg-desktop-menu
2. Login to a KDE session, XDG_CONFIG_DIRS should be set to /etc/kde/xdg:/etc/xdg.
3. Create a file called bar.directory with the following content:
4. Create a file called foo.desktop with the following content:
5. run /path/to/xdg-desktop-menu install --novendor bar.directory foo.desktop
In KDE, the top level menu contains a folder called Bar which has a menu item
called Foo. In Gnome, there is no Bar folder, and Foo is in the Others folder.
The top level menu in both KDE and Gnome should contain a folder called Bar
which has a menu item called Foo.
/etc/kde/env/env.sh should not set $XDG_CONFIG_DIRS, it default to /etc/xdg
which I believe is the correct location. Having a desktop envioronment specific
$XDG_CONFIG_DIRS seems to defeat the whole point of XDG.
This message is a reminder that Fedora 7 is nearing the end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 7. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '7'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 7's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 7 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug. If you are unable to change the version, please add a comment here and someone will do it for you.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. If possible, it is recommended that you try the newest available Fedora distribution to see if your bug still exists.
Please read the Release Notes for the newest Fedora distribution to make sure it will meet your needs:
The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Fedora 9 has the same issue, updating version field.
Doh, now that XDG_MENU_PREFIX works as advertised, we can likely drop
fyi, in /etc/kde/env/env.sh is in:
pre F-9: kdebase
What is this setting for? There's nothing in /etc/kde/xdg here, except an
empty /etc/kde/xdg/menus owned by kde-filesystem. I believe this is obsolete
and can be removed. We use XDG_MENU_PREFIX for this purpose (using a different
menu in KDE than GNOME) now.
kde-settings-4.0-23.fc9 has been submitted as an update for Fedora 9
kde-settings-4.0-23.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.