SHA256
1
0
forked from pool/xdg-utils
OBS User unknown 2007-08-30 20:27:22 +00:00 committed by Git OBS Bridge
parent 17bd79815e
commit 189efcaab4
3 changed files with 40 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 30 11:35:02 CEST 2007 - dmueller@suse.de
- fix xdg-su for XFCE (#304753)
-------------------------------------------------------------------
Tue May 22 14:25:00 CEST 2007 - dmueller@suse.de

View File

@ -16,12 +16,13 @@ License: X11/MIT
Group: System/GUI/Other
Summary: Utilities to uniformly interface desktop environments
Version: 1.0.1
Release: 41
Release: 74
BuildArch: noarch
URL: http://portland.freedesktop.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %name-%{version}.tar.bz2
Patch0: xdg-su.diff
Patch1: xfce-su.diff
%description
The xdg-utils package is a set of simple scripts that provide basic
@ -43,6 +44,7 @@ these utilities work properly in their environment.
%prep
%setup -q -n %name-%{version}
%patch0
%patch1
%build
%configure
@ -80,6 +82,8 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/xdg-screensaver.1.gz
%changelog
* Thu Aug 30 2007 - dmueller@suse.de
- fix xdg-su for XFCE (#304753)
* Tue May 22 2007 - dmueller@suse.de
- add xdg-su (#275937)
* Mon Nov 06 2006 - dmueller@suse.de

30
xfce-su.diff Normal file
View File

@ -0,0 +1,30 @@
--- 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'"