Files
FlClash/linux/runner/main.cc
T
chen08209 94a25f4827 fix(desktop): fix the system proxy, tray and Helper on Windows and Linux
Changelog: Windows and Linux desktop fixes
2026-10-11 12:28:52 +08:00

16 lines
434 B
C++

#include "my_application.h"
#ifdef GDK_WINDOWING_X11
#include <X11/Xlib.h>
#endif
int main(int argc, char** argv) {
#ifdef GDK_WINDOWING_X11
// libX11 enables its own locking only from 1.8 on; on older releases the
// tray indicator reaching X11 from another thread aborts the process.
XInitThreads();
#endif
g_autoptr(MyApplication) app = my_application_new();
return g_application_run(G_APPLICATION(app), argc, argv);
}