Review Request 125766: Changed the manual command line parsing to use QCommandLineParser.

Antonio Larrosa Jimenez larrosa at kde.org
Fri Oct 23 14:36:14 UTC 2015


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

Review request for KDE Frameworks.


Repository: kded


Description
-------

Changed the manual command line parsing to use QCommandLineParser instead of
parsing it manually. Also, now kded5 --version and kded5 --help show the
version information and help on options.

There's a new human readable text ("Check cache validity") that maybe
should be inside i18n, but since kded doesn't user i18n at all and
I wasn't sure it's desired to do so, I just left it untranslated.

Also, unset SESSION_MANAGER environment variable instead of setting it empty.
This removes a warning from Qt when parsing the (wrong, empty)
value of SESSION_MANAGER


Diffs
-----

  src/kded.cpp 6929d7d3f24d3556f1b227d5a9bfb5b02b1c295e 

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


Testing
-------

I tested kded5 runs, and the --check, --version and --help options work as expected.
Also, now it doesn't show a warning every time it's run. I didn't really check it's
not doing any session management, but SESSION_MANAGER is only used in one place in qtbase,
at https://github.com/qtproject/qtbase/blob/dev/src/plugins/platforms/xcb/qxcbsessionmanager.cpp#L350
and reading that, I think unsetting the environment variable makes more sense.


Thanks,

Antonio Larrosa Jimenez

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20151023/244a6ef5/attachment.html>


More information about the Kde-frameworks-devel mailing list