I have to run my application as service in ubuntu 16.04. I am using systemd to make it run as service during bootup time. My application has to connect to both session dbus and system dbus.
connecting to system dbus is successful. But connecting to session dbus is failing.
I tried to run my application as service using "systemctl start Myapplication", this time also it is not connecting to session bus.
But if I run my application from terminal by "./Myapplication"
, it is successfully connecting to both session and and system dbus.
can anyone help me with this?
The below code is my .service file content.
[Unit]
Description=node-health-monitor to observe system health
[Service]
Type=notify
ExecStart=/home/deepan/deepan/Myapplication
[Install]
WantedBy=graphical.target
Iam using GDBUS
.