Re: testing a plasma applet with plasmoid viewer despite PackageUrlInterceptor

2015-01-05 Thread Sebastian Kügler
On Sunday, December 28, 2014 21:21:12 Philipp A. wrote:
 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.

Those are warnings, you can ignore them. They won't affect the loading of the 
import plugin.
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: testing a plasma applet with plasmoid viewer despite PackageUrlInterceptor

2015-01-05 Thread Sebastian Kügler
On Monday, January 05, 2015 13:01:41 Philipp A. wrote:
 doesn’t change the fact that i see nothing but a blank plasma applet
 container. (only the border, nothing in it)

No errors or warnings hidden in the slurry of output?

 2015-01-05 11:13 GMT+01:00 Sebastian Kügler se...@kde.org:
  On Sunday, December 28, 2014 21:21:12 Philipp A. wrote:
   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.
  
  Those are warnings, you can ignore them. They won't affect the loading of
  the
  import plugin.
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: testing a plasma applet with plasmoid viewer despite PackageUrlInterceptor

2015-01-05 Thread Philipp A.
well, you saw it:
https://www.mail-archive.com/plasma-devel@kde.org/msg36985.html

basically:

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


and

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



2015-01-05 13:13 GMT+01:00 Sebastian Kügler se...@kde.org:

 On Monday, January 05, 2015 13:01:41 Philipp A. wrote:
  doesn’t change the fact that i see nothing but a blank plasma applet
  container. (only the border, nothing in it)

 No errors or warnings hidden in the slurry of output?

  2015-01-05 11:13 GMT+01:00 Sebastian Kügler se...@kde.org:
   On Sunday, December 28, 2014 21:21:12 Philipp A. wrote:
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.
  
   Those are warnings, you can ignore them. They won't affect the loading
 of
   the
   import plugin.
 --
 sebas

 http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
 ___
 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


Re: testing a plasma applet with plasmoid viewer despite PackageUrlInterceptor

2015-01-02 Thread Philipp A.
*bump*

nobody got an idea?

2014-12-29 13:45 GMT+01:00 Philipp A. flying-sh...@web.de:

 2014-12-29 10:23 GMT+01:00 Marco Martin notm...@gmail.com:

 does it load when installed?


 yes. i think it’s the way that plasmoidviewer loads it that breaks, see my
 other mail, where i changed the interceptor to allow these requests and
 still get errors:


 2014-12-28 21:21 GMT+01:00 Philipp A. flying-sh...@web.de:

 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 

Re: testing a plasma applet with plasmoid viewer despite PackageUrlInterceptor

2014-12-29 Thread Marco Martin
On Saturday 27 December 2014, Philipp A. 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 $@ .

does it load when installed?


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


Re: testing a plasma applet with plasmoid viewer despite PackageUrlInterceptor

2014-12-29 Thread Philipp A.
2014-12-29 10:23 GMT+01:00 Marco Martin notm...@gmail.com:

 does it load when installed?


yes. i think it’s the way that plasmoidviewer loads it that breaks, see my
other mail, where i changed the interceptor to allow these requests and
still get errors:

2014-12-28 21:21 GMT+01:00 Philipp A. flying-sh...@web.de:

 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 

Re: testing a plasma applet with plasmoid viewer despite PackageUrlInterceptor

2014-12-28 Thread Philipp A.
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 da...@davidedmundson.co.uk:



 On Sat, Dec 27, 2014 at 10:11 PM, Philipp A. flying-sh...@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


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


Re: testing a plasma applet with plasmoid viewer despite PackageUrlInterceptor

2014-12-28 Thread Philipp A.
code is here btw: https://github.com/flying-sheep/steam-plasmoid

2014-12-28 17:41 GMT+01:00 Philipp A. flying-sh...@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 da...@davidedmundson.co.uk:



 On Sat, Dec 27, 2014 at 10:11 PM, Philipp A. flying-sh...@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



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


Re: testing a plasma applet with plasmoid viewer despite PackageUrlInterceptor

2014-12-28 Thread Philipp A.
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-sh...@web.de:

 code is here btw: https://github.com/flying-sheep/steam-plasmoid

 2014-12-28 17:41 GMT+01:00 Philipp A. flying-sh...@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 da...@davidedmundson.co.uk:



 On Sat, Dec 27, 

Re: testing a plasma applet with plasmoid viewer despite PackageUrlInterceptor

2014-12-27 Thread David Edmundson
On Sat, Dec 27, 2014 at 10:11 PM, Philipp A. flying-sh...@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