Review Request 121181: kcmshell: return -1 if module wasn't found

Teemu Rytilahti tpr at iki.fi
Thu Nov 20 18:51:51 UTC 2014


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

(Updated Nov. 20, 2014, 6:51 p.m.)


Status
------

This change has been marked as submitted.


Review request for KDE Frameworks.


Repository: kde-cli-tools


Description
-------

This oneliner makes kcmshell to return -1 when no module was found. This is useful to get feedback whether a module was launched or not on systems shipping both kcmshell4 and kcmshell5. For example digikam is using kcmshell4 to launch colors KCM, which is only launchable through kcmshell5 on systems running the KF5 desktop.

A better approach would be nice to have though as kcmshell may not be available on all platforms. Tried KServiceTypeTrader to load the module and embedded it into a custom dialog, but as the module is available only from kf5's ksycoca that doesn't work..


Diffs
-----

  kcmshell/main.cpp 7d0ec1a 

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


Testing
-------


Thanks,

Teemu Rytilahti

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20141120/9e741258/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list