1 #include <QTranslator>
2 #include <QApplication>
3 #include <QDebug>
4 #include <QFile>
5 
6 #include "MainUI.h"
7 #include <LuminaOS.h>
8 #include <LuminaThemes.h>
9 #include <LUtils.h>
10 #include <LuminaSingleApplication.h>
11 
main(int argc,char ** argv)12 int main(int argc, char ** argv)
13 {
14     LTHEME::LoadCustomEnvSettings();
15     //Make sure Qt5 auto-scaling is disabled for this application (need exact pixel measurements)
16     unsetenv("QT_AUTO_SCREEN_SCALE_FACTOR");
17     LSingleApplication a(argc, argv, "l-screencast");
18     if(!a.isPrimaryProcess()){ return 0; }
19     a.setApplicationName("Record Screen");
20 
21     MainUI w;
22     w.show();
23 
24     return a.exec();
25 }
26