summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-11-04 19:56:32 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-11-04 19:56:32 +0100
commit80b9359ad3735dbf010dfe5eda992bd979604533 (patch)
treed971ba7e0df9f94aea7c18a8e8c327250f18b3c9 /unity-shared
parent66e7014f2124c8e0edee0a25b1ff693a3db64403 (diff)
UpstartWrapper: use upstart defined values for proxy name, path and interface
(bzr r3884.5.2)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/UpstartWrapper.cpp6
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)