blob: 052ff52bba389b70ff962752921b52f17284ed7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
From 9bd2dcc8a785d977cdf67a7cbb467423803e3327 Mon Sep 17 00:00:00 2001
From: David Edmundson <kde@davidedmundson.co.uk>
Date: Fri, 20 Sep 2024 14:36:11 +0200
Subject: [PATCH] startkde: Disable session management in our session
management
We have two types of session restore, ksmserver for ICE clients and a
small fallback app that runs after ksmserver for any stragglers.
This fallback app is a gui application, as such it will try and connect
to ksmserver. This isn't useful and can cause a block.
BUG: 488853
---
startkde/session-restore/restore.cpp | 1 +
startkde/session-restore/save.cpp | 1 +
2 files changed, 2 insertions(+)
diff --git a/startkde/session-restore/restore.cpp b/startkde/session-restore/restore.cpp
index 2d86215a6f..aecc179139 100644
--- a/startkde/session-restore/restore.cpp
+++ b/startkde/session-restore/restore.cpp
@@ -22,6 +22,7 @@ using namespace Qt::StringLiterals;
int main(int argc, char *argv[])
{
+ QCoreApplication::setAttribute(Qt::AA_DisableSessionManager);
QGuiApplication a(argc, argv);
a.setDesktopSettingsAware(false);
a.setApplicationName(u"plasmasessionrestore"_s);
diff --git a/startkde/session-restore/save.cpp b/startkde/session-restore/save.cpp
index a2a0fb2086..5e1473ed0b 100644
--- a/startkde/session-restore/save.cpp
+++ b/startkde/session-restore/save.cpp
@@ -29,6 +29,7 @@ using namespace Qt::StringLiterals;
int main(int argc, char *argv[])
{
+ QCoreApplication::setAttribute(Qt::AA_DisableSessionManager);
QGuiApplication::setDesktopFileName(u"plasma-fallback-session-save"_s);
QGuiApplication a(argc, argv);
a.setApplicationName(u"plasmasessionrestore"_s);
--
GitLab
|