Commit Graph

19 Commits

Author SHA1 Message Date
Mathew Sutcliffe
50b8fbe8fe [bug][Windows][Installer][DBus] Install session.conf in the correct location where dbus-daemon will look for it.
Summary:
On Windows, libdbus will spawn dbus-daemon when swift tries to connect to the session bus.

The daemon looks for session.conf in the share directory.
This patch ensures session.conf is installed in that directory.

Fixes T79.

Reviewers: rwinklmeier

Reviewed By: rwinklmeier

Subscribers: jenkins

Tags: #swift_pilot_client

Maniphest Tasks: T79

Differential Revision: https://dev.swift-project.org/D22
2017-05-14 17:21:37 +01:00
Mathew Sutcliffe
a8302b310e refs #937 Resolved clazy warnings: QString::arg. 2017-04-19 19:31:45 +01:00
Mathew Sutcliffe
b7f69c6887 refs #937 Resolved clazy warnings: unnecessary memory allocation. 2017-04-19 19:31:39 +01:00
Mathew Sutcliffe
fce1513dae refs #937 Resolved clazy warnings: unnecessary detaching of containers. 2017-04-19 19:31:38 +01:00
Roland Winklmeier
5c37ccdbeb Use CProcessCtrl::startDetached in dbus server and sample
refs #866
2017-04-18 00:07:41 +01:00
Klaus Basan
6c72f8491c refs #883, improved detection if core is running
* use proxy to really ping core (not only checking connection)
* avoid closing Qt default connections -> crash
* some refactoring
2017-02-24 15:21:55 +00:00
Klaus Basan
c1482dca36 Formatting, help text beautifyHelpMessage, improved convertToQString 2017-02-24 15:20:55 +00:00
Roland Winklmeier
df4ac9538a Fix launching of shipped dbus-daemon
When using QProcess::startDetached on Windows, a console Window is
visible. Since dbus-daemon should run silently in the background,
use our customized CProcess instead which supports starting without
console.
This commit also fixes a race condition. CDBusServer launched the
dbus-daemon and immediatly tried to register. If dbus-daemon was not yet
initialized and ready to accept connections, registering the service
failed. This is fixed by a small timeout.

refs #615
2016-05-20 01:42:47 +02:00
Roland Winklmeier
ab1491f085 Rename share/dbus-1 to etc/dbus-1 to not mix it up with data/shared
refs #615
2016-05-20 01:41:19 +02:00
Roland Winklmeier
20aa59c537 Properly cleanup open QDBusConnection's
Everytime you connect to DBus, the connection stays open until it
is manually disconnected or cleaned up by the QCoreApplication
destructor. In case of xbus, ~QCoreApplication is not necessarily
be called and the connection not cleaned up. Hence do it manually.

refs #615
2016-05-20 01:41:18 +02:00
Roland Winklmeier
3d7a39ed00 Fix BlackMisc header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #630
2016-05-13 17:05:49 +02:00
Klaus Basan
1b587c2ee8 refs #485 removed some dependencies from CDBusServer 2016-03-18 01:08:16 +00:00
Klaus Basan
41a88266ab refs #485, improved p2p address handling 2016-03-18 01:08:10 +00:00
Klaus Basan
79cbcbc88f refs #485, remove all objects when closing DBusServer 2016-03-18 01:07:55 +00:00
Klaus Basan
e1505228f2 Fix Jenkins GNU C Compiler Warning 2015-12-08 20:14:13 +01:00
Mathew Sutcliffe
468015949f refs #520 Should be able to register objects on a P2P connection already established. 2015-11-29 21:29:53 +00:00
Mathew Sutcliffe
370a392860 refs #520 When unregistering DBus objects, also remove them from the map of DBus objects. 2015-11-29 21:20:52 +00:00
Mathew Sutcliffe
01d20c53e7 refs #520 CDBusServer style/cleanup. 2015-11-29 20:14:31 +00:00
Mathew Sutcliffe
fbcc42424d refs #520 Moved CDBusServer from BlackCore to BlackMisc. 2015-11-28 02:25:56 +00:00