Could not register MusicPlayer in Python

Bug #971801 reported by Michael Hall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libunity
Incomplete
Medium
Conor Curran

Bug Description

I am trying to register an example MusicPlayer for hello-unity, but it is not showing in the Sound Menu.

Example code: http://paste.ubuntu.com/911878/

Conor Curran (cjcurran)
Changed in libunity:
assignee: nobody → Conor Curran (cjcurran)
Conor Curran (cjcurran)
Changed in libunity:
status: New → In Progress
Revision history for this message
Conor Curran (cjcurran) wrote :

Something definitely up with the python bindings. This example works fine from Vala/C.

Revision history for this message
Conor Curran (cjcurran) wrote :

Please use the m-player.py as a simple test case.

Changed in libunity:
importance: Undecided → Medium
Revision history for this message
Conor Curran (cjcurran) wrote :
Changed in libunity:
status: In Progress → Incomplete
Revision history for this message
Conor Curran (cjcurran) wrote :

Simple test script above works Michael.

Revision history for this message
Conor Curran (cjcurran) wrote :

Two things with your script Michael

1) You don't need to pass in the full path. As long as pass you the name of a desktop file that can be found within the XDG path then it will register
2) You are not calling export() on the player instance.

Revision history for this message
Michael Hall (mhall119) wrote :

It seems that the problem was in my .desktop file, if Name= contained a space or even a \s, it wouldn't work. If I remove the space, or used an underscore, it worked fine. The XDG spec seems to allow spaces (or \s instead of a space) in that field, is there a reason it doesn't work for the Sound Menu?

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

Other bug subscribers

Bug attachments

Remote bug watches

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