<table><tr><td style="">dfaure 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/D25084">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Just speculating, if an app opens as multiple and then another instance tries to open as unique, it should reuse the existing one or merge?</p></blockquote>

<p>With a konsole state of mind, I can see how this would possibly make sense indeed.<br />
But it would break DBus-activation of unique applications (if it is ever possible to start one of those as "multiple").</p>

<p>When you make a call to "org.kde.kmail" and kmail or kontact isn't running, then the org.kde.kmail.service file installed into the DBus services directory leads to DBus activation, i.e. this starts kmail, which then registers as org.kde.kmail (as expected!), which allows the DBus call to proceed.<br />
If instead, it would register as org.kde.kmail-1234 because there happens to be such a name on the bus already, then the call would fail.</p>

<p>I admit that I don't know of an application which supports both Multiple and Unique, and which also provides a dbus service file for the activation feature.<br />
But this scenario makes me wonder if the magic that you have in mind should be in konsole itself instead of kdbusaddons, to avoid affecting other applications.</p>

<p>I'm open to counter-arguments and counter-examples. Actually, do we know of any other app than konsole which supports both Multiple and Unique modes?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R271 KDBusAddons</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25084">https://phabricator.kde.org/D25084</a></div></div><br /><div><strong>To: </strong>tcanabrava, adridg, dfaure<br /><strong>Cc: </strong>dfaure, GB_2, davidedmundson, adridg, ngraham, kde-frameworks-devel, LeGast00n, michaelh, bruns<br /></div>