[nemo/f18] patch open as root and add requires gksu-pokit

leigh123linux leigh123linux at fedoraproject.org
Thu Oct 18 10:16:12 UTC 2012


commit 595d6cdb68a116e2aa02a7dc287d29d2d5b0ab6f
Author: leigh123linux <leigh123linux at googlemail.com>
Date:   Thu Oct 18 11:16:09 2012 +0100

    patch open as root and add requires gksu-pokit

 nemo.spec                  |    6 +++++-
 remove_open_terminal.patch |   17 +++++++++++++++--
 2 files changed, 20 insertions(+), 3 deletions(-)
---
diff --git a/nemo.spec b/nemo.spec
index 811b40b..113ceb7 100644
--- a/nemo.spec
+++ b/nemo.spec
@@ -15,7 +15,7 @@
 Name:           nemo
 Summary:        File manager for Cinnamon
 Version:        1.0.3
-Release:        2%{?dist}
+Release:        3%{?dist}
 License:        GPLv2+ and LGPLv2+
 Group:          User Interface/Desktops
 # To generate source
@@ -31,6 +31,7 @@ Requires:       gvfs >= 1.4.0
 Requires:       gnome-icon-theme >= %{gnome_icon_theme_version}
 Requires:       libexif >= %{libexif_version}
 Requires:       gsettings-desktop-schemas
+Requires:       gksu-polkit
 
 BuildRequires:  glib2-devel >= %{glib2_version}
 BuildRequires:  pango-devel >= %{pango_version}
@@ -212,6 +213,9 @@ fi
 %doc %{_datadir}/gtk-doc/html/libnemo-extension/*
 
 %changelog
+* Thu Oct 18 2012 Leigh Scott <leigh123linux at googlemail.com> - 1.0.3-3
+- patch open as root and add requires gksu-pokit
+
 * Mon Oct 08 2012 Leigh Scott <leigh123linux at googlemail.com> - 1.0.3-2
 - remove requires gnome-terminal
 - patch to remove "open in terminal"
diff --git a/remove_open_terminal.patch b/remove_open_terminal.patch
index c3804d4..d5d2503 100644
--- a/remove_open_terminal.patch
+++ b/remove_open_terminal.patch
@@ -9,13 +9,26 @@
  		<separator name="View items separator"/>
  		<placeholder name="View Items"/>
  		<separator name="Clipboard separator"/>
-@@ -176,9 +174,6 @@
+@@ -176,9 +174,7 @@
  			<menuitem name="Copy to Desktop" action="Move to Desktop"/>
  		</menu>
  	</placeholder>
 -	<separator name="Advanced separator"/>
 -	<menuitem name="OpenInTerminal" action="OpenInTerminal"/>
--	<menuitem name="OpenAsRoot" action="OpenAsRoot"/>
+	<menuitem name="OpenAsRoot" action="OpenAsRoot"/>
  	<separator name="Dangerous separator"/>
  	<placeholder name="Dangerous File Actions">
  		<menuitem name="Trash" action="Trash"/>
+--- a/src/nemo-view.c
++++ b/src/nemo-view.c
+@@ -6080,8 +6080,8 @@ open_as_root (NemoView *view,
+     gchar *argv[4];
+ 	g_assert (NEMO_IS_VIEW (view));
+ 	g_assert (NEMO_IS_FILE (target));
+-    argv[0] = "gksu";
+-    argv[1] = "xdg-open";
++    argv[0] = "gksu-polkit";
++    argv[1] = "nemo";
+     argv[2] = g_file_get_path(nemo_file_get_location (target));
+     argv[3] = NULL;
+     g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL);


More information about the scm-commits mailing list