[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    testing a plasma applet with plasmoid viewer despite PackageUrlInterceptor
From:       "Philipp A." <flying-sheep () web ! de>
Date:       2014-12-27 21:11:48
Message-ID: CAN8d9gmkNgMhvq4wt_0JRsOWwC190X+O8yhdKdnXcDMxc0tgmg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

i'm developing a plasma wiget with C++ plugin.

consistent with how upstream packages do it, with my package being called
`org.kde.plasma.steam`, the plugin is called `org.kde.plasma.private.steam`.

i try to load my plasmoid from its dev directory via

    QML2_IMPORT_PATH="../build/:$QML2_IMPORT_PATH" plasmoidviewer "$@" .

now my problem is that the following seems to be triggered:

https://projects.kde.org/projects/frameworks/plasma-framework/repository/entry/src/plasmaquick/packageurlinterceptor.cpp?rev=master#L128


i.e. `path().contains("org/kde/plasma/private")`, so `pathCheck` should be
replaced with `org.kde.plasma.steam`. but why does the following test fail?
`pathCheck == m_package.metadata().pluginName()`

the plasmoidviewer should load the app metadata, which clearly states
`X-KDE-PluginInfo-Name=org.kde.plasma.steam`

https://projects.kde.org/projects/extragear/sdk/plasmate/repository/revisions/frameworks/entry/plasmoidviewer/view.cpp#L105



[Attachment #5 (text/html)]

<div dir="ltr"><div><div><div><div>Hi,<br><br></div>i'm developing a plasma wiget \
with C++ plugin.<br><br></div>consistent with how upstream packages do it, with my \
package being called `org.kde.plasma.steam`, the plugin is called \
`org.kde.plasma.private.steam`.<br><br></div>i try to load my plasmoid from its dev \
directory via<br><br>       QML2_IMPORT_PATH=&quot;../build/:$QML2_IMPORT_PATH&quot; \
plasmoidviewer &quot;$@&quot; .<br><br></div>now my problem is that the following \
seems to be triggered:<br><div><div><div><br><a \
href="https://projects.kde.org/projects/frameworks/plasma-framework/repository/entry/s \
rc/plasmaquick/packageurlinterceptor.cpp?rev=master#L128">https://projects.kde.org/pro \
jects/frameworks/plasma-framework/repository/entry/src/plasmaquick/packageurlinterceptor.cpp?rev=master#L128</a><br><br></div><div>i.e. \
`path().contains(<span class=""><span class="">&quot;</span><span \
class="">org/kde/plasma/private</span><span class="">&quot;</span></span>)`, so \
`pathCheck` should be replaced with<span class=""><span class=""> `</span><span \
class="">org.kde.plasma.</span><span class="">steam</span><span class=""></span><span \
class="">`. but why does the following test</span></span> fail? `pathCheck == \
m_package.metadata().pluginName()`<br><br></div><div>the plasmoidviewer should load \
the app metadata, which clearly states \
`X-KDE-PluginInfo-Name=org.kde.plasma.steam`<br><br><a \
href="https://projects.kde.org/projects/extragear/sdk/plasmate/repository/revisions/fr \
ameworks/entry/plasmoidviewer/view.cpp#L105">https://projects.kde.org/projects/extrage \
ar/sdk/plasmate/repository/revisions/frameworks/entry/plasmoidviewer/view.cpp#L105</a><br></div><div><span \
class=""><span class=""></span></span></div></div></div></div>



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic