This commit is contained in:
Your Name
2024-05-10 02:06:07 -05:00
parent e4f4a4be9b
commit c993de6c4b

View File

@@ -1,5 +1,5 @@
#include <sys/resource.h> #include <sys/resource.h>
#include <cstdlib>
// #include <QApplication> // #include <QApplication>
// #include <QTranslator> // #include <QTranslator>
@@ -55,6 +55,11 @@ public:
}; };
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
setenv("XDG_RUNTIME_DIR", "/var/tmp/weston", 1);
setenv("WAYLAND_DISPLAY", "wayland-0", 1);
setenv("QT_QPA_PLATFORM", "wayland", 1);
setenv("QT_WAYLAND_SHELL_INTEGRATION", "wl-shell", 1);
setpriority(PRIO_PROCESS, 0, -20); setpriority(PRIO_PROCESS, 0, -20);
initApp(argc, argv); initApp(argc, argv);
QApplication app(argc, argv); QApplication app(argc, argv);