You are not logged in.

#1 2009-01-31 03:55:14

ap0
Member
Registered: 2009-01-31
Posts: 6

[solved] duplicate entries in i.a. lxappearance - using gdm, LXDE

bug: double entries (themes, apps) in lxappearance, "open with…" context dialog when using gdm and lxde.
- related: http://bbs.archlinux.org/viewtopic.php?id=50604, http://bugs.gentoo.org/208282
- does not appear when using slim.

reason: duplicate path entries in $XDG_DATA_DIRS variable

workaround:

insert in /usr/bin/startlxde

export XDG_DATA_DIRS="/usr/share:/usr/local/share:/usr/share/gdm/"

Last edited by ap0 (2009-01-31 03:57:30)

Offline

#2 2009-02-21 05:56:53

PrimoTurbo
Member
Registered: 2008-06-26
Posts: 109
Website

Re: [solved] duplicate entries in i.a. lxappearance - using gdm, LXDE

Oh man I've had this bug for ages, thanks for the fix.

I did it a little different I added that line to /usr/bin/openbox-session (since I use openbox) and it only worked after a restart.

#!/bin/sh

export XDG_DATA_DIRS="/usr/share:/usr/local/share:/usr/share/gdm/"

if test -n "$1"; then
    echo "Syntax: openbox-session"
    echo
    echo "See the openbox-session(1) manpage for help."
  exit
fi

AUTOSTART="$HOME/.config/openbox/autostart.sh"
GLOBALAUTOSTART="/etc/xdg/openbox/autostart.sh"

if test -e $AUTOSTART; then
    . $AUTOSTART
else
    if test -e $GLOBALAUTOSTART; then
        . $GLOBALAUTOSTART
    fi
fi

exec /usr/bin/openbox "$@"

Offline

Board footer

Powered by FluxBB