You are not logged in.

#1 2008-06-22 04:19:05

wimac
Member
From: Michigan, USA
Registered: 2008-06-06
Posts: 20
Website

obm-xdg duplicating entries

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


.wimac

//screenshots//configs//

Offline

#2 2008-06-23 02:57:48

segmental
Member
Registered: 2004-11-07
Posts: 51

Re: obm-xdg duplicating entries

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

#3 2008-07-03 04:29:30

zodmaner
Member
Registered: 2007-07-11
Posts: 653

Re: obm-xdg duplicating entries

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

#4 2008-08-06 16:39:00

wimac
Member
From: Michigan, USA
Registered: 2008-06-06
Posts: 20
Website

Re: obm-xdg duplicating entries

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


.wimac

//screenshots//configs//

Offline

#5 2008-08-26 17:02:22

Hohoho
Member
Registered: 2007-06-23
Posts: 222

Re: obm-xdg duplicating entries

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

#6 2008-08-27 15:29:40

wimac
Member
From: Michigan, USA
Registered: 2008-06-06
Posts: 20
Website

Re: obm-xdg duplicating entries

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)


.wimac

//screenshots//configs//

Offline

Board footer

Powered by FluxBB