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

List:       kde-panel-devel
Subject:    Re: testing a plasma applet with plasmoid viewer despite PackageUrlInterceptor
From:       "Philipp A." <flying-sheep () web ! de>
Date:       2014-12-28 20:21:12
Message-ID: CAN8d9g=Am8ENwDyk0-1rrVtgEDXB4KWN9GK-NLf-qQ8dhoQ+gg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


aha, so the problem seems to be that when loaded via plasmoidviewer

m_package.metadata().pluginName() == "org.kde.desktopcontainment"

when using a custom interceptor to circumvent it, i still get strange
errors. can someone help?

QML debugging is enabled. Only use this in a safe environment.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/FocusFrameStyle.qml:
File not found
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31:
QML Item: Binding loop detected for property "implicitWidth"
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31:
QML Item: Binding loop detected for property "implicitWidth"
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31:
QML Item: Binding loop detected for property "implicitWidth"
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31:
QML Item: Binding loop detected for property "implicitWidth"
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31:
QML Item: Binding loop detected for property "implicitWidth"
qml: View QML loaded
kf5.kservice.sycoca: Trying to open ksycoca from
"/home/phil/.cache/ksycoca5"
Trying to use rootObject before initialization is completed, whilst using
setInitializationDelayed. Forcing completion
Plasmoidviewer detected: circumventing security  QUrl(
"file:///home/phil/Dev/KDE/steam-plasmoid/build/org/kde/plasma/private/steam/qmldir"
)
Plasmoidviewer detected: circumventing security  QUrl(
"file:///home/phil/Dev/KDE/steam-plasmoid/build/org/kde/plasma/private/steam/qmldir"
)
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
qml: New Containment: ContainmentInterface(0x194b390)
QQmlComponent: Component is not ready
QCoreApplication::postEvent: Unexpected null receiver
"file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/applet/AppletError.qml"


 "Error loading QML file.
File not found
"
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.
Constructing a KPluginInfo object from old style JSON. Please use
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your
CMake code.


2014-12-28 18:11 GMT+01:00 Philipp A. <flying-sheep@web.de>:

> code is here btw: https://github.com/flying-sheep/steam-plasmoid
> 
> 2014-12-28 17:41 GMT+01:00 Philipp A. <flying-sheep@web.de>:
> 
> > but then i have to compile the whole plasma framework. that's far out of
> > scope of a plasma applet :/
> > 
> > 2014-12-28 0:57 GMT+01:00 David Edmundson <david@davidedmundson.co.uk>:
> > 
> > > 
> > > 
> > > On Sat, Dec 27, 2014 at 10:11 PM, Philipp A. <flying-sheep@web.de>
> > > wrote:
> > > 
> > > > 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()`
> > > > 
> > > 
> > > From the information given, I have no idea.
> > > 
> > > I recommend adding qDebug statements all over that method till the
> > > problem reveals itself.
> > > 
> > > 
> > > 
> > > > 
> > > > 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
> > > >  
> > > > _______________________________________________
> > > > Plasma-devel mailing list
> > > > Plasma-devel@kde.org
> > > > https://mail.kde.org/mailman/listinfo/plasma-devel
> > > > 
> > > > 
> > > 
> > > _______________________________________________
> > > Plasma-devel mailing list
> > > Plasma-devel@kde.org
> > > https://mail.kde.org/mailman/listinfo/plasma-devel
> > > 
> > > 
> > 
> 


[Attachment #5 (text/html)]

<div dir="ltr"><div>aha, so the problem seems to be that when loaded via \
plasmoidviewer<br><br>m_package.metadata().pluginName() == \
&quot;org.kde.desktopcontainment&quot;<br><br></div>when using a custom interceptor \
to circumvent it, i still get strange errors. can someone help?<br><br>QML debugging \
is enabled. Only use this in a safe environment.<br>Constructing a KPluginInfo object \
from old style JSON. Please use kcoreaddons_desktop_to_json() instead of \
kservice_desktop_to_json() in your CMake code.<br>Constructing a KPluginInfo object \
from old style JSON. Please use kcoreaddons_desktop_to_json() instead of \
kservice_desktop_to_json() in your CMake code.<br>Constructing a KPluginInfo object \
from old style JSON. Please use kcoreaddons_desktop_to_json() instead of \
kservice_desktop_to_json() in your CMake code.<br>Constructing a KPluginInfo object \
from old style JSON. Please use kcoreaddons_desktop_to_json() instead of \
kservice_desktop_to_json() in your CMake code.<br>Constructing a KPluginInfo object \
from old style JSON. Please use kcoreaddons_desktop_to_json() instead of \
kservice_desktop_to_json() in your CMake code.<br>Constructing a KPluginInfo object \
from old style JSON. Please use kcoreaddons_desktop_to_json() instead of \
kservice_desktop_to_json() in your CMake \
code.<br>file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/FocusFrameStyle.qml: \
File not found<br>file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31: \
QML Item: Binding loop detected for property \
&quot;implicitWidth&quot;<br>file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31: \
QML Item: Binding loop detected for property \
&quot;implicitWidth&quot;<br>file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31: \
QML Item: Binding loop detected for property \
&quot;implicitWidth&quot;<br>file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31: \
QML Item: Binding loop detected for property \
&quot;implicitWidth&quot;<br>file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Base/ButtonStyle.qml:153:31: \
QML Item: Binding loop detected for property &quot;implicitWidth&quot;<br>qml: View \
QML loaded<br>kf5.kservice.sycoca: Trying to open ksycoca from \
&quot;/home/phil/.cache/ksycoca5&quot;<br>Trying to use rootObject before \
initialization is completed, whilst using setInitializationDelayed. Forcing \
completion<br>Plasmoidviewer detected: circumventing security   QUrl( \
&quot;file:///home/phil/Dev/KDE/steam-plasmoid/build/org/kde/plasma/private/steam/qmldir&quot; \
) <br>Plasmoidviewer detected: circumventing security   QUrl( \
&quot;file:///home/phil/Dev/KDE/steam-plasmoid/build/org/kde/plasma/private/steam/qmldir&quot; \
) <br>Constructing a KPluginInfo object from old style JSON. Please use \
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your CMake \
code.<br>Constructing a KPluginInfo object from old style JSON. Please use \
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your CMake \
code.<br>Constructing a KPluginInfo object from old style JSON. Please use \
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your CMake \
code.<br>Constructing a KPluginInfo object from old style JSON. Please use \
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your CMake \
code.<br>Constructing a KPluginInfo object from old style JSON. Please use \
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your CMake \
code.<br>Constructing a KPluginInfo object from old style JSON. Please use \
kcoreaddons_desktop_to_json() instead of kservice_desktop_to_json() in your CMake \
code.<br>qml: New Containment: ContainmentInterface(0x194b390)<br>QQmlComponent: \
Component is not ready<br>QCoreApplication::postEvent: Unexpected null \
receiver<br>&quot;file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/applet/AppletError.qml&quot; \
<br>  &quot;Error loading QML file.<br>File not found<br>&quot;<br>Constructing a \
KPluginInfo object from old style JSON. Please use kcoreaddons_desktop_to_json() \
instead of kservice_desktop_to_json() in your CMake code.<br>Constructing a \
KPluginInfo object from old style JSON. Please use kcoreaddons_desktop_to_json() \
instead of kservice_desktop_to_json() in your CMake code.<br>Constructing a \
KPluginInfo object from old style JSON. Please use kcoreaddons_desktop_to_json() \
instead of kservice_desktop_to_json() in your CMake code.<br>Constructing a \
KPluginInfo object from old style JSON. Please use kcoreaddons_desktop_to_json() \
instead of kservice_desktop_to_json() in your CMake code.<br>Constructing a \
KPluginInfo object from old style JSON. Please use kcoreaddons_desktop_to_json() \
instead of kservice_desktop_to_json() in your CMake code.<br>Constructing a \
KPluginInfo object from old style JSON. Please use kcoreaddons_desktop_to_json() \
instead of kservice_desktop_to_json() in your CMake code.<br><br></div><div \
class="gmail_extra"><br><div class="gmail_quote">2014-12-28 18:11 GMT+01:00 Philipp \
A. <span dir="ltr">&lt;<a href="mailto:flying-sheep@web.de" \
target="_blank">flying-sheep@web.de</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">code is here btw: <a \
href="https://github.com/flying-sheep/steam-plasmoid" \
target="_blank">https://github.com/flying-sheep/steam-plasmoid</a><br></div><div \
class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div \
class="gmail_quote">2014-12-28 17:41 GMT+01:00 Philipp A. <span dir="ltr">&lt;<a \
href="mailto:flying-sheep@web.de" \
target="_blank">flying-sheep@web.de</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>but then i have to compile the whole \
plasma framework. that's far out of scope of a plasma applet \
:/<br></div></div><div><div><div class="gmail_extra"><br><div \
class="gmail_quote">2014-12-28 0:57 GMT+01:00 David Edmundson <span dir="ltr">&lt;<a \
href="mailto:david@davidedmundson.co.uk" \
target="_blank">david@davidedmundson.co.uk</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div \
class="gmail_quote"><span>On Sat, Dec 27, 2014 at 10:11 PM, Philipp A. <span \
dir="ltr">&lt;<a href="mailto:flying-sheep@web.de" \
target="_blank">flying-sheep@web.de</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><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/src/plasmaquick/packageurlinterceptor.cpp?rev=master#L128" \
target="_blank">https://projects.kde.org/projects/frameworks/plasma-framework/reposito \
ry/entry/src/plasmaquick/packageurlinterceptor.cpp?rev=master#L128</a><br><br></div><div>i.e. \
`path().contains(<span><span>&quot;</span><span>org/kde/plasma/private</span><span>&quot;</span></span>)`, \
so `pathCheck` should be replaced with<span><span> \
`</span><span>org.kde.plasma.</span><span>steam</span><span></span><span>`. but why \
does the following test</span></span> fail? `pathCheck == \
m_package.metadata().pluginName()`<br></div></div></div></div></blockquote><div><br></div></span><div>From \
the information given, I have no idea.</div><div><br></div><div>  I recommend adding \
qDebug statements all over that method till the problem reveals \
itself.</div><div><br></div><div>  <br></div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span><div \
dir="ltr"><div><div><div><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/frameworks/entry/plasmoidviewer/view.cpp#L105" \
target="_blank">https://projects.kde.org/projects/extragear/sdk/plasmate/repository/re \
visions/frameworks/entry/plasmoidviewer/view.cpp#L105</a><br></div><div><span><span></span></span></div></div></div></div>
 <br></span>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br></div></div> \
<br>_______________________________________________<br> Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br></div> </div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></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