PDA

View Full Version : [lubuntu] unable to launch "/usr/bin/lxsession..."



Jordan_Schleif
February 27th, 2015, 08:08 PM
Hi there,

After logging into Lubuntu, I get this message before the desktop appears:


unable to launch "/usr/bin/lxsession -s Lubuntu -e LXDE" X session --- "/usr/bin/lxsession -s Lubuntu -e LXDE" not found; falling back to default session.

The desktop loads normally after that, and everything seems to work fine, but it's annoying to have to click to dismiss this message every login.

I've done some searching and have come across similar issues, some involve reinstalling the environment, e.g. xfce4. But I don't know the equivalent command for Lubuntu.

Does anyone know what might be going on here?

steeldriver
February 27th, 2015, 08:14 PM
Hello and welcome to the forums

Can you have a look in the the /usr/share/xsessions directory and report back its contents - e.g. open a terminal and use



ls /usr/share/xsessions


Also, can you clarify whether the message says usr/bin/lxsession or /usr/bin/lxsession?

Jordan_Schleif
February 27th, 2015, 08:19 PM
Yeah, that was a typo, it is "/usr/bin/lxsession".

Here is what I have in that directory. "Lubuntu.desktop" is the session I attempt to use upon login.

Lubuntu.desktop Lubuntu-Netbook.desktop openbox.desktop

Here is the contents of Lubuntu.desktop:


[Desktop Entry]
# The names/descriptions should really be better
Name=Lubuntu
Comment=Lubuntu - Lightweight X11 desktop environment based on LXDE
Comment[zh_TW]=Lubuntu - 輕量級的 X11 桌面環境
Comment[fi]=Lubuntu - kevyt X11-työpöytäympäristö
Comment[ja]=Lubuntu - 軽量な X11 デスクトップ環境
Exec=/usr/bin/lxsession -s Lubuntu -e LXDE
# Icon=
Type=Application

steph.schie
May 22nd, 2015, 10:27 PM
/usr/bin/lxsession was missing.


sudo apt-get install --reinstall lxsession

helped me to log back in and start Lubuntu.