Review Request 118195: Look for kded modules without kded_ prefix first
Alex Merry
alex.merry at kde.org
Mon May 19 14:36:48 UTC 2014
> On May 19, 2014, 1:41 p.m., David Faure wrote:
> > src/kded.cpp, line 373
> > <https://git.reviewboard.kde.org/r/118195/diff/1/?file=273432#file273432line373>
> >
> > !obj.contains('/') is slightly more readable
> >
> > Why this test, anyway? I don't really understand the logic here.
On the basis that there's no point looking for kded_kf5/foo.so, for example. Although it made more sense with the code I originally wrote, which looked for the kded_ prefix first.
- Alex
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118195/#review58153
-----------------------------------------------------------
On May 18, 2014, 6:54 p.m., Alex Merry wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/118195/
> -----------------------------------------------------------
>
> (Updated May 18, 2014, 6:54 p.m.)
>
>
> Review request for KDE Frameworks and David Faure.
>
>
> Repository: kded
>
>
> Description
> -------
>
> Look for kded modules without kded_ prefix first
>
> The implicit kded_ prefix is weird, and contrary to what most other
> kservice-based things do. It also means that kded modules cannot
> (easily) be placed in a subdirectory of the plugin directory.
>
> The old-style naming is still supported, for compatibility.
>
>
> Diffs
> -----
>
> src/kded.cpp 6a3c4935b81ad42324eddc756b24ca85450b8e83
>
> Diff: https://git.reviewboard.kde.org/r/118195/diff/
>
>
> Testing
> -------
>
> Built, installed. Ran kded5, and made sure
> `qdbus org.kde.kded5 /modules/kcookiejar`
> still worked (loaded the module etc) with the old-style naming.
>
> Performed the same test after removing the old kded_kcookiejar.so, and installing a modified desktop file with the library set to kf5/kded/kcookiejar, and the kcookiejar module installed as PLUGIN_DIR/kf5/kded/kcookiejar.so (and restarting kded5, of course).
>
>
> Thanks,
>
> Alex Merry
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140519/9965c7cf/attachment.html>
More information about the Kde-frameworks-devel
mailing list