[nautilus-open-terminal] Offer Midnight Commander for desktop if applicable.
- From: Christian Neumair <cneumair src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-open-terminal] Offer Midnight Commander for desktop if applicable.
- Date: Mon, 3 Aug 2009 14:38:41 +0000 (UTC)
commit f6d8097a6a3d4f4640a67b8957261be7f69b123d
Author: Christian Neumair <cnmeumair gnome org>
Date: Mon Aug 3 16:38:14 2009 +0200
Offer Midnight Commander for desktop if applicable.
If the desktop is identical to the home directory or n-o-t is configured to open
the home directory when opening a terminal on the desktop, the attached patch
adds a menu item for opening the Midnight Commander.
NEWS | 2 ++
src/nautilus-open-terminal.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 0d379ce..168c757 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,8 @@ nautilus-open-terminal 0.15
Fixes
* Properly append terminal items for desktop and remote non-SSH locations which can be mapped back to ~/.gvfs.
+ * Fffer Midnight Commander item for the desktop, if it is identical to the home directory or n-o-t is configured
+ to open the home directory.
nautilus-open-terminal 0.14
===========================
diff --git a/src/nautilus-open-terminal.c b/src/nautilus-open-terminal.c
index 84e7d25..0cbdf39 100644
--- a/src/nautilus-open-terminal.c
+++ b/src/nautilus-open-terminal.c
@@ -524,6 +524,8 @@ nautilus_open_terminal_get_background_items (NautilusMenuProvider *provider,
if (display_mc_item () &&
g_find_program_in_path ("mc") &&
+ (terminal_file_info == FILE_INFO_DESKTOP &&
+ (desktop_is_home_dir () || desktop_opens_home_dir ())) ||
uri_has_local_path (uri)) {
item = open_terminal_menu_item_new (file_info, terminal_file_info, gtk_widget_get_screen (window), "mc", FALSE, FALSE);
items = g_list_append (items, item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]