make plugins load installed data from resources if not found in filesystem
ClosedPublic

Authored by amccann on Nov 12 2015, 3:04 AM.

Diff Detail

Repository
R33 KDevPlatform
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
amccann updated this revision to Diff 1234.Nov 12 2015, 3:04 AM
amccann retitled this revision from to make plugins load installed data from resources if not found in filesystem.
amccann updated this object.
amccann edited the test plan for this revision. (Show Details)
amccann added reviewers: kfunk, mwolff.
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptNov 12 2015, 3:04 AM
apol accepted this revision.Nov 12 2015, 10:29 AM
apol added a reviewer: apol.
apol added a subscriber: apol.

Thanks!

This revision is now accepted and ready to land.Nov 12 2015, 10:29 AM
kfunk edited edge metadata.Nov 12 2015, 10:34 AM

@apol: Does that work fine with XMLGUI? I.e. having the .rc files in resources?

@kfunk Yes..

https://quickgit.kde.org/?p=kxmlgui.git&a=blob&h=a4305a4da9e85a3f060c9ed7a9d6d452a045918c&hb=1e4b16407dcfdbec93195f77c792f384bee6c2c0&f=src%2Fkxmlguifactory.cpp

Look at line 130 there in readConfigFile

xml_file = QStringLiteral(":/kxmlgui5/") + componentName + QLatin1Char('/') + filename;
apol added a comment.Nov 12 2015, 10:58 AM

Yes, as of the last KF5 release.

This could solve quite some issues regarding XDG paths lookup on OS X and Windows (that's why it was introduced, in fact).

mwolff accepted this revision.Nov 12 2015, 12:09 PM
mwolff edited edge metadata.
mwolff added a project: KDevelop.
mwolff edited edge metadata.

\o/

amccann updated this revision to Diff 1243.Nov 12 2015, 12:40 PM
amccann edited edge metadata.
  • address style
amccann updated this revision to Diff 1245.Nov 12 2015, 12:44 PM
  • more style concern
This revision was automatically updated to reflect the committed changes.