/usr/share/mythbuntu/session.sh is in mythbuntu-default-settings 1.13.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | #!/bin/sh
#Mythbuntu Install & Settings Session
# Copyright © 2007 Mario Limonciello
#Set the background to black
xsetroot -solid black
#source frontend session settings
if [ -f /etc/mythtv/session-settings ]; then
. /etc/mythtv/session-settings
fi
#Don't process me if in live mode
if [ ! -x /usr/bin/mythbuntu-startup ]; then
#if nvidia settings are saved and nvidia drivers installed, load them
if [ -x /usr/bin/nvidia-settings ] && [ -f ~/.nvidia-settings-rc ]; then
nvidia-settings -l
fi
#If we have mtd around (and not running), good idea to start it too
if ! `pgrep mtd>/dev/null`; then
if [ -x /usr/bin/mtd ]; then
/usr/bin/mtd -d
fi
fi
#check if irexec is needed, and start if need be
if [ -x /usr/bin/irexec ] && [ ! -f ~/.noirexec ] && [ -f ~/.lircrc ]; then
if [ -n "$(cat ~/.lirc/* | grep --invert-match "#" | grep irexec | grep prog)" ]
then
killall irexec
irexec -d
fi
fi
#x11vnc
if [ -x /usr/bin/x11vnc ]; then
[ -f /root/.vnc/passwd ] && PASSWORD="/root/.vnc/passwd"
[ -f $HOME/.vnc/passwd ] && PASSWORD="$HOME/.vnc/passwd"
[ ! -z "$PASSWORD" ] && x11vnc -rfbauth $PASSWORD -rfbport 5900 -shared -forever -nowf -norc -notruecolor -bg -xkb
fi
#Customized home commands
if [ -x $HOME/.mythtv/session ]; then
$HOME/.mythtv/session &
fi
fi
#Start window manager
export XDG_CONFIG_DIRS=/etc/xdg/xdg-mythbuntu
export XDG_DATA_DIRS=/etc/xdg/xdg-mythbuntu
exec startxfce4
|