From 856395962bfe3aa4e0f9537cf386e0b1a80b337b Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 19 Apr 2015 16:08:27 +0200 Subject: Linux installer: Add support for kdesudo and correct usage of konsole external call. --- src/Setup/Linux/veracrypt_install_template.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Setup/Linux') diff --git a/src/Setup/Linux/veracrypt_install_template.sh b/src/Setup/Linux/veracrypt_install_template.sh index 22d080f6..5fc0fd8c 100644 --- a/src/Setup/Linux/veracrypt_install_template.sh +++ b/src/Setup/Linux/veracrypt_install_template.sh @@ -89,7 +89,7 @@ show_message() else if [ $KTERM -eq 1 ] then - konsole -T 'VeraCrypt Setup' -e "sh -c \"echo $*; read A\"" + konsole --title 'VeraCrypt Setup' --caption 'VeraCrypt Setup' -e sh -c "echo $*; read A" fi fi fi @@ -734,6 +734,7 @@ else fi [ -n "$SUDO" -a $GUI -eq 1 ] && which gksudo >/dev/null 2>/dev/null && SUDO="gksudo -D 'VeraCrypt Setup' --" +[ -n "$SUDO" -a $GUI -eq 1 ] && which kdesudo >/dev/null 2>/dev/null && SUDO="kdesudo -d --comment 'VeraCrypt Setup' --" # License agreement @@ -882,7 +883,7 @@ then else if [ $KTERM -eq 1 ] then - exec konsole -T 'VeraCrypt Setup' -e "sh -c \"echo Installing package...; $SUDO $PACKAGE_INSTALLER $PACKAGE_INSTALLER_OPTS $PACKAGE; rm -f $PACKAGE; echo; echo Press Enter to exit...; read A\"" + exec konsole --title 'VeraCrypt Setup' --caption 'VeraCrypt Setup' -e sh -c "echo Installing package...; $SUDO $PACKAGE_INSTALLER $PACKAGE_INSTALLER_OPTS $PACKAGE; rm -f $PACKAGE; echo; echo Press Enter to exit...; read A" fi fi fi -- cgit v1.2.3