mirror of https://github.com/cutefishos/core
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
470 B
C++
19 lines
470 B
C++
#include "application.h"
|
|
#include <QQuickWindow>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
putenv((char *)"SESSION_MANAGER=");
|
|
|
|
// force xcb QPA plugin as session manager server is very X11 specific.
|
|
qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("xcb"));
|
|
|
|
QQuickWindow::setDefaultAlphaBuffer(true);
|
|
QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
|
|
|
|
Application a(argc, argv);
|
|
a.setQuitOnLastWindowClosed(false);
|
|
|
|
return a.exec();
|
|
}
|