On 15-09-2014 17:37, Bruce Dubbs wrote:
> Christopher Gregory wrote:
>> On Mon, September 15, 2014 2:32 pm, Bruce Dubbs wrote:
>>> I'm trying to check out lxde on a fresh lfs-7.6 system, but I can't get
>>> it to come up.  All the logs seem to be OK, but I just get a blank
>>> screen
>>> when executing startx with .xinitrc looking like:
>>>
>>> exec ck-launch-session dbus-launch --exit-with-session startlxde or
>>> ck-launch-session startlxde
>>>
>>> Other window managers I've tried are twm, openbox, and xfce.  All these
>>> seem to work fine.
>>>
>>> Has anyone built lxde to run properly with the latest versions of
>>> packages in BLFS?
> 
> Just to close out this thread, I found the problem.  When building KDE,
> we instruct the user to set the XDG_CONFIG_DIRS and XDG_DATA_DIRS
> environment variables.  These are used internally by lxsession and if
> not set properly, will cause lxde to fail to load.  The solution was to
> unset these variables.

Bruce,

I think this needs to be fixed in the book, I've read in the lists
people using the same machine, but different DEs, and we should not let
them have problems with these variables.

The *defaults* found at:

http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

are:

 If $XDG_DATA_DIRS is either not set or empty, a value equal to
/usr/local/share/:/usr/share/ should be used.

 If $XDG_CONFIG_DIRS is either not set or empty, a value equal to
/etc/xdg should be used.

We have in */etc/profile* (don't you have it in your system?):

# Set some defaults for graphical systems
export XDG_DATA_DIRS=/usr/share

but *no definition* of XDG_CONFIG_DIRS.

In /etc/profile.d/kde.sh:
pathappend $KDE_PREFIX/share           XDG_DATA_DIRS
pathappend /etc/kde/xdg                XDG_CONFIG_DIRS

I would like to fix it by:

Either adding to /etc/profile:

export XDG_CONFIG_DIR=/etc/xdg

Or creating for LXDE:

cat > /etc/profile.d/lxde.sh  << "EOF"
# Begin /etc/profile.d/kde.sh

pathappend /etc/xdg    XDG_CONFIG_DIR
pathappend /usr/share  XDG_DATA_DIRS

# End /etc/profile.d/kde.sh
EOF

-- 
[]s,
Fernando
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to