-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17440 from brave/mpris-service-name-16187
Use Brave-specific identifiers for MPRIS
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
patches/components-system_media_controls-linux-system_media_controls_linux.cc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/components/system_media_controls/linux/system_media_controls_linux.cc b/components/system_media_controls/linux/system_media_controls_linux.cc | ||
index 46b9488bfc0d83060748b7d58d389124e09cb521..448b9a670fd9faf641cebed02bb020627d8653ea 100644 | ||
--- a/components/system_media_controls/linux/system_media_controls_linux.cc | ||
+++ b/components/system_media_controls/linux/system_media_controls_linux.cc | ||
@@ -46,12 +46,12 @@ constexpr base::TimeDelta kUpdatePositionInterval = base::Milliseconds(100); | ||
const char kMprisAPINoTrackPath[] = "/org/mpris/MediaPlayer2/TrackList/NoTrack"; | ||
|
||
const char kMprisAPICurrentTrackPathFormatString[] = | ||
- "/org/chromium/MediaPlayer2/TrackList/Track%s"; | ||
+ "/com/brave/MediaPlayer2/TrackList/Track%s"; | ||
|
||
} // namespace | ||
|
||
const char kMprisAPIServiceNameFormatString[] = | ||
- "org.mpris.MediaPlayer2.chromium.instance%i"; | ||
+ "org.mpris.MediaPlayer2.brave.instance%i"; | ||
const char kMprisAPIObjectPath[] = "/org/mpris/MediaPlayer2"; | ||
const char kMprisAPIInterfaceName[] = "org.mpris.MediaPlayer2"; | ||
const char kMprisAPIPlayerInterfaceName[] = "org.mpris.MediaPlayer2.Player"; |