File: Xsession

package info (click to toggle)
sdm 0.4.1-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 204 kB
  • ctags: 13
  • sloc: sh: 86; makefile: 17
file content (34 lines) | stat: -rwxr-xr-x 823 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/dash

# Copyright 2003-2007 Vagrant Cascadian <vagrant@freegeek.org>.
# Licensed under the terms of the GNU General Public License,
# version 2 or any later version.

if [ -r ~/.sdmrc ]; then
  . ~/.sdmrc
fi

if [ -r /usr/share/sdm/functions.Xsession ]; then
  . /usr/share/sdm/functions.Xsession

  # checks to see if generic users are logged in based on 
  # lessdisks terminal configuration
  #checkMacAddress

  # selects a window manager if none set already
  setWindowManager

  # selects a window manager even if one is already defined
  #chooseWindowManager
  
  # checks if window manager is a valid executable, may be 
  # redundant with /etc/X11/Xsession
  #checkWindowManager
fi

if [ -z "$windowmanager" ]; then
  windowmanager="$1"
fi

# call Xsession defaults...
exec /etc/X11/Xsession $windowmanager