aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/experimental/lumina-screencast/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/experimental/lumina-screencast/main.cpp')
-rw-r--r--src-qt5/experimental/lumina-screencast/main.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src-qt5/experimental/lumina-screencast/main.cpp b/src-qt5/experimental/lumina-screencast/main.cpp
new file mode 100644
index 00000000..08233e67
--- /dev/null
+++ b/src-qt5/experimental/lumina-screencast/main.cpp
@@ -0,0 +1,25 @@
+#include <QTranslator>
+#include <QApplication>
+#include <QDebug>
+#include <QFile>
+
+#include "MainUI.h"
+#include <LuminaOS.h>
+#include <LuminaThemes.h>
+#include <LUtils.h>
+#include <LuminaSingleApplication.h>
+
+int main(int argc, char ** argv)
+{
+ LTHEME::LoadCustomEnvSettings();
+ //Make sure Qt5 auto-scaling is disabled for this application (need exact pixel measurements)
+ unsetenv("QT_AUTO_SCREEN_SCALE_FACTOR");
+ LSingleApplication a(argc, argv, "l-screencast");
+ if(!a.isPrimaryProcess()){ return 0; }
+ a.setApplicationName("Record Screen");
+
+ MainUI w;
+ w.show();
+
+ return a.exec();
+}
bgstack15