<table><tr><td style="">ngraham created this revision.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</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/D5471" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Makes <tt style="background: #ebebeb; font-size: 13px;">/usr/bin/plasmashell --version</tt> the canonical source of truth for the Plasma version. Resolves <a href="https://bugs.kde.org/show_bug.cgi?id=377994" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=377994</a>.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Verified original problem by changing the value of X-KDE-PluginInfo-Version in /usr/share/xsessions/plasma5.desktop and seeing that kinfocenter displays the new (incorrect) value.</p>
<p><tt style="background: #ebebeb; font-size: 13px;">make test</tt>: passed</p>
<p>Verified changes by deploying rebuilt /usr/lib64/qt5/plugins/kcm_about_distro.so file and seeing that kinfoCenter does not display the incorrect value in /usr/share/xsessions/plasma5.desktop, correctly using the value from <tt style="background: #ebebeb; font-size: 13px;">/usr/local/bin/plasmashell --version</tt> instead.</p>
<p>Replaced <tt style="background: #ebebeb; font-size: 13px;">/usr/local/bin/plasmashell</tt> with a shell script that displays a different value and verified that the different value is displayed in kinfocenter</p>
<p>Replaced <tt style="background: #ebebeb; font-size: 13px;">/usr/local/bin/plasmashell</tt> with a shell script that displays a different value that does not follow the correct format or exits with a nonzero status and verified that the output is not displayed in kinfocenter and that it correctly falls back to reading the value from the distro-provided .desktop file.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R102 KInfoCenter</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5471" rel="noreferrer">https://phabricator.kde.org/D5471</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>Modules/about-distro/src/Module.cpp</div></div></div><br /><div><strong>To: </strong>ngraham<br /><strong>Cc: </strong>plasma-devel, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>