Skip to content

Instantly share code, notes, and snippets.

@bwat47
bwat47 / xsession
Created August 2, 2013 22:12
/etc/gdm3/Xsession
#!/bin/sh
#
# This is SORT OF LIKE an X session, but not quite. You get a command as the
# first argument (it could be multiple words, so run it with "eval"). As a
# special case, the command can be:
# failsafe - Run an xterm only
# default - Run the appropriate Xclients startup (see the code below)
# custom - Run ~/.xsession and if that's not available run 'default'
#
# (Note that other arguments could also follow, but only the command one is