forked from pool/xdg-utils
8f21da7bce
update to latest snapshot of the utils. It fixes a pile of bugs. (I don't wanna be a maintainer, I'm just fixing bugs which remain unresolved for months.) OBS-URL: https://build.opensuse.org/request/show/126552 OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/xdg-utils?expand=0&rev=18
35 lines
583 B
Diff
35 lines
583 B
Diff
---
|
|
scripts/xdg-su.in | 14 ++++++++++++++
|
|
1 file changed, 14 insertions(+)
|
|
|
|
--- a/scripts/xdg-su.in
|
|
+++ b/scripts/xdg-su.in
|
|
@@ -93,6 +93,16 @@ su_generic()
|
|
fi
|
|
}
|
|
|
|
+
|
|
+su_xfce()
|
|
+{
|
|
+ if which gnomesu &>/dev/null ; then
|
|
+ su_gnome
|
|
+ else
|
|
+ su_generic
|
|
+ fi
|
|
+}
|
|
+
|
|
[ x"$1" != x"" ] || exit_failure_syntax
|
|
|
|
user=
|
|
@@ -154,6 +164,10 @@ case "$DE" in
|
|
su_generic
|
|
;;
|
|
|
|
+ xfce)
|
|
+ su_xfce
|
|
+ ;;
|
|
+
|
|
*)
|
|
[ x"$user" = x"" ] && user=root
|
|
exit_failure_operation_impossible "no graphical method available for invoking '$cmd' as '$user'"
|