<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
did you added depends for your autostart rule on some system
service? otherwise it wont start :)<br>
<br>
<div class="moz-cite-prefix">On 03.02.2014 16:01, Luca Donaggio
wrote:<br>
</div>
<blockquote
cite="mid:CABPtM84BLkhfOTKMkxRi8x-Jm9waOi1cZYvBf=JoNamnek6Udg@mail.gmail.com"
type="cite">
<div dir="ltr">I'm fighting with the same issue: starting your
dbus-using daemon with "systemctl-user start" does work (ie,
you'll be able to connect to session bus), but autostarting with
"systemctl-user enable" doesn't work, while making it a system
daemon (plain "systemctl" command) works the other way around:
it doesn't acquire the session bus (even when starting as user
"nemo"), but it autostarts as expected!<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sun, Feb 2, 2014 at 9:20 PM, Dmitry
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:energycsdx@gmail.com" target="_blank">energycsdx@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi
<div><br>
</div>
<div>You should run your daemon form user systemd unit.</div>
<div><a moz-do-not-send="true"
href="https://wiki.archlinux.org/index.php/Systemd/User"
target="_blank">https://wiki.archlinux.org/index.php/Systemd/User</a><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>
<div class="h5">On 1 February 2014 21:53, Kimmo
Lindholm <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:Kimmo.Lindholm@eke.fi"
target="_blank">Kimmo.Lindholm@eke.fi</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
<div>
<font face="Calibri"><span
style="font-size:11pt">
<div>Hi,</div>
<div> </div>
<div>I’m using QtDBus in my daemon (systemd
service), and I can register my own
service on systemBus, and also can connect
to systembus signals.</div>
<div>When starting executable from command
line it runs ok and connects also to the
sessionbus signals successfully.</div>
<div>but when it is started via systemctl
start I can’t connect to sessionbus
signals.</div>
<div> </div>
<div>It throws following error: “<font
size="1" face="Arial"><span
style="font-size:8pt">Using X11 for
dbus-daemon autolaunch was disabled at
compile time, set your
DBUS_SESSION_BUS_ADDRESS instead</span></font><font
size="1" face="Arial"><span
style="font-size:8pt">”</span></font></div>
<div> </div>
<div>this is printed from code below:</div>
<div> </div>
<div><font color="olive" face="Courier New"><span
style="font-size:10pt"> if<font
color="silver"> </font><font
color="black">(!</font><font
color="purple">QDBusConnection</font><font
color="black">::sessionBus().isConnected())</font></span></font></div>
<div><font face="Courier New"><span
style="font-size:10pt"> {</span></font></div>
<div><font color="silver" face="Courier New"><span
style="font-size:10pt"> <font
color="black">writeToLog(</font><font
color="navy">qPrintable</font><font
color="black">(</font><font
color="purple">QDBusConnection</font><font
color="black">::sessionBus().lastError().message()));</font></span></font></div>
<div><font color="silver" face="Courier New"><span
style="font-size:10pt"> <font
color="black">exit(</font><font
color="navy">EXIT_FAILURE</font><font
color="black">);</font></span></font></div>
<div><font face="Courier New"><span
style="font-size:10pt"> }</span></font></div>
<div> </div>
<div>I figured out that <font size="1"
face="Arial"><span style="font-size:8pt">DBUS_SESSION_BUS_ADDRESS</span></font>
is an environment variable which obviously
is not visible in this context.</div>
<div> </div>
<div>is there a way to pass this to the
systemd service??</div>
<div> </div>
<div>regards,</div>
<div>Kimmo</div>
<div> </div>
</span></font>
</div>
<br>
</div>
</div>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
</blockquote>
</div>
<br>
</div>
<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Luca Donaggio
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list</pre>
</blockquote>
<br>
</body>
</html>