mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix(linux): OS Media control not working for Flatpak #1627
This commit is contained in:
parent
d22bba5393
commit
a6e13ffc08
@ -22,8 +22,9 @@ class AudioServices {
|
|||||||
final mobile = kIsMobile || kIsMacOS || kIsLinux
|
final mobile = kIsMobile || kIsMacOS || kIsLinux
|
||||||
? await AudioService.init(
|
? await AudioService.init(
|
||||||
builder: () => MobileAudioService(playback),
|
builder: () => MobileAudioService(playback),
|
||||||
config: const AudioServiceConfig(
|
config: AudioServiceConfig(
|
||||||
androidNotificationChannelId: 'com.krtirtho.Spotube',
|
androidNotificationChannelId:
|
||||||
|
kIsLinux ? 'spotube' : 'com.krtirtho.Spotube',
|
||||||
androidNotificationChannelName: 'Spotube',
|
androidNotificationChannelName: 'Spotube',
|
||||||
androidNotificationOngoing: true,
|
androidNotificationOngoing: true,
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user