don't advertise mpris until it's implemented

This commit is contained in:
psykose 2024-10-18 02:48:42 +02:00
parent 1037005133
commit d2f5a564e7

View file

@ -32,19 +32,19 @@ class Ui.Window : Adw.ApplicationWindow {
} }
construct { construct {
Bus.own_name (
BusType.SESSION,
"org.mpris.MediaPlayer2.audrey",
BusNameOwnerFlags.NONE,
(conn) => {
try {
// TODO: mpris // TODO: mpris
} catch (IOError e) { // Bus.own_name (
error ("could not register dbus service: %s", e.message); // BusType.SESSION,
} // "org.mpris.MediaPlayer2.audrey",
}, // BusNameOwnerFlags.NONE,
() => {}, // (conn) => {
() => { error ("could not acquire dbus name"); }); // try {
// } catch (IOError e) {
// error ("could not register dbus service: %s", e.message);
// }
// },
// () => {},
// () => { error ("could not acquire dbus name"); });
this.playbin.play_queue = this.play_queue_store; this.playbin.play_queue = this.play_queue_store;