Commit 29b729d8 authored by Robert Spencer's avatar Robert Spencer
Browse files

Add support for different releases of Kubuntu

At some point the contents $DESKTOP_SESSION of changed in Kubuntu. This
change supports both the old and the new.
parent 620a9026
# Use ksshaskpass if it exists and we're using the plasma desktop # Use ksshaskpass if it exists and we're using the plasma desktop
if [ "$DESKTOP_SESSION" = "/usr/share/xsessions/plasma" ] if [[ "$DESKTOP_SESSION" =~ "plasma" ]]
then then
if [ -x /usr/bin/ksshaskpass ] if [ -x /usr/bin/ksshaskpass ]
then then
...@@ -10,4 +10,3 @@ then ...@@ -10,4 +10,3 @@ then
echo "NOTICE: You're using the plasma desktop, but you don't have ksshaskpass installed?" echo "NOTICE: You're using the plasma desktop, but you don't have ksshaskpass installed?"
fi fi
fi fi
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