# $Id: 50x11-common_determine-startup 305 2005-07-03 18:51:43Z dnusinow $ # This file is sourced by Xsession(5), not executed. # If no X session startup program was passed to the Xsession script as an # argument (e.g., by the display manager), or if that program was not # executable, fall back to looking for a user's custom X session script, if # allowed by the options file. if [ -z "$STARTUP" ]; then if has_option allow-user-xsession; then for STARTUPFILE in "$USERXSESSION" "$ALTUSERXSESSION"; do if [ -e "$STARTUPFILE" ]; then if [ -x "$STARTUPFILE" ]; then STARTUP="$STARTUPFILE" else shell=${SHELL:-sh} STARTUP="$shell $STARTUPFILE" fi break fi done fi fi # If there is still nothing to use for a startup program, try the system # default session manager, window manager, and terminal emulator. if [ -z "$STARTUP" ]; then if [ -x /usr/bin/x-session-manager ]; then STARTUP=x-session-manager elif [ -x /usr/bin/x-window-manager ]; then STARTUP=x-window-manager elif [ -x /usr/bin/x-terminal-emulator ]; then STARTUP=x-terminal-emulator fi fi # If we still have not found a startup program, give up. if [ -z "$STARTUP" ]; then ERRMSG="unable to start X session ---" if has_option allow-user-xsession; then ERRMSG="$ERRMSG no \"$USERXSESSION\" file, no \"$ALTUSERXSESSION\" file," fi errormsg "$ERRMSG no session managers, no window managers, and no terminal" \ "emulators found; aborting." fi # vim:set ai et sts=2 sw=2 tw=80:
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
20dbus_xdg-runtime | File | 1.04 KB | 0644 |
|
20x11-common_process-args | File | 1.98 KB | 0644 |
|
30x11-common_xresources | File | 878 B | 0644 |
|
35x11-common_xhost-local | File | 389 B | 0644 |
|
40x11-common_xsessionrc | File | 187 B | 0644 |
|
50x11-common_determine-startup | File | 1.53 KB | 0644 |
|
55xfce4-session | File | 664 B | 0644 |
|
60x11-common_localhost | File | 146 B | 0644 |
|
60x11-common_xdg_path | File | 991 B | 0644 |
|
70gconfd_path-on-session | File | 336 B | 0644 |
|
75dbus_dbus-launch | File | 752 B | 0644 |
|
90gpg-agent | File | 880 B | 0644 |
|
90qt-a11y | File | 368 B | 0644 |
|
90x11-common_ssh-agent | File | 629 B | 0644 |
|
95dbus_update-activation-env | File | 513 B | 0644 |
|
99x11-common_start | File | 166 B | 0644 |
|