diff options
author | David Edmundson <davidedmundson@kde.org> | 2019-02-28 23:47:14 +0000 |
---|---|---|
committer | David Edmundson <davidedmundson@kde.org> | 2019-03-01 01:15:43 +0000 |
commit | 404bee752c5058506900c23faa9d577a38b300f1 (patch) | |
tree | 2401e2c3738deda0f15af3d864a7c1090e9c00ae /examples | |
parent | 3b756bdcf52a33c33f5b7aa573912bb6bd70efbe (diff) |
Add attribute to disable QSessionManager
Loading a session manager can be problemtatic for system services that
are always auto-activated or small DBus activated helpers which
shouldn't really be restored nor gain anything from a session.
The current solutions is to connect to commitDataRequest and
saveStateRequest and then reset a restart hint.
It's very unintuitive and somewhat wasteful given the X session manager
is full of slow blocking calls.
Rather than changing the behavior of QGuiApplication and handling null
pointers, this patch loads the base QPlatformSessionManager that is used
by QPAs that don't have a session manager.
Change-Id: I976521d551549e2d56076e968c6be5421e4a9c20
Reviewed-by: Albert Astals Cid <aacid@kde.org>
Reviewed-by: Aleix Pol Gonzalez <aleixpol@kde.org>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions