gboolean
open_file_with_filemanager (GtkWidget * window,
                            const gchar * file,
                            gboolean open_parent)
{
        GDesktopAppInfo * d_app_info;
        GKeyFile * key_file;
        GdkAppLaunchContext * ctx = NULL;
        GList * list = NULL;
        GAppInfo * g_app_info;
        GFile * g_file;
        gchar * command;
        gchar * contents;
        gchar * uri;
        gboolean result = TRUE;

        if (open_parent == TRUE && g_file_test (file, G_FILE_TEST_IS_DIR)) {
                gchar * folder = g_path_get_dirname (file);
                uri = g_filename_to_uri (folder, NULL, NULL);
                g_free (folder);
        }
        else {
                uri = g_filename_to_uri (file, NULL, NULL);
        }
...

The problem is at:
   if (open_parent == TRUE && g_file_test (file, G_FILE_TEST_IS_DIR)) {
should be:
   if (open_parent == TRUE && g_file_test (file, G_FILE_TEST_IS_REGULAR)) {

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1633953

Title:
  Gnome-Search-Tool don't open containers folders of files after a
  search in 16.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-search-tool/+bug/1633953/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to