forked from pool/xdg-utils
31 lines
469 B
Diff
31 lines
469 B
Diff
|
--- scripts/xdg-su
|
||
|
+++ scripts/xdg-su
|
||
|
@@ -366,6 +366,16 @@
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
+
|
||
|
+su_xfce()
|
||
|
+{
|
||
|
+ if which gnomesu &>/dev/null ; then
|
||
|
+ su_gnome
|
||
|
+ else
|
||
|
+ su_generic
|
||
|
+ fi
|
||
|
+}
|
||
|
+
|
||
|
[ x"$1" != x"" ] || exit_failure_syntax
|
||
|
|
||
|
user=
|
||
|
@@ -427,6 +437,10 @@
|
||
|
su_generic
|
||
|
;;
|
||
|
|
||
|
+ xfce)
|
||
|
+ su_xfce
|
||
|
+ ;;
|
||
|
+
|
||
|
*)
|
||
|
[ x"$user" = x"" ] && user=root
|
||
|
exit_failure_operation_impossible "no graphical method available for invoking '$cmd' as '$user'"
|