Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 122063 Details for
Bug 179078
media-sound/listen-0.5 doesn't start because of "Non-ASCII character" and "ValueError"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
a dbus fix for python 2.5
listen-fix-dbus.diff (text/plain), 1.63 KB, created by
Jimmy.Jazz
on 2007-06-14 18:41:02 UTC
(
hide
)
Description:
a dbus fix for python 2.5
Filename:
MIME Type:
Creator:
Jimmy.Jazz
Created:
2007-06-14 18:41:02 UTC
Size:
1.63 KB
patch
obsolete
>Index: src/dbus_manager.py >=================================================================== >--- src/dbus_manager.py (revision 670) >+++ src/dbus_manager.py (working copy) >@@ -30,9 +30,18 @@ > import dbus > import dbus.service > #Try connection du message bus >- dbus.SessionBus() >- if getattr(dbus, 'version', (0,0,0)) >= (0,41,0): >+ dbus_version = getattr(dbus, 'version',(0,0,0)) >+ if dbus_version >= (0,41,0) and dbus_version < (0,80,0): >+ dbus.SessionBus() > import dbus.glib >+ elif dbus_version >= (0,80,0): >+ from dbus.mainloop.glib import DBusGMainLoop >+ DBusGMainLoop(set_as_default=True) >+ dbus.SessionBus() >+ else: >+ pass >+ >+ > except: dbus_imported = False > else: dbus_imported=True > >@@ -41,14 +50,14 @@ > > if not dbus_imported: > class ListenDBus: >- def __init__(self,win,player,object_path="/org/gnome/listen/"): >+ def __init__(self,win,player,object_path="/org/gnome/listen"): > self.player = player > self.win = win > print "No dbus support" > else: > > class ListenDBus(dbus.service.Object): >- def __init__(self,win,player,object_path="/org/gnome/listen/"): >+ def __init__(self,win,player,object_path="/org/gnome/listen"): > self.player = player > self.win = win > self.bus = dbus.SessionBus() >@@ -105,4 +114,4 @@ > song = self.player.song > return str( song.get_str("title")+ " - ("+song.get_str("album")+" - "+song.get_str("artist")+")") > else: >- return "" >\ No newline at end of file >+ return ""
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 179078
:
122059
|
122061
| 122063