mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 09:50:12 +00:00
![Nicolas Fella](/assets/img/avatar_default.png)
When one instance of Dolphin activates another it passes a startupId (X11) / activation token (wayland) along. On X11 this is passed using the DESKTOP_STARTUP_ID environment variable. The code tries to read that through KStartupInfo::startupId(). That doesn't work though, since Qt at startup reads the environment variable afterwards. However, it is nice enough to allow us to access it through QX11Info::nextStartupId(). Use that to read the token in the first instance and pass it to the second instance like we do on Wayland The user-facing impact of this is minimal since KStartupInfo::setNewStartupId internally falls back to KWindowSystem::forceActiveWindow when no startupId is passed.
7 lines
176 B
CMake
7 lines
176 B
CMake
#cmakedefine01 HAVE_BALOO
|
|
#cmakedefine01 HAVE_KACTIVITIES
|
|
#cmakedefine01 HAVE_KUSERFEEDBACK
|
|
#cmakedefine01 HAVE_PACKAGEKIT
|
|
#cmakedefine01 HAVE_TERMINAL
|
|
#cmakedefine01 HAVE_X11
|