┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2025-07-23 12:57:30 +0200
committerMéven Car <[email protected]>2025-07-23 11:55:39 +0000
commit8bc63893bb00cb138a38965c9e268b1d2433ed37 (patch)
treea8fbcdb68aad60a96328077db2a0aac5f01cc5c8 /src/main.cpp
parent3d05be40f2fdf308734dce12060b423fa37ad0b4 (diff)
Don't unset XDG_ACTIVATION_TOKEN manually
If we didn't attach to an existing instance, we call QWindow::show() on our MainWindow which requires the token. Upon successful attachment to another instance we exit anyway.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 5ddef13d4..4a346943b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -187,7 +187,6 @@ int main(int argc, char **argv)
QString token;
if (KWindowSystem::isPlatformWayland()) {
token = qEnvironmentVariable("XDG_ACTIVATION_TOKEN");
- qunsetenv("XDG_ACTIVATION_TOKEN");
} else if (KWindowSystem::isPlatformX11()) {
#if HAVE_X11
token = QX11Info::nextStartupId();