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

Bug #1633953 reported by antonioni
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
gnome-search-tool (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The application Gnome-Search-Tool in 16.04 version don't open the container folder of a file after a search. When I use the mouse right button to open the container, nothing happens.

When Gnome-Search-Tool is openned by a terminal, the messages are bellow:

-------------
(nautilus:2088): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_unexport: assertion 'interface_->priv->connections != NULL' failed

(nautilus:2088): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_unexport: assertion 'interface_->priv->connections != NULL' failed

(nautilus:2088): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(nautilus:2088): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(nautilus:2088): GLib-GObject-CRITICAL **: g_signal_connect_object: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
-------------

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-search-tool (Ubuntu):
status: New → Confirmed
Revision history for this message
philippe porquet (ph-porquet) wrote :

This package "gnome-search-tool" is quite excellent and I use it for a long time, up to 14.04 trusty now. But, Unfortunately, it presents a bad bug with 16.04 xenial :
→ Gnome-Search-Tool don't open containers folders of files after a search in 16.04 ← as said higher.
It's very very annoying. The feature “open containers folders of files after a search” is a essential function of the program.
This function continues to work with Nemo by default but I don’t want to use Nemo.
A replacement solution is Catfish, but this program is very very slow and I much prefer “gnome-search-tool”.
Do you intend to fix this bug in the future? Many users would be delighted.
I would be glad if you could indicate a fix to solve this embarrassing problem, (or better?) if you take time to update this excellent package for being entirely operational with 16.04 xenial.

Revision history for this message
Azurit3 (azurit3) wrote :

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)) {

Revision history for this message
Cristiano Fraga G. Nunes (cfgnunes) wrote :

I've made a 'pull request' to fix this bug, in:
https://github.com/GNOME/gnome-search-tool/pulls

But I don't know if my 'pull request' will be accepted.
I don't know how to contribute with code. Can anyone help-me with this?

Revision history for this message
ebaleriola (ebaleriola) wrote :

This bug is still alive more than two years later. My machine: Ubuntu 16.04.5 LTS. Please, it would be most useful correcting this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.