diff options
author | Gunnar Hjalmarsson <gunnarhj@ubuntu.com> | 2016-09-25 01:38:58 +0200 |
---|---|---|
committer | Gunnar Hjalmarsson <gunnarhj@ubuntu.com> | 2016-09-25 01:38:58 +0200 |
commit | 5aa48f37988826d4ef3be72f2dfb8f6045c18652 (patch) | |
tree | e66b1faf5359212df94c99f986c3692aa52131bf | |
parent | 2f4dce81f563f85692807f01e99b5a0a6258f629 (diff) | |
download | lightdm-git-5aa48f37988826d4ef3be72f2dfb8f6045c18652.tar.gz |
Skip guest warning dialog in MATE (LP: #1627395)
-rw-r--r-- | debian/guest-session-auto.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/guest-session-auto.sh b/debian/guest-session-auto.sh index 83775289..6c60dac6 100644 --- a/debian/guest-session-auto.sh +++ b/debian/guest-session-auto.sh @@ -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 |