From 757bc9beaabb8470a0d6cf2628269dbf720fbf31 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Wed, 12 Jan 2022 11:12:01 +0100 Subject: Fully support GNOME's inode/directory mechanism --- fiv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fiv.c') diff --git a/fiv.c b/fiv.c index 69d6cb8..56944e3 100644 --- a/fiv.c +++ b/fiv.c @@ -880,11 +880,12 @@ open_any_file(GFile *file, gboolean force_browser) } else if (type == G_FILE_TYPE_DIRECTORY) { load_directory(uri); } else if (force_browser) { - // GNOME, e.g., invokes this as a hint to focus the particular file, - // which we can't currently do yet. + // GNOME, e.g., invokes this as a hint to focus the particular file. gchar *parent = parent_uri(file); load_directory(parent); g_free(parent); + + fiv_browser_select(FIV_BROWSER(g.browser), uri); } else { open(uri); } -- cgit v1.2.3-54-g00ecf