Skip to content

Commit

Permalink
Create object path with glibmm
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Dec 6, 2021
1 parent e77f08a commit 3b0decd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions base/platform/linux/base_system_media_controls_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,12 @@ void SystemMediaControls::clearThumbnail() {
void SystemMediaControls::clearMetadata() {
_private->player().metadata.clear();

const auto path = kFakeTrackPath.utf8().constData();
_private->player().metadata["mpris:trackid"] =
Glib::wrap(g_variant_new_object_path(path));
Glib::VariantStringBase path;
Glib::VariantStringBase::create_object_path(
path,
std::string(kFakeTrackPath));

_private->player().metadata["mpris:trackid"] = path;
}

void SystemMediaControls::updateDisplay() {
Expand Down

0 comments on commit 3b0decd

Please sign in to comment.