<table><tr><td style="">davidedmundson marked an inline comment as done.<br />davidedmundson 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/D11513">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/D11513#inline-56808">View Inline</a><span style="color: #4b4d51; font-weight: bold;">broulik</span> wrote in <span style="color: #4b4d51; font-weight: bold;">dbusrunner.cpp:57</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">Should we support asterisk at an arbitrary position? But that makes it a lot more complex and main usecase is finding all <tt style="background: #ebebeb; font-size: 13px;">org.foo.bar-somepid</tt></p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">I'd rather not, as it will prevent me from porting away from the deprecated function you mention should Qt ever get argname0 rules support.</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/D11513#inline-56809">View Inline</a><span style="color: #4b4d51; font-weight: bold;">broulik</span> wrote in <span style="color: #4b4d51; font-weight: bold;">dbusrunner.cpp:60</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">Is this run on the runner thread otherwise this would block</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">It is in the main thread.</p>
<p style="padding: 0; margin: 8px;">But it's only a round trip to the dbus-daemon not a client, so it's blocking in the same way<br />
"registerService" or "connect" block.</p>
<p style="padding: 0; margin: 8px;">I can make it async, but I don't think we gain too much.</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/D11513#inline-56811">View Inline</a><span style="color: #4b4d51; font-weight: bold;">broulik</span> wrote in <span style="color: #4b4d51; font-weight: bold;">dbusrunner.cpp:69</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">Isn't this signal deprecated?</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">Yes, but the alternative doesn't exist.</p>
<p style="padding: 0; margin: 8px;">Without going too much into DBus match rules (which are awesome), QDBusServiceWatcher connects to the signal serviceOwnerChanged on the org.freedesktop.DBus interface to be notified *only* when either the first or second arguments match the given string.</p>
<p style="padding: 0; margin: 8px;">It's why it's a lot better than this deprecated method.</p>
<p style="padding: 0; margin: 8px;">DBus does have a concept of saying "match when the argument starts with [blah]", but QtDbus doesn't, it'd require a bit of a refactor to do so.</p>
<p style="padding: 0; margin: 8px;">I might try and add it.</p></div></div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R308 KRunner</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11513">https://phabricator.kde.org/D11513</a></div></div><br /><div><strong>To: </strong>davidedmundson<br /><strong>Cc: </strong>broulik, Frameworks, michaelh, ngraham<br /></div>