File: Xsession

package info (click to toggle)
sdm 0.4.0a-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 188 kB
  • ctags: 4
  • sloc: sh: 68; makefile: 66
file content (30 lines) | stat: -rwxr-xr-x 655 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
#!/bin/ash

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

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

  # checks to see if generic uses 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