Hello community,

here is the log from the commit of package gparted for openSUSE:Factory checked 
in at 2015-10-02 14:06:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gparted (Old)
 and      /work/SRC/openSUSE:Factory/.gparted.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gparted"

Changes:
--------
--- /work/SRC/openSUSE:Factory/gparted/gparted.changes  2015-08-07 
00:24:50.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.gparted.new/gparted.changes     2015-10-02 
14:06:57.000000000 +0200
@@ -1,0 +2,11 @@
+Wed Sep 30 15:03:01 UTC 2015 - [email protected]
+
+- Fix boo#920510: Gparted Won't Start:
+  + Add gparted_polkit: launch gparted using pkexec through a
+    wrapper script. Launching pkexec directly from gnome-shell
+    results in a double fork and pkexec does not like to operate
+    on Parent PID = 1.
+  + Replace the command line in the .desktop file by
+    /usr/bin/gparted_polkit.
+
+-------------------------------------------------------------------

New:
----
  gparted_polkit

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gparted.spec ++++++
--- /var/tmp/diff_new_pack.IjbvAN/_old  2015-10-02 14:06:58.000000000 +0200
+++ /var/tmp/diff_new_pack.IjbvAN/_new  2015-10-02 14:06:58.000000000 +0200
@@ -25,6 +25,7 @@
 Url:            http://gparted.sourceforge.net/
 Source0:        
http://downloads.sourceforge.net/project/gparted/gparted/gparted-0.23.0/%{name}-%{version}.tar.bz2
 Source1:        gparted.policy
+Source2:        gparted_polkit
 Source98:       
http://downloads.sourceforge.net/project/gparted/gparted/gparted-0.23.0/%{name}-%{version}.tar.bz2.sig
 Source99:       %{name}.keyring
 BuildRequires:  e2fsprogs-devel
@@ -66,6 +67,7 @@
 %lang_package
 %prep
 %setup -q
+sed -i "s:@gksuprog@ @installdir@/gparted %f:@installdir@/gparted_polkit %f:g" 
gparted.desktop.in.in
 translation-update-upstream
 
 %build
@@ -79,6 +81,10 @@
 
 install -Dm0644 %{S:1} 
%{buildroot}%{_datadir}/polkit-1/actions/org.opensuse.policykit.gparted.policy
 
+# install the helper wrapper
+mkdir -p %{buildroot}%{_sbindir}
+install -p -m755 %{SOURCE2} %{buildroot}%{_sbindir}
+
 %suse_update_desktop_file %{name}
 %fdupes %{buildroot}
 %find_lang %{name} %{?no_lang_C}
@@ -97,6 +103,7 @@
 %files
 %defattr(-,root,root)
 %doc README ChangeLog AUTHORS NEWS COPYING
+%{_sbindir}/gparted_polkit
 %{_sbindir}/gparted
 %{_sbindir}/gpartedbin
 %{_mandir}/man8/gparted.8.gz




++++++ gparted_polkit ++++++
#!/bin/bash

if [ $(which pkexec) ]; then
        pkexec --disable-internal-agent "/usr/sbin/gparted" "$@"
else
        /usr/sbin/gparted "$@"
fi



Reply via email to