Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
mpris: Set app id as identity
Browse files Browse the repository at this point in the history
Flatpak automatically exposes org.mpris.MediaPlayer2.APP_ID as a owned
dbus name.

Fixes: #65
  • Loading branch information
A6GibKm committed Mar 11, 2024
1 parent 8069e5e commit aff3583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions build-aux/flatpak/com.vixalien.decibels.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/mpris.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit aff3583

Please sign in to comment.