add linux default

This commit is contained in:
mabdc
2020-08-15 19:39:08 +08:00
parent 0ba5b045fa
commit 0ee4a9cdfa
17 changed files with 523 additions and 0 deletions

10
example/linux/main.cc Normal file
View File

@@ -0,0 +1,10 @@
#include "my_application.h"
int main(int argc, char** argv) {
// Only X11 is currently supported.
// Wayland support is being developed: https://github.com/flutter/flutter/issues/57932.
gdk_set_allowed_backends("x11");
g_autoptr(MyApplication) app = my_application_new();
return g_application_run(G_APPLICATION(app), argc, argv);
}