<table><tr><td style="">Zren added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D18961">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
          color: #6B748C;
          font-style: italic;
          margin: 4px 0 12px 0;
          padding: 8px 12px;
          background-color: #F8F9FC;">
<div style="font-style: normal;
          padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D18961#410792" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D18961#410792</a>, <a href="https://phabricator.kde.org/p/kossebau/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@kossebau</a> wrote:</div>
<div style="margin: 0;
          padding: 0;
          border: 0;
          color: rgb(107, 116, 140);"><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>we no longer have to install the widget to .../share/plasma/plasmoids/</p></blockquote>

<p>No experience here, but do we not still need to install the QML extension plugins to have the applet working? Or is there some mechanism to load them also from the build dir now?</p></div>
</blockquote>



<ul class="remarkup-list">
<li class="remarkup-list-item">We still need the private QML plugin for the <tt style="background: #ebebeb; font-size: 13px;">Util.___</tt> functions yes, but you don't need to reinstall those if you only touched the QML.</li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">plasmoidviewer -a package</tt> does not populate <tt style="background: #ebebeb; font-size: 13px;">plasmoid.nativeInterface</tt>, so any code touching the <tt style="background: #ebebeb; font-size: 13px;">nativeInterface</tt> config (all of it) doesn't work when you use that to test. I'm not 100% sure why the relative path isn't loading the <tt style="background: #ebebeb; font-size: 13px;">nativeInterface</tt> even though the metadata <tt style="background: #ebebeb; font-size: 13px;">X-KDE-PluginInfo-Name</tt> should be the same. I'll need to dive into <tt style="background: #ebebeb; font-size: 13px;">plasmoidviewer</tt>'s code.</li>
<li class="remarkup-list-item">After the patch, we only need the <tt style="background: #ebebeb; font-size: 13px;">nativeInterface</tt> to migrate the code. If it doesn't load the <tt style="background: #ebebeb; font-size: 13px;">nativeInterface</tt>, plasma uses a placeholder <tt style="background: #ebebeb; font-size: 13px;">QObject {}</tt>, which skips the migration code.</li>
</ul>

<blockquote style="border-left: 3px solid #8C98B8;
          color: #6B748C;
          font-style: italic;
          margin: 4px 0 12px 0;
          padding: 8px 12px;
          background-color: #F8F9FC;">
<div style="font-style: normal;
          padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D18961#410784" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D18961#410784</a>, <a href="https://phabricator.kde.org/p/kossebau/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@kossebau</a> wrote:</div>
<div style="margin: 0;
          padding: 0;
          border: 0;
          color: rgb(107, 116, 140);"><p>Though it breaks my technically-perfect-solution-aiming engineer's heart :)<br />
 please be prepared for some 2 weeks time needed on my side to get over this :)</p></div>
</blockquote>

<p>lol, take your time. This is for the Plasma 5.16/5.17 release cycle so we've ages to choose this or develop a different patch.</p>

<p>So long as the migration code is in Ubuntu 20.04, and Debian 11 (Bullseye) in 2021. We can take it out before 22.04 or Debian 12 (Bookworm) in 2023. Anyone jumping 2 LTS versions usually expects some hiccups when upgrading.</p>

<p>Note: kicker used a similar migration method (QML onCompleted) to port their <tt style="background: #ebebeb; font-size: 13px;">plasmoid.configuration.favorites</tt> => SQLiteDB.  <br />
<a href="https://github.com/KDE/plasma-desktop/blob/master/applets/kicker/package/contents/ui/main.qml#L115" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/KDE/plasma-desktop/blob/master/applets/kicker/package/contents/ui/main.qml#L115</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R114 Plasma Addons</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18961">https://phabricator.kde.org/D18961</a></div></div><br /><div><strong>To: </strong>Zren, kossebau<br /><strong>Cc: </strong>plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>