mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-28 05:47:24 +00:00
add linux default
This commit is contained in:
10
example/linux/main.cc
Normal file
10
example/linux/main.cc
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user