I encountered the same issue and found a decent solution. For anyone
else having the same issue it's easy to patch yourself for now.

First I tried changing the QuickOpen code to use the
bus.send_message_sync function, since the convenience function send_sync
disappeared in this version. I had a create a Message object for that.
But it looks like Filebrowser doesn't us the new Message/MessageBus API
either (based on errors and guessing only) and so that was a dead end.


Finally, I found this function at https://github.com/gmate/gmate. It avoid the 
use of the message bus completely.
    def get_filebrowser_root(self):
        base = u'org.gnome.gedit.plugins.filebrowser'

        settings = Gio.Settings.new(base)
        root = settings.get_string('virtual-root')

        if root is not None:
            filter_mode = settings.get_strv('filter-mode')

            if 'hide-hidden' in filter_mode:
                self._show_hidden = False
            else:
                self._show_hidden = True

            return root


Then I commented out the failing bus/msg code (all the way from getting the bus 
to using the msg) and replaced it with this. Most of this is from the same 
github repo.
    fbroot = self.get_filebrowser_root()
    if fbroot != "" and fbroot is not None:
        paths.append(Gio.file_new_for_uri(fbroot))

And it worked!

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

Title:
  'quick open' and  'file browser panel' conflict

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gedit-plugins/+bug/879632/+subscriptions

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

Reply via email to