main: Set PULSE_PROP_media.role
This commit is contained in:
@@ -177,8 +177,4 @@ void GstStartup::SetEnvironment() {
|
|||||||
Utilities::SetEnv("GST_REGISTRY", gst_registry_filename);
|
Utilities::SetEnv("GST_REGISTRY", gst_registry_filename);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LIBPULSE
|
|
||||||
Utilities::SetEnv("PULSE_PROP_media.role", "music");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,6 +132,7 @@ int main(int argc, char *argv[]) {
|
|||||||
// This makes us show up nicely in gnome-volume-control
|
// This makes us show up nicely in gnome-volume-control
|
||||||
g_set_application_name("Strawberry");
|
g_set_application_name("Strawberry");
|
||||||
g_setenv("PULSE_PROP_application.icon_name", "strawberry", TRUE);
|
g_setenv("PULSE_PROP_application.icon_name", "strawberry", TRUE);
|
||||||
|
g_setenv("PULSE_PROP_media.role", "music", TRUE);
|
||||||
|
|
||||||
RegisterMetaTypes();
|
RegisterMetaTypes();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user