diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-11-04 19:56:32 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-11-04 19:56:32 +0100 |
| commit | 80b9359ad3735dbf010dfe5eda992bd979604533 (patch) | |
| tree | d971ba7e0df9f94aea7c18a8e8c327250f18b3c9 | |
| parent | 66e7014f2124c8e0edee0a25b1ff693a3db64403 (diff) | |
UpstartWrapper: use upstart defined values for proxy name, path and interface
(bzr r3884.5.2)
| -rw-r--r-- | unity-shared/UpstartWrapper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unity-shared/UpstartWrapper.cpp b/unity-shared/UpstartWrapper.cpp index eda82399c..5ec3add22 100644 --- a/unity-shared/UpstartWrapper.cpp +++ b/unity-shared/UpstartWrapper.cpp @@ -20,6 +20,7 @@ #include "UpstartWrapper.h" #include <UnityCore/GLibDBusProxy.h> +#include <upstart/upstart-dbus.h> namespace unity { @@ -41,9 +42,8 @@ private: UpstartWrapper::Impl::Impl(bool test_mode) { - upstart_proxy_ = std::make_shared<unity::glib::DBusProxy>(test_mode ? "com.canonical.Unity.Test.Upstart" : "com.ubuntu.Upstart", - "/com/ubuntu/Upstart", - "com.ubuntu.Upstart0_6"); + upstart_proxy_ = std::make_shared<unity::glib::DBusProxy>(test_mode ? "com.canonical.Unity.Test.Upstart" : DBUS_SERVICE_UPSTART, + DBUS_PATH_UPSTART, DBUS_INTERFACE_UPSTART); } void UpstartWrapper::Impl::Emit(std::string const& name) |
