diff --git a/packages/main/src/services/@linux/system-api.ts b/packages/main/src/services/@linux/system-api.ts index 35615f0ee3..11b0f081cc 100644 --- a/packages/main/src/services/@linux/system-api.ts +++ b/packages/main/src/services/@linux/system-api.ts @@ -48,7 +48,7 @@ class LinuxMediaService extends MprisService implements NuclearApi { @inject(Window) private window: Window ) { super({ - name: config.title.replace(/ /g, '_'), + name: config.appid, identity: config.title, supportedMimeTypes: config.supportedFormats.map(format => `audio/${format}`), supportedUriSchemes: ['file', 'uri'], diff --git a/packages/main/src/services/config/index.ts b/packages/main/src/services/config/index.ts index 487b62b0f2..1aec0ac62c 100644 --- a/packages/main/src/services/config/index.ts +++ b/packages/main/src/services/config/index.ts @@ -19,6 +19,7 @@ class Config { youtubeUrl: string; youtubeSearch: string; title: string; + appid: string; supportedFormats: string[]; env: Env; icon: string; @@ -33,6 +34,7 @@ class Config { ) { this.env = process.env.NODE_ENV as Env || Env.DEV; this.title = 'Nuclear Music Player'; + this.appid = 'org.js.nuclear.Nuclear'; this.youtubeUrl = 'https://www.youtube.com/watch'; this.youtubeSearch = 'https://www.googleapis.com/youtube/v3/search?part=id,snippet&type=video&maxResults=50&q='; this.supportedFormats = _.uniq(pkg.build.fileAssociations.map(({ ext }) => ext));