Commit b0e7f74c authored by Lucas Martins's avatar Lucas Martins

le-multiterminal: Refs #1153, Remove lightdm call

Signed-off-by: default avatarLucas Martins <lsm12@c3sl.ufpr.br>
parent 4ee44901
......@@ -47,12 +47,6 @@ if [ -f $DCONFFILE ]; then
fi
fi
# Set default resolution
LIGHTDM=/etc/lightdm/lightdm.conf
if ! grep 'le-multiterminal-res' $LIGHTDM &>/dev/null; then
echo diplay-setup-script=/usr/sbin/le-multiterminal-res.sh >> $LIGHTDM
fi
# Activate multiseat
# It's gonna be activated by the userful-setup-wizard
#/usr/sbin/userful-umx --enable --silent
......
......@@ -26,6 +26,8 @@
ALREADY_EXEC_FILE="/etc/le-multiterminal/already_executed"
ALREADY_INSTALLED="/etc/le-multiterminal/already_installed"
CONTROL_CENTER="/usr/share/userful/frontend/start-control-center.sh"
RESOLUTION='1024x768'
defaultResolution() {
......@@ -36,14 +38,14 @@ defaultResolution() {
'Display controller:.+TN-502|Display
controller:.+SM501'; then
# Hardware is 832008
RESOLUTION='1360x768'
RESOLUTION='1366x768'
elif [[ $MOBONAME == G41M* ]] && lspci | grep -q \
'VGA compatible controller: Intel Corporation
4 Series Chipset Integrated Graphics Controller
(rev 03)' ; then
# Hardware is 712010 $MOBONAME == 'G41M-S'
RESOLUTION='1366x768'
RESOLUTION='1360x768'
else
# 1024x768 works on all screens
......@@ -54,15 +56,19 @@ defaultResolution() {
# We believe that the maximum number of session that can be opened at the
# same time is MAX_SESSIONS.
MAX_SESSIONS=6
#MAX_SESSIONS=6
if [ ! -f "$ALREADY_INSTALLED" ]; then
$CONTROL_CENTER
touch "ALREADY_INSTALLED"
exit 0
fi
if dpkg-query -l le-multiterminal &>/dev/null &&
[ ! -f "$ALREADY_EXEC_FILE"] ; then
[ ! -f "$ALREADY_EXEC_FILE" ] ; then
mkdir /etc/le-multiterminal
touch "$ALREADY_EXEC_FILE"
defaultResolution
for ((i=0; i<=$MAX_SESSIONS;i++)); do
userful display --resolution $i $RESOLUTION 60
done
userful display -r all $RESOLUTION 60
fi
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment