<table><tr><td style="">broulik created this revision.<br />broulik added reviewers: Plasma, sitter.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />broulik requested review of this revision.
</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/D21881">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This is a similar situation we have with Flatpak when the desktop entry the application thinks it owns is actually different.<br />
In Snap this environment variable is passed to the process. When no service was found, try reading it.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>5.16 branch</p>

<p>My Spotify snap now identifies as Spotify and I can configure notifications for it.<br />
<a href="https://phabricator.kde.org/F6907051" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F6907051: Screenshot_20190618_150619.png</a></p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Notification without app name still resolves to process name properly</li>
<li class="remarkup-list-item">Service lookup for normal apps still works</li>
<li class="remarkup-list-item">Job view without an app name still resolves to process name properly</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21881">https://phabricator.kde.org/D21881</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>libnotificationmanager/jobsmodel_p.cpp<br />
libnotificationmanager/notification.cpp<br />
libnotificationmanager/notification.h<br />
libnotificationmanager/notification_p.h<br />
libnotificationmanager/server_p.cpp<br />
libnotificationmanager/utils.cpp<br />
libnotificationmanager/utils_p.h</div></div></div><br /><div><strong>To: </strong>broulik, Plasma, sitter<br /><strong>Cc: </strong>plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>