[gthumb] terminal: open the current location when using the shorcut
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] terminal: open the current location when using the shorcut
- Date: Sun, 1 Mar 2020 11:34:44 +0000 (UTC)
commit 1a3bbc4cedbf4423d2c40cb62335bf225e037098
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Feb 23 10:28:22 2020 +0100
terminal: open the current location when using the shorcut
extensions/terminal/actions.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/extensions/terminal/actions.c b/extensions/terminal/actions.c
index b411238c..e7e034a0 100644
--- a/extensions/terminal/actions.c
+++ b/extensions/terminal/actions.c
@@ -39,8 +39,13 @@ gth_browser_activate_folder_context_open_in_terminal (GSimpleAction *action,
char *command;
file_data = gth_browser_get_folder_popup_file_data (browser);
- if (file_data == NULL)
- return;
+ if (file_data == NULL) {
+ if (GTH_IS_FILE_SOURCE_VFS (gth_browser_get_location_source (browser)))
+ file_data = g_object_ref (gth_browser_get_location_data (browser));
+
+ if (file_data == NULL)
+ return;
+ }
file_list = g_list_prepend (NULL, file_data->file);
settings = g_settings_new (GTHUMB_TERMINAL_SCHEMA);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]