aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/experimental/lumina-screencast/main.cpp
diff options
context:
space:
mode:
authorZackaryWelch <welch.zackary@gmail.com>2017-09-11 18:34:07 -0400
committerZackaryWelch <welch.zackary@gmail.com>2017-09-11 18:34:07 -0400
commit8130a95c6a437f9a55ddbf1858632e5645aeb0fa (patch)
treec27e44ec41c54b33aba6bcb38c8e06855211ba6c /src-qt5/experimental/lumina-screencast/main.cpp
parentResynced translation files (diff)
downloadlumina-8130a95c6a437f9a55ddbf1858632e5645aeb0fa.tar.gz
lumina-8130a95c6a437f9a55ddbf1858632e5645aeb0fa.tar.bz2
lumina-8130a95c6a437f9a55ddbf1858632e5645aeb0fa.zip
Added a framework for an experimental screen recorder
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