Search new knsrc locations
ClosedPublic

Authored by leinir on Feb 26 2019, 1:29 PM.

Details

Summary

Using the search location getter added in D19338, ensure we get all locations which KNSCore::Engine will search for knsrc files, without making assumptions about where that might be.

Diff Detail

Repository
R134 Discover Software Store
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
leinir created this revision.Feb 26 2019, 1:29 PM
Restricted Application added a project: Plasma. · View Herald TranscriptFeb 26 2019, 1:29 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
leinir requested review of this revision.Feb 26 2019, 1:29 PM
apol added inline comments.Feb 26 2019, 3:12 PM
libdiscover/backends/KNSBackend/KNSBackend.cpp
69

Discover should probably not fallback, i.e. pass false as an argument.
Otherwise the problem will persist.

This is Plasma 5.16 and by then we should have all applications within KDE ported. This can be an incentive for the rest to install in the right place.

leinir marked an inline comment as done.Feb 27 2019, 9:41 AM
leinir added inline comments.
libdiscover/backends/KNSBackend/KNSBackend.cpp
69

Hmm! Very good point indeed, we're far enough away for this to be a thing we can sort for the majority of things, and yup, definitely avoids a very great amount of headaches :) i shall swap that and update the patch shortly

leinir updated this revision to Diff 52713.Feb 27 2019, 11:01 AM
leinir marked an inline comment as done.

Don't search fallback locations - we're trying to avoid crashes, so unless people update their installation locations, they don't get Discovered:tm: ;)

apol accepted this revision.Feb 28 2019, 4:27 PM

Submit when kns is ready.

This revision is now accepted and ready to land.Feb 28 2019, 4:27 PM
ngraham requested changes to this revision.Mar 13 2019, 4:02 PM
ngraham added inline comments.
libdiscover/backends/KNSBackend/KNSBackend.cpp
68

Needs to be 57 now (we'll get all of this landed soon, not to worry!)

Also, should the second one be KNEWSTUFFCORE_VERSION_MINOR? Seems weird that both conditions are checking the major version.

This revision now requires changes to proceed.Mar 13 2019, 4:02 PM
leinir added inline comments.Mar 13 2019, 7:28 PM
libdiscover/backends/KNSBackend/KNSBackend.cpp
68

It does indeed! Good catch before landing time, too :)

wwwwoooow... yes, yes it should, not sure how i missed that :D

leinir updated this revision to Diff 53876.Mar 14 2019, 11:49 AM

Update to require 5.57, and also actually inspect the minor version rather than two instances of the major version.

leinir marked 3 inline comments as done.Mar 14 2019, 11:49 AM
ngraham accepted this revision.Mar 14 2019, 2:10 PM

Nice. So do we need to change KNS providers/apps to install their files in the new location now?

This revision is now accepted and ready to land.Mar 14 2019, 2:10 PM

Nice. So do we need to change KNS providers/apps to install their files in the new location now?

We'll need to wait until the next time the CI system gets updated for dependencies, otherwise it'll start being all red and angry - same for this one, incidentally, as what's there now will already report 5.57, but of course won't actually have the function being called... i've got patches under way for it all, though, but as we have to wait for the CI anyway, i've not stuck them up yet :)

ngraham requested changes to this revision.Mar 15 2019, 10:00 PM

All right, since the app dependency freeze is passed, it looks like any changes to apps will need to go into 19.08.0. Changes to anything on the Plasma release cycle can go in immediately since the next Plasma release will depend on Frameworks 5.58.

This revision now requires changes to proceed.Mar 15 2019, 10:00 PM
ngraham accepted this revision.Mar 15 2019, 10:00 PM

Er, whoops.

This revision is now accepted and ready to land.Mar 15 2019, 10:00 PM
This revision was automatically updated to reflect the committed changes.