diff --git a/build-aux/flatpak/com.vixalien.decibels.json b/build-aux/flatpak/com.vixalien.decibels.json index 16ff54a..4115cdb 100644 --- a/build-aux/flatpak/com.vixalien.decibels.json +++ b/build-aux/flatpak/com.vixalien.decibels.json @@ -22,8 +22,7 @@ "--socket=fallback-x11", "--socket=wayland", "--socket=pulseaudio", - "--env=GJS_DISABLE_JIT=1", - "--own-name=org.mpris.MediaPlayer2.Decibels" + "--env=GJS_DISABLE_JIT=1" ], "cleanup": [ "/include", diff --git a/src/mpris.ts b/src/mpris.ts index 4ce86ef..0c1e924 100644 --- a/src/mpris.ts +++ b/src/mpris.ts @@ -238,7 +238,7 @@ export class MPRIS extends DBusInterface { private app = Gtk.Application.get_default()!; constructor(public stream: APMediaStream) { - super("org.mpris.MediaPlayer2.Decibels", "/org/mpris/MediaPlayer2"); + super(`org.mpris.MediaPlayer2.${pkg.name}`, "/org/mpris/MediaPlayer2"); this.stream.connect( "notify::title",