How to use LXSession to start a custom desktop environment?

The standard session manager used by LXDE - http://wiki.lxde.org/en/LXSession
Locked
gldearman
Posts: 2
Joined: Sun Feb 26, 2012 3:34 am

How to use LXSession to start a custom desktop environment?

Post by gldearman »

Hello,

I don't use the whole LXDE desktop environment. But I am trying to use LXSession as a stand-alone component, and not having much success. I'm hoping someone here is more knowledgeable and can help me.

I am working with Ubuntu 10.04, logging in with Gnome Display Manager, and have installed LXSession 0.4.3.

I'm trying to assemble a custom desktop environment, and I'd like to use LXSession to log in and out of it. I picked LXSession because there's a lot of tutorials on the web expalining how to easily get it to run a custom desktop instead of LXDE. But I can't get any of them to work.

The gdm greeter lists my custom desktop ("custom") in its session list. But when I try to log into it, I get a crash, followed by a return to the gdm greeter. I can log into Gnome just fine.

Here are the contents of my config files as they now stand:

/usr/share/xsessions/custom.desktop

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=custom
Comment=This is a custom desktop environment under development
Exec=/usr/bin/startcustom
Type=Application

/usr/bin/startcustom

Code: Select all

#!bin/sh
exec /usr/bin/lxsession -s custom

/etc/xdg/lxsession/custom/desktop.conf

Code: Select all

[Session]
window_manager=compiz --use-root-window ccp

/etc/xdg/lxsession/custom/autostart

Code: Select all

@smproxy
@avant-window-navigator
@guake
Something here is wrong, or I'm missing a config file or dependency. Or something. I'm pretty clueless at this point.

I'd appreciate any help anyone could offer.

Thanks!

gldearman
Posts: 2
Joined: Sun Feb 26, 2012 3:34 am

Re: How to use LXSession to start a custom desktop environme

Post by gldearman »

Figured it out!

The solution is to change my /usr/bin/startcustom so that it reads:

Code: Select all

#!bin/sh
exec /usr/bin/lxsession -s custom -e custom
That's all it took. And now I can log out of my custom session.

Thanks for reading, even if you weren't able to help!

Locked