/usr/bin/miwm-session is in miwm 1.1-3.
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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | #!/bin/sh
#
# Copyright
#
# Copyright (C) 2009-2010 Jari Aalto <jari.aalto@cante.net>
#
# License
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
LICENSE="GNU GPL v2 or (at your option) any later"
AUTHOR="jari.aalto@cante.net"
VERSION="2009.1230.2335"
CONF="$HOME/.miwm/session"
Help ()
{
echo "\
As MIWM does not have any meny by default to start external programs,
this file starts one terminal with the window manager.
This program is designed to be used by GDM (etc) from
/usr/share/xsessions/miwm.desktop and therefore this program
does not exit until Window Manager exists."
exit 0
}
Version ()
{
echo "$VERSION Copyright (C) $AUTHOR $LICENSE"
exit 0
}
Warn ()
{
echo "$*" >&2
}
Term ()
{
if [ -e /usr/bin/x-terminal-emulator ]; then
x-terminal-emulator -display ${DISPLAY:-":0"} &
else
Warn "$0: No x-terminal-emulator to start"
fi
}
Session ()
{
if [ -f $CONF ]; then
sh $CONF
else
Term
fi
}
Main ()
{
while :
do
case "$1" in
-h|--help)
Help
;;
-V|--version)
Version
;;
*) break
;;
esac
done
log=${TMPDIR:-/tmp}/${LOGNAME:-$USER}$$.miwm.log
{ sleep 4; Session ; } &
miwm "$@" 2>&1 | tee $log
}
Main "$@"
# End of file
|