Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I run XMonad window manager and use .XSession to startup things like Dropbox and launch other apps I need, at login manager i select User Defined Session. I like to know is there a login manager where I can have .XSession1, .XSession2 and .XSession3 where I have different profiles. So 1st one 'daily dev', 'just browsing' and thirdly 'offline' ?

share|improve this question

I've been using KDM for a while, and I have a whole raft of custom login profiles.

KDM looks in /usr/share/xsessions for a bunch of .desktop files, which tells it what application to execute to spawn the session.

cat /usr/share/xsessions/awesomex.desktop

[Desktop Entry] 
Name=awesomex ( Extended )
Comment=Highly configurable framework window manager

On my machine, /usr/bin/awesomex is a fully customised Xsession startup script that spawns awesomewm with a few of my own programs.

The best part of this, is KDM remembers which session I used last time, and then re-uses it each time I log-in until I decide otherwise.

( I believe other login-managers, perhaps GDM, also recognise these files, but not sure )

share|improve this answer
Nice... Off to google.. – Matt Freeman Feb 15 '11 at 6:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.