Skip to content

Commit

Permalink
Merge pull request #17440 from brave/mpris-service-name-16187
Browse files Browse the repository at this point in the history
Use Brave-specific identifiers for MPRIS
  • Loading branch information
fmarier authored Mar 2, 2023
2 parents d04caf3 + b3c5f85 commit 0169e0a
Showing 1 changed file with 19 additions and 0 deletions.
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";

0 comments on commit 0169e0a

Please sign in to comment.