-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (1) .- Knowledge Base  . 

LXSession Lite

  

GTK Other Utility

Score 50%
Homepage:  Link
Screenshots:  Link
Downloads:  68
Submitted:  Apr 20 2008
Updated:  Jun 8 2008

Description:

Lightweight X11 session manager for lightwiehgt desktop environments. LXSession Lite is a stripped down version of LXSession removing X11 session management. LXSession is the default X11 session manager of LXDE.
(LXDE: Lightweight X11 Desktop Environment)
http://lxde.sourceforge.net/

LXSession Lite is the stripped down version without
the problematic X11 Session Management support.

What\'s LXSession and who needs this?
A session manager is used to automatically start a set of applications and
set up a working desktop environment.

Gnome is bundled with its own gnome-session, KDE brings its own session
manager, too. XFCE and ROX desktop also have their own session managers,
xfce4-session and rox-session.

LXSession can start a set of programs specified by the distribution
makers or users. Furthermore, LXSession is more advanced than
some of the other ones because it can ``guard\'\' the specified
programs, and get them restarted if crashes happened.

Besides, the major difference between LXSession and the preceding programs
is that LXSession is lightweiht, and it\'s not tighted to \"any\" desktop environment.
It\'s desktop-independent and can be used with any window manager.
With proper configuration, you can make your own desktop environment with
LXSession. This is very useful to the users and developers of non-mainstream
window managers and desktop environemts.

Here we use our own desktop environment LXDE as a working example
to tell you, step by step, how to create your own new desktop environment.

Create a startup script for your desktop, and put it to /usr/bin.
For example, we create a script \'/usr/bin/startlxde\'.

Then, add the commands you want to execute *before* LXSession,
such as setting up locales or others, and put \"exec lxsession\" in the last line.

For example, our startlxde script looks like this:

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

Apparently, LXDE is the name of our desktop.
Replace it with the name of your desktop.

Then, make a desktop entry file for it under \'/usr/share/xsessions\'.
With this, you can select this desktop session from menu in GDM.
For example, this is the content of our LXDE.desktop:

[Desktop Entry]
Encoding=UTF-8
Name=LXDE
Comment=LXDE - Lightweight X11 desktop environment
Exec=/usr/bin/startlxde
Type=Application

Apparantly, you can replace the name and description with your own.
Exec should points to the startup script created in previous step.

Now you get an item \'LXDE\' in the list of available sessions in gdm.
NOTE: Restart of gdm might be needed. ( On Debian: sudo /etc/init.d/gdm restart )

So, what programs will be execuated when LXSession starts?
The window manager, of course, should be the most important one.
It should be specified in this file:
/etc/xdg/lxsession//config
The file is a plain ini file, like this:
[Session]
window_manager=openbox
Just replace \'openbox\' with the window manager you like.

Then, list the other programs you want to execute in this file:
/etc/xdg/lxsession//autostart

For example, our /etc/xdg/lxsession/LXDE/default looks like this:
@lxde-settings
@lxpanel -p LXDE
@pcmanfm -d

lxpanel is our desktop panel, you can replace it with anything you like,
such as avant window manager or others.
List other applications you want to launch, one command per line.
Note that there is no \'&\' at the end of every line since this is not a
shell script. Don\'t append & at the end of any line.
Since this is not a shell script, shell expansion like ~ or $HOME won\'t
work. If you need this, write a script and do the shell things there,
than list the script here in the autostart file.

If a line starts with @, the program will be guarded by lxsession.
That means: If the program crashes, it should be automatically restarted.
If the program is terminated normally, or is terminated because it
receives SIGTERM or SIGKILL, then the reload won\'t happen.

The default system-wide config files under /etc/xdg/lxsession, can be
overriden by user-specific ones. If the user specific config files are
found in ~/.config/lxsession, the ones in /etc/xdg/lxsession will be overriden.
So this leave some flexibility for the users.

Another way to start programs on session startup is to add their *.desktop
files in ~/.config/autostart. Please refer to the Autostart spec.
http://www.freedesktop.org/wiki/Specifications/autostart-spec

OK, it\'s time to login to your desktop environment. Please try it out.
Wait! How to logout from LXSession?

Simply executing this command:
lxsession-logout

This will give you a good-looking logoug dialog.
If gdm is installed, lxsession can do shutdown/reboot/suspend via gdm.
(These options are not available if gdm is not running.)

If you want to customize this logout box further, try this:
lxsession-logout --prompt \"Your custom message\" --banner \"Your logo\" \\
--side \"left | top | right | bottom (The position of the logo)\"

We create a script \'/usr/bin/lxde-logut\' to do this:
#!/bin/sh
/usr/bin/lxsession-logout --banner \"/usr/share/lxde/images/logout-banner.png\" --side top

You can put this logout script in the menu of your window manager or desktop panel.
Then, you can logout via clicking from the menu.

Have fun!




(Source tarball)
Send to a friend
Subscribe
Other  Apps  from PCMan2
Report inappropriate content



Add commentBack






-
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About GTK-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2014 GTK-Apps.org Team  
All rights reserved. GTK-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.