Hello community, here is the log from the commit of package nautilus-open-terminal checked in at Fri May 19 16:53:07 CEST 2006. -------- --- GNOME/nautilus-open-terminal/nautilus-open-terminal.changes 2006-01-25 21:32:33.000000000 +0100 +++ nautilus-open-terminal/nautilus-open-terminal.changes 2006-05-19 02:42:20.000000000 +0200 @@ -1,0 +2,5 @@ +Fri May 19 02:41:44 CEST 2006 - dave@suse.de + +- Added support for the disable_command_line lockdown key. + +------------------------------------------------------------------- New: ---- nautilus-open-terminal-lockdown.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nautilus-open-terminal.spec ++++++ --- /var/tmp/diff_new_pack.15aZ76/_old 2006-05-19 16:53:04.000000000 +0200 +++ /var/tmp/diff_new_pack.15aZ76/_new 2006-05-19 16:53:04.000000000 +0200 @@ -5,7 +5,7 @@ # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # -# Please submit bugfixes or comments via http://bugs.opensuse.org +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild @@ -13,18 +13,19 @@ Name: nautilus-open-terminal BuildRequires: gnome-desktop-devel gnutls-devel intltool libglade2-devel libgnomeprintui-devel libwnck-devel mDNSResponder-devel nautilus-devel perl-XML-Parser update-desktop-files Version: 0.6 -Release: 1 +Release: 16 URL: http://manny.cluecoder.org/packages/nautilus-open-terminal/ Group: System/GUI/GNOME License: GPL Summary: Nautilus Open Terminal Source: %{name}-%{version}.tar.bz2 Patch: %{name}-decl.patch +Patch2: %{name}-lockdown.patch Autoreqprov: on BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -Nautilus extension which allows you to open a terminal in arbitrary +Nautilus extension that allows you to open a terminal in arbitrary local folders. @@ -36,6 +37,7 @@ %prep %setup %patch +%patch2 -p1 rm po/no.* sed -i "s/\(ALL_LINGUAS.*\) no /\1 /" configure.in @@ -64,6 +66,8 @@ /opt/gnome/%{_lib}/nautilus/extensions-1.0/*.so %changelog -n nautilus-open-terminal +* Fri May 19 2006 - dave@suse.de +- Added support for the disable_command_line lockdown key. * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Wed Jan 18 2006 - sbrabec@suse.cz ++++++ nautilus-open-terminal-lockdown.patch ++++++ diff -urN nautilus-open-terminal-0.6/src/nautilus-open-terminal.c nautilus-open-terminal-patched/src/nautilus-open-terminal.c --- nautilus-open-terminal-0.6/src/nautilus-open-terminal.c 2005-10-02 06:14:03.000000000 -0400 +++ nautilus-open-terminal-patched/src/nautilus-open-terminal.c 2006-05-18 20:29:55.000000000 -0400 @@ -280,6 +280,15 @@ name, tooltip, "gnome-terminal"); } +static gboolean +terminal_locked_down (void) +{ + return gconf_client_get_bool (gconf_client_get_default (), + "/desktop/gnome/lockdown/disable_command_line", + NULL); +} + + static GList * nautilus_open_terminal_get_background_items (NautilusMenuProvider *provider, GtkWidget *window, @@ -288,6 +297,10 @@ NautilusMenuItem *item; TerminalFileInfo terminal_file_info; + if (terminal_locked_down ()) { + return NULL; + } + terminal_file_info = get_terminal_file_info (file_info); switch (terminal_file_info) { case FILE_INFO_LOCAL: @@ -316,6 +329,10 @@ NautilusMenuItem *item; TerminalFileInfo terminal_file_info; + if (terminal_locked_down ()) { + return NULL; + } + if (g_list_length (files) != 1 || !nautilus_file_info_is_directory (files->data)) { return NULL; diff -urN nautilus-open-terminal-0.6/src/open-terminal.c nautilus-open-terminal-patched/src/open-terminal.c --- nautilus-open-terminal-0.6/src/open-terminal.c 2005-02-22 14:01:49.000000000 -0500 +++ nautilus-open-terminal-patched/src/open-terminal.c 2006-05-18 20:37:55.000000000 -0400 @@ -27,6 +27,7 @@ #include "nautilus-open-terminal.h" +#include <gconf/gconf-client.h> #include <libintl.h> static GType type_list[1]; @@ -41,6 +42,11 @@ bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + + gconf_client_add_dir(gconf_client_get_default(), + "/desktop/gnome/lockdown", + 0, + NULL); } void ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun...
participants (1)
-
root@suse.de