You are not logged in.
When I use obm-xdg as a pipe menu I keep getting duplicate items in the menus. Anyone else have this problem or have a solution?
Thanks
Offline
I believe that problem is caused by these settings in /etc/profile.d/xorg.sh:
if [ -z $XDG_DATA_DIRS ]; then
export XDG_DATA_DIRS=/usr/share:/usr/local/share
else
export XDG_DATA_DIRS=/usr/share:/usr/local/share:$XDG_DATA_DIRS
fi
This ends up causing duplicate paths for the $XDG_DATA_DIRS variable.
Try commenting out a couple of lines like so:
if [ -z $XDG_DATA_DIRS ]; then
export XDG_DATA_DIRS=/usr/share:/usr/local/share
#else
# export XDG_DATA_DIRS=/usr/share:/usr/local/share:$XDG_DATA_DIRS
fi
I am not sure how much you have to restart for this to take effect. You may have to
completely restart the OS.
Offline
I also experienced this problem when using GDM. Strangely, I don't have this problem when using SLiM as my display manager.
Also, on my system some entries in the menu displays the wrong language (for example, France). Is there anyway to correct this?
Offline
Didn't solve the problem your right about the GDM thing it seems to inject its path into the $XDG_DATA_DIRS var. I'm going to tryout SliM
Offline
Happens to me too using GDM and GNOME/Openbox, I made a workaround for this.
Created a file called gnome-menu in ~/.config/openbox/scripts/ with this in it:
XDG_DATA_DIRS=/usr/share:/usr/local/share obm-xdg
Then I just added the script as a pipemenu into the openbox menu.xml:
<menu id="gnome-menu-script" label="Gnome" execute="~/.config/openbox/scripts/gnome-menu" />
Works for me.
Offline
I get duplicate menu items with that too
XDG_DATA_DIRS=/usr/share:/usr/local/share obm-xdg
Then I just added the script as a pipemenu into the openbox menu.xml:
Code:
<menu id="gnome-menu-script" label="Gnome" execute="~/.config/openbox/scripts/gnome-menu" />
damn...
Last edited by wimac (2008-08-27 15:29:57)
Offline