From 09adc359b85a0e67888b62486831a2b67b4d4f65 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Tue, 2 Feb 2021 11:34:40 +1300 Subject: [PATCH] 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. --- .../templates/app/linux.tmpl/my_application.cc.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/flutter_tools/templates/app/linux.tmpl/my_application.cc.tmpl b/packages/flutter_tools/templates/app/linux.tmpl/my_application.cc.tmpl index 5b5f3c08f6..4bba8033c1 100644 --- a/packages/flutter_tools/templates/app/linux.tmpl/my_application.cc.tmpl +++ b/packages/flutter_tools/templates/app/linux.tmpl/my_application.cc.tmpl @@ -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)); }