'quick open' and 'file browser panel' conflict
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit-plugins |
Fix Released
|
Medium
|
|||
gedit-plugins (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
in gedit
Given 'quick open' and 'file browser panel' are both enabled
When I press ctrl+alt+o
Then the console reports
Traceback (most recent call last):
File "/usr/lib/
self.
msg = bus.send_
AttributeError: 'MessageBus' object has no attribute 'send_sync'
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gedit-plugins 3.2.0-0ubuntu1
ProcVersionSign
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu3
Architecture: i386
Date: Fri Oct 21 13:26:13 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gedit-plugins
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: amd64 |
Changed in gedit-plugins: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
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. _root(self) : gedit.plugins. filebrowser'
def get_filebrowser
base = u'org.gnome.
settings = Gio.Settings. new(base) get_string( 'virtual- root')
root = settings.
if root is not None:
filter_ mode = settings. get_strv( 'filter- mode')
if 'hide-hidden' in filter_mode:
self. _show_hidden = False
self. _show_hidden = True
else:
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. filebrowser_ root()
paths. append( Gio.file_ new_for_ uri(fbroot) )
fbroot = self.get_
if fbroot != "" and fbroot is not None:
And it worked!