Re: [dwm] How to properly execute DWM from GDM?

From: Christian Garbs <mitch_AT_cgarbs.de>
Date: Tue, 9 Oct 2007 23:38:29 +0200

On Mon, Oct 08, 2007 at 02:02:40AM -0700, Amit Uttamchandani wrote:
 
> I apologize if this is a newbie question but I couldn't seem to
> figure it out. I recently installed GDM and added a 'dwm.desktop'
> file under /usr/share/gdm/BuiltInSessions. I am now getting it to
> show up on the session list. However, I can't get it to execute my
> .xinitrc. How is this done?

 I'm using Debian Etch and I'm doing it this way:

1) I have a /usr/share/xsessions/dwm-mitch.desktop

[Desktop Entry]
Encoding=UTF-8
Name=DWM-mitch
Comment=dynamic window manager (mitch)
Exec=/usr/local/bin/dwm-mitch
Type=XSession

2) /usr/local/bin/dwm-mitch is my start script, which is basically the
following with some added sugar (I'm using the restart-patch to
restart dwm without losing the X session):

exec /usr/local/bin/dwm < <(while sleep 2; do echo $(/bin/date +%H:%M:%S) $(cut -d ' ' -f -3 /proc/loadavg); done)

3) To make Debian session managers execute a ~/.Xsession, I have added
the following file under /etc/X11/Xsession.d/98-include-user-xsession

### sourcing user Xsession
### added by mitch 20031007
### see bug #153612
if [ -e $USERXSESSION ]; then
        . $USERXSESSION
fi

Steps 1 and 2 are included in the dwm-mitch patchset. (It's just dwm
version 4.4 as I did not yet have the time to update everything to
micromized dwm.)

Regardsm
Christian

-- 
....Christian.Garbs.....................................http://www.cgarbs.de
 /"\
 \ / *A*venturicarum *S*ignum *C*orpus *I*nvariabiliter *I*nstauratus
  X  Ribbon campain     Say NO to HTML in email, news and magic books
 / \
Received on Tue Oct 09 2007 - 23:47:50 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:58:32 UTC