Make Linux apps non-unique by default. (#74959)

This stops them attempting to own a D-Bus name, which may not be possible if the
app is sandboxed (e.g. in a Snap). It's also probably what most developers would
expect is the correct behaviour by default.
This commit is contained in:
Robert Ancell
2021-02-02 11:34:40 +13:00
committed by GitHub
parent ac3b9e7f89
commit 09adc359b8

View File

@@ -100,5 +100,6 @@ static void my_application_init(MyApplication* self) {}
MyApplication* my_application_new() {
return MY_APPLICATION(g_object_new(my_application_get_type(),
"application-id", APPLICATION_ID,
"flags", G_APPLICATION_NON_UNIQUE,
nullptr));
}