Skip to content

5 Work Arounds for the LXDE Problem: No session for pid

CroutonGeek edited this page Jun 16, 2019 · 21 revisions

If you install the lxde target in xenial, launching with startlxde yields an annoying error: "No session for pid xxxx" where the x's represent a process-ID. Here are 5 work-arounds:

  1. Ignore the error. Wait until you see the black screen, then press Esc to view the error, and press Esc again. Sometimes you may see the error first, and you may have to click OK to continue. If you leave LXDE running most of the time, this could work for you.

  2. Install the lxde target in trusty instead. Current versions of important programs like handbrake, guvcview, openshot, and simplescreenrecorder are available from respected PPA's. You'll never face this error in trusty.

  3. Go ahead and install lxde normally, but then create an .xinitrc file, which will look something like this:

xsetroot -solid teal &

lxpanel &

exec openbox

The above only scratches the surface of what can be done using openbox and lxpanel. After I had installed menu, openbox-menu, and games-toys, I created the following .xinitrc:

croutonpowerd -i &
syndaemon -i 2 -K -d &
#pulseaudio --kill &
xscreensaver -no-splash &
xrandr --output eDP1 --brightness .75 &
xrdb .Xresources &
xsetroot -solid teal &
xfishtank -d &
xplanet -background 0x008080 -latitude 33.689 -longitude -86.6833 &
lxpanel &
exec openbox

At any rate, you get both openbox menus as well as lxpanel menus. Now, to launch your desktop, go:

sudo enter-chroot -b -n xenial xinit

You get to have your cake and eat it too!

NOTE#1: To exit openbox, right-click on the desktop and choose "exit". NOTE#2: This solution works quite well for debian stretch also; actually, for any distro!

  1. Install these 2 targets when setting up xenial: xfce and lxde (plus whatever else you wish, of course). The 1st time you launch startxfce4, accept the default configuration. Drag the top bar to the bottom, and make the short bottom bar vertical and drag to the right side of the screen, not too far above the main bar.

Next, under settings, configure "Preferred Programs" and choose PCManFM as your file manager, and lxterminal as your default terminal.

Last but not least, execute the following command:

openbox --replace & exit

Now exit the desktop, putting a checkmark in the "Save Session" box (if this is your first visit, it will already be checked). Next time you startxfce4, you'll be running openbox with xfce menus. It's really quite nice. I name my chroot xenial-xflx for this hybrid solution.

  1. Someone on here has published a way to actually fix the LXDE problem, located here:

https://github.com/dnschneid/crouton/issues/2489

Scroll way down the screen to the entry posted by d2cmath. It appears somewhat complex, and I haven't tried it yet.

~Thanks ~James

Clone this wiki locally