Review Request 121234: [Kickoff] Use latest X11 user time for creating StartupInfoId

Martin Gräßlin mgraesslin at kde.org
Tue Dec 2 17:42:30 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121234/
-----------------------------------------------------------

(Updated Dec. 2, 2014, 5:42 p.m.)


Status
------

This change has been marked as submitted.


Review request for Plasma, Eike Hein and Vishesh Handa.


Repository: plasma-desktop


Description
-------

The StartupInfoId is supposed to contain information about the
process and event which triggered the startup of the application.
E.g. in the case of Kickoff it should be the last input event and
the pid of Plasma. By creating the StartupInfoId directly in Kickoff
and passing it to KRun we can ensure that this information is
correct.

The code so far lost this information and the launch information
was not correct. The timestamp is set to a "random" timestamp after
the event and the pid is set to the one of the klauncher process.
Furthermore this saves a roundtrip to the X Server from klauncher.


@Eike and Vishesh: I'd suggest to add the same change to Kicker and KRunner.


Diffs
-----

  applets/kickoff/CMakeLists.txt 817c7e41f4454aab66db5ad84e4b494395e5484f 
  applets/kickoff/core/urlitemlauncher.cpp 2ed074709c88ed10cdd72bae7d2b6bf2879183ae 

Diff: https://git.reviewboard.kde.org/r/121234/diff/


Testing
-------

started applications through plasmoidviewer and inspected the /proc/x/environ to check the DESKTOP_STARTUP_ID env variable.


Thanks,

Martin Gräßlin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20141202/29302812/attachment.html>


More information about the Plasma-devel mailing list