[nemo] remove "open as root" option
leigh123linux
leigh123linux at fedoraproject.org
Tue Sep 25 20:22:30 UTC 2012
commit 31bcde943a732176bc38eb7834d813b111d2ac22
Author: leigh123linux <leigh123linux at googlemail.com>
Date: Tue Sep 25 21:22:27 2012 +0100
remove "open as root" option
- fix "open terminal" option
nemo.spec | 11 +++++++++--
open_as_root.patch | 10 ++++++++++
open_terminal.patch | 11 +++++++++++
3 files changed, 30 insertions(+), 2 deletions(-)
---
diff --git a/nemo.spec b/nemo.spec
index 96bb469..5e24c63 100644
--- a/nemo.spec
+++ b/nemo.spec
@@ -15,7 +15,7 @@
Name: nemo
Summary: File manager for Cinnamon
Version: 1.0.1
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv2+ and LGPLv2+
Group: User Interface/Desktops
# To generate source
@@ -55,7 +55,8 @@ Requires: nemo-extensions%{?_isa} = %{version}-%{release}
Patch0: rtl-fix.patch
-
+Patch1: open_as_root.patch
+Patch2: open_terminal.patch
%description
@@ -90,6 +91,8 @@ for developing nemo extensions.
%patch0 -p1 -b .rtl-fix
+%patch1 -p1
+%patch2 -p1
%build
@@ -184,6 +187,10 @@ fi
%doc %{_datadir}/gtk-doc/html/libnemo-extension/*
%changelog
+* Tue Sep 25 2012 Leigh Scott <leigh123linux at googlemail.com> - 1.0.1-4
+- remove "open as root" option
+- fix "open terminal" option
+
* Tue Sep 25 2012 Leigh Scott <leigh123linux at googlemail.com> - 1.0.1-3
- validate desktop file
diff --git a/open_as_root.patch b/open_as_root.patch
new file mode 100644
index 0000000..ca0a8a5
--- /dev/null
+++ b/open_as_root.patch
@@ -0,0 +1,10 @@
+--- a/src/nemo-directory-view-ui.xml
++++ b/src/nemo-directory-view-ui.xml
+@@ -178,7 +178,6 @@
+ </placeholder>
+ <separator name="Advanced separator"/>
+ <menuitem name="OpenInTerminal" action="OpenInTerminal"/>
+- <menuitem name="OpenAsRoot" action="OpenAsRoot"/>
+ <separator name="Dangerous separator"/>
+ <placeholder name="Dangerous File Actions">
+ <menuitem name="Trash" action="Trash"/>
diff --git a/open_terminal.patch b/open_terminal.patch
new file mode 100644
index 0000000..0d1a492
--- /dev/null
+++ b/open_terminal.patch
@@ -0,0 +1,11 @@
+--- a/src/nemo-view.c
++++ b/src/nemo-view.c
+@@ -6071,7 +6071,7 @@ static void
+ open_in_terminal (gchar *location)
+ {
+ gchar *argv[2];
+- argv[0] = "x-terminal-emulator";
++ argv[0] = "gnome-terminal";
+ argv[1] = NULL;
+ g_spawn_async(location, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL);
+ }
More information about the scm-commits
mailing list