Commit 8f488ca6 authored by David Edmundson's avatar David Edmundson Committed by Jan Grulich
Browse files

Disable X11 session management

As XdgDesktopPortal is a QGuiApplication it connects to our X session
manager.

By default Qt apps behave like "applications" and this can end up on our
auto-restart list if the user saves their session.

Given this is DBus activated this doesn't make sense.
parent 0cd7a9de
...@@ -28,6 +28,7 @@ Q_LOGGING_CATEGORY(XdgDesktopPortalKde, "xdp-kde") ...@@ -28,6 +28,7 @@ Q_LOGGING_CATEGORY(XdgDesktopPortalKde, "xdp-kde")
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QCoreApplication::setAttribute(Qt::AA_DisableSessionManager);
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication a(argc, argv); QApplication a(argc, argv);
a.setApplicationName(QStringLiteral("xdg-desktop-portal-kde")); a.setApplicationName(QStringLiteral("xdg-desktop-portal-kde"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment