]> cloud.milkyroute.net Git - dolphin.git/commit
Do not match daemonized dolphin instances
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Mon, 10 Jun 2019 20:13:12 +0000 (22:13 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Mon, 10 Jun 2019 20:13:12 +0000 (22:13 +0200)
commit7df5fc8edb54153f877eed4690e77968a1b804ba
tree463c34b326b92e9cad048dc9ca50b32e24827c0e
parentd886cf3c85ebf536401b8a73a1d4ddbe51b78a0f
Do not match daemonized dolphin instances

Summary:
`dolphin --daemon` does not have the `/dolphin/Dolphin_1` dbus path,
because it doesn't have any DolphinMainWindow.

Checking if the QDBusInterface is valid is not enough, we also need to look for dbus errors.

BUG: 408244

Test Plan:
1. Make sure there is a `dolphin --deamon` process around.
2. Start another dolphin process.

Reviewers: broulik, ngraham, feverfew

Reviewed By: feverfew

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D21666
src/global.cpp