Could not register MusicPlayer in Python

Bug #971801 reported by Michael Hall on 2012-04-02
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) on 2012-04-02
Changed in libunity:
assignee: nobody → Conor Curran (cjcurran)
Conor Curran (cjcurran) on 2012-04-21
Changed in libunity:
status: New → In Progress
Conor Curran (cjcurran) wrote :

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

Conor Curran (cjcurran) wrote :

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

Changed in libunity:
importance: Undecided → Medium
Conor Curran (cjcurran) wrote :
Changed in libunity:
status: In Progress → Incomplete
Conor Curran (cjcurran) wrote :

Simple test script above works Michael.

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.

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  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments