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

mpris: Set app id as identity #67

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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