<table><tr><td style="">mart added inline comments.</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/D2345" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>INLINE COMMENTS</strong><div><div style="margin: 6px 0 12px 0;"><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D2345#inline-9602" rel="noreferrer">View Inline</a><span style="color: #4b4d51; font-weight: bold;">davidedmundson</span> wrote in <span style="color: #4b4d51; font-weight: bold;">shellcorona.cpp:321</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">If we go with this patch</p>
<p style="padding: 0; margin: 8px;">you should filter out ItemGeometries and AppletOrder here as you're making a special case out of them.<br />
Otherwise you're saving garbage data in the config which could conflict; one of the new IDs could clash.</p>
<p style="padding: 0; margin: 8px;">Also what's going to happen to activityId</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">yep, same thing for location and form factor i think</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D2345#inline-9599" rel="noreferrer">View Inline</a><span style="color: #4b4d51; font-weight: bold;">davidedmundson</span> wrote in <span style="color: #4b4d51; font-weight: bold;">shellcorona.cpp:394</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">If every way is a hack, then maybe this feature shouldn't go in at all.</p>
<p style="padding: 0; margin: 8px;">So the root issue is:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">for saving/restory applet geometry is handled by the containment which is in completely arbitrary as it's done by that containment plugin.</li>
<li class="remarkup-list-item">they use the ID of the applet for an index</li>
<li class="remarkup-list-item">ID won't be the same</li>
</ul>
<p style="padding: 0; margin: 8px;">Brainstorming, there is an option.<br />
*if* we assume dump and resume is always going to be from a clean setup we could just expose setting initial id to applet scripting. It's already in Plasma::Containment. it would fix all the problems without any hacks.</p>
<hr class="remarkup-hr" />
<p style="padding: 0; margin: 8px;">I can imagine this patch will destroy PMC if someone switched LNF twice as you're hardcoding stuff in plasma-workspace based on behaviour of plasma-desktop.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">yes, it's always from a clean setup..<br />
if you look back in the revision history, creating the applet with a specified id was exactly what it was doing in the early revisions.<br />
As this would have needed some ugly changes to the desktop containment, after a discussion with Eike we decided to go this route instead, as it doesn't expose directly the config file format in the scripting.</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D2345#inline-9599" rel="noreferrer">View Inline</a><span style="color: #4b4d51; font-weight: bold;">davidedmundson</span> wrote in <span style="color: #4b4d51; font-weight: bold;">shellcorona.cpp:394</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">If every way is a hack, then maybe this feature shouldn't go in at all.</p>
<p style="padding: 0; margin: 8px;">So the root issue is:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">for saving/restory applet geometry is handled by the containment which is in completely arbitrary as it's done by that containment plugin.</li>
<li class="remarkup-list-item">they use the ID of the applet for an index</li>
<li class="remarkup-list-item">ID won't be the same</li>
</ul>
<p style="padding: 0; margin: 8px;">Brainstorming, there is an option.<br />
*if* we assume dump and resume is always going to be from a clean setup we could just expose setting initial id to applet scripting. It's already in Plasma::Containment. it would fix all the problems without any hacks.</p>
<hr class="remarkup-hr" />
<p style="padding: 0; margin: 8px;">I can imagine this patch will destroy PMC if someone switched LNF twice as you're hardcoding stuff in plasma-workspace based on behaviour of plasma-desktop.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">to me this feature is very desktop specific (so much that i even thought at some point loading it in a plugin only for the desktop shell...<br />
I would consider to just ignore l&f changes on shells different from the desktop one, and even to not to dump config for containments different than the 3 default ones</p></div></div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>rPLASMAWORKSPACE Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2345" rel="noreferrer">https://phabricator.kde.org/D2345</a></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>mart, davidedmundson, Plasma<br /><strong>Cc: </strong>davidedmundson, ivan, plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas<br /></div>