From: Kai Uwe Broulik Date: Wed, 23 Jul 2025 10:57:30 +0000 (+0200) Subject: Don't unset XDG_ACTIVATION_TOKEN manually X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/8bc63893bb00cb138a38965c9e268b1d2433ed37?hp=3d05be40f2fdf308734dce12060b423fa37ad0b4 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. --- 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();