main: Set `PULSE_PROP_media.role`

This commit is contained in:
Jonas Kvinge 2022-11-17 00:59:22 +01:00
parent 30fa0480a3
commit 2b3fddd015
2 changed files with 1 additions and 4 deletions

View File

@ -177,8 +177,4 @@ void GstStartup::SetEnvironment() {
Utilities::SetEnv("GST_REGISTRY", gst_registry_filename);
#endif
#ifdef HAVE_LIBPULSE
Utilities::SetEnv("PULSE_PROP_media.role", "music");
#endif
}

View File

@ -132,6 +132,7 @@ int main(int argc, char *argv[]) {
// This makes us show up nicely in gnome-volume-control
g_set_application_name("Strawberry");
g_setenv("PULSE_PROP_application.icon_name", "strawberry", TRUE);
g_setenv("PULSE_PROP_media.role", "music", TRUE);
RegisterMetaTypes();