python-keyring timeout on import if started with sudo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNOME Keyring |
Fix Released
|
Medium
|
|||
Salt |
New
|
Undecided
|
Unassigned | ||
gnome-keyring (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
steps to reproduce:
$ sudo python
Python 2.7.3 (default, Sep 26 2012, 21:53:58)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import keyring
this will take ~25 seconds only on Xubuntu. If you do this on Ubuntu or Kubuntu (all version 12.10) it will return immediately. Also if you import keyring with normal user on Xubuntu it will return immediately.
It is caused by a dbus call in /usr/share/
$ sudo python
Python 2.7.3 (default, Sep 26 2012, 21:53:58)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
>>> bus = dbus.SessionBus()
>>> bus.get_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
follow_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
'su', (bus_name, flags)))
File "/usr/lib/
message, timeout)
dbus.exceptions
tags: | added: xubuntu |
Changed in gnome-keyring (Ubuntu): | |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
Changed in gnome-keyring: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in gnome-keyring: | |
status: | New → Confirmed |
no longer affects: | python-secretstorage |
Changed in gnome-keyring: | |
status: | Confirmed → Fix Released |
Changed in gnome-keyring (Ubuntu): | |
status: | Triaged → Fix Released |
It's the same on Arch Linux (was reported by orschiro in https:/ /aur.archlinux. org/packages/ backintime/ ?comments= all and confirmed by others):
http:// pastebin. com/eS7kTHm5