Bug 350101 - Protocol 'plasmapackage' is not recognized in plasmoids anymore
Summary: Protocol 'plasmapackage' is not recognized in plasmoids anymore
Status: RESOLVED UPSTREAM
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasmaquick (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-10 22:51 UTC by Martin Kostolný
Modified: 2016-02-24 09:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kostolný 2015-07-10 22:51:19 UTC
With KF 5.12 update my plasmoids are not able to load anything starting with plasmapackage:/ anymore.

That means they cannot load custom fonts, images etc.

Reproducible: Always

Steps to Reproduce:
To reproduce this, create a very simple widget and paste this in it:
FontLoader {
    source: 'plasmapackage:/fonts/custom-font.ttf'
}

...of course place custom-font.ttf in proper folder. See plasma log, there will be a message:
klauncher said: Unknown protocol 'plasmapackage'.

The same message is shown when loading image:
Image {
    source: 'plasmapackage:/images/picture.svg'
}




This looks like a regression introduced in KF 5.12. KF 5.11 was working fine.

I've got:
KF 5.12
Plasma 5.3.2
KDE Applications 15.04.3
Comment 1 Martin Blumenstingl 2015-07-18 19:20:03 UTC
Same problem here (I am also using Arch Linux).
Is this desired behavior (= are plasmoids supposed to use relative imports instead of the plasmapackage prefix) or a bug (either in KF/Plasma or Arch Linux' packaging)?
Comment 2 Marco Martin 2015-11-19 12:20:56 UTC
Yes, unfortunately the plasmapackage:/ scheme is not possible anymore since we switched to using a single QQmlEngine, so only relative paths do work now :/
It's unfortunate, but there is nothing we can do about it, becuase without relative or absolute paths we can't know anymore from what package the request comes