From 8bc63893bb00cb138a38965c9e268b1d2433ed37 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Wed, 23 Jul 2025 12:57:30 +0200 Subject: [PATCH] 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. --- src/main.cpp | 1 - 1 file changed, 1 deletion(-) 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(); -- 2.47.3