gnome-prototypes-team / gnome-music

Gnome Music
https://live.gnome.org/Music
Other
5 stars 13 forks source link

Use Songs view as default playlist for MPRIS #182

Closed kyoushuu closed 11 years ago

kyoushuu commented 11 years ago

If Play() is called through MPRIS and there's no playlists running, switch to Songs view and play first song.

vrutkovs commented 11 years ago

Crashes on clicking MPRIS play:

* Skipping gnome-music (package and dependencies not updated) * [1/1] * success * [1/1] Gtk-Message: Failed to load module "pk-gtk-module" Gtk-Message: Failed to load module "canberra-gtk-module" Detected new source available: 'Tracker' and it supports search Not Found /opt/gnome/lib/python3.3/site-packages/gnomemusic/view.py:362: Warning: g_value_unset: assertion 'G_IS_VALUE (value)' failed item, self.nowPlayingIconName, False, False]) /opt/gnome/lib/python3.3/site-packages/gnomemusic/view.py:362: Warning: g_value_type_transformable: assertion 'G_TYPE_IS_VALUE (src_type)' failed item, self.nowPlayingIconName, False, False])

(gnome-music:4474): Gtk-WARNING **: gtkliststore.c:848: Unable to convert from (null) to gchararray

Traceback (most recent call last): File "/opt/gnome/lib/python3.3/site-packages/gnomemusic/mpris.py", line 153, in _play_first_song model.disconnect(self.first_song_handler) File "/opt/gnome/lib64/python3.3/site-packages/gi/overrides/GObject.py", line 438, in wrapper return func(_get_instance_for_signal(obj), _args, *_kwargs) TypeError: argument instance: Expected GObject.Object, but got PyCapsule

First song is not available in my playlist btw

vrutkovs commented 11 years ago

If Songs view is not selected crashes with:

Detected new source available: 'Tracker' and it supports search
Traceback (most recent call last):
  File "/opt/gnome/lib/python3.3/site-packages/gnomemusic/mpris.py", line 153, in _play_first_song
    model.disconnect(self.first_song_handler)
  File "/opt/gnome/lib64/python3.3/site-packages/gi/overrides/GObject.py", line 438, in wrapper
    return func(_get_instance_for_signal(obj), *args, **kwargs)
TypeError: argument instance: Expected GObject.Object, but got PyCapsule