summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorDimitri John Ledkov <xnox@ubuntu.com>2017-04-25 17:57:44 +0000
committerBileto Bot <ci-train-bot@canonical.com>2017-04-25 17:57:44 +0000
commit4ee7834678d64d8ea54136267765493915624735 (patch)
tree664ab42ab52c0f087eb96fbceb17464517728336 /unity-shared
parent475710d056242663bba8e6441c5f12f23d00b9d8 (diff)
parent8974a97a7831eee1472f3009e12424a5bb6e1b59 (diff)
Drop libupstart-dev dependency, and simply include verbantim dbus object paths.
Approved by: Marco Trevisan (TreviƱo) (bzr r4231)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/UpstartWrapper.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/unity-shared/UpstartWrapper.cpp b/unity-shared/UpstartWrapper.cpp
index 284668b41..6870a5555 100644
--- a/unity-shared/UpstartWrapper.cpp
+++ b/unity-shared/UpstartWrapper.cpp
@@ -20,7 +20,6 @@
#include "UpstartWrapper.h"
#include <UnityCore/GLibDBusProxy.h>
-#include <upstart/upstart-dbus.h>
namespace unity
{
@@ -49,8 +48,8 @@ void UpstartWrapper::Impl::Emit(std::string const& name)
auto flags = static_cast<GDBusProxyFlags>(G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES |
G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS);
- auto proxy = std::make_shared<unity::glib::DBusProxy>(test_mode_ ? "com.canonical.Unity.Test.Upstart" : DBUS_SERVICE_UPSTART,
- DBUS_PATH_UPSTART, DBUS_INTERFACE_UPSTART,
+ auto proxy = std::make_shared<unity::glib::DBusProxy>(test_mode_ ? "com.canonical.Unity.Test.Upstart" : "com.ubuntu.Upstart",
+ "/com/ubuntu/Upstart", "com.ubuntu.Upstart0_6",
G_BUS_TYPE_SESSION, flags);
proxy->CallBegin("EmitEvent", g_variant_new("(sasb)", name.c_str(), nullptr, 0), [proxy] (GVariant*, glib::Error const&) {});