]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Skip guest warning dialog in MATE (LP: #1627395)
authorGunnar Hjalmarsson <gunnarhj@ubuntu.com>
Sat, 24 Sep 2016 23:38:58 +0000 (01:38 +0200)
committerGunnar Hjalmarsson <gunnarhj@ubuntu.com>
Sat, 24 Sep 2016 23:38:58 +0000 (01:38 +0200)
debian/guest-session-auto.sh

index 83775289f523322fb783e9cb47093ba8cf8362f7..6c60dac625f83f686d778e0805757819d8adba8c 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2013 Canonical Ltd
+# Copyright (C) 2013-2016 Canonical Ltd
 # Author: Gunnar Hjalmarsson <gunnarhj@ubuntu.com>
 #
 # This program is free software: you can redistribute it and/or modify it under
@@ -37,7 +37,7 @@ USB stick, if you would like to access them again later.')
 /var/guest-data folder.')
        test -w /var/guest-data && TEXT="$TEXT\n\n$para2"
 }
-test -f "$HOME"/.skip-guest-warning-dialog || {
+if [ ! -f "$HOME"/.skip-guest-warning-dialog ] && [ "$XDG_CURRENT_DESKTOP" != 'MATE' ]; then
        if [ "$KDE_FULL_SESSION" = true ] && [ -x /usr/bin/kdialog ]; then
                dialog_content
                TEXT_FILE="$HOME"/.guest-session-kdialog
@@ -58,7 +58,7 @@ test -f "$HOME"/.skip-guest-warning-dialog || {
                        zenity --warning --no-wrap --title="$TITLE" --text="$TEXT"
                } &
        fi
-}
+fi
 
 # run possible local startup commands
 test -f /etc/guest-session/auto.sh && . /etc/guest-session/auto.sh