dbus Digest, Vol 157, Issue 5

deepan muthusamy deepan.m2903 at gmail.com
Wed Aug 15 14:13:01 UTC 2018


Iam doing an embedded project. My embedded system is having only root user
and it is a headless system.
And I have some applications which has to be started at boot time under
user defined target which I know how to do.
My Application has to connect to session dbus as soon as it started which
is failing to start because session dbus is not available at that time. So
I want to start a session dbus which should be unique for all applications
till I shutdown the system. I have no Idea how to start that session bus.
can anyone help me for this?

On Wed, Aug 15, 2018 at 5:30 PM, <dbus-request at lists.freedesktop.org> wrote:

> Send dbus mailing list submissions to
>         dbus at lists.freedesktop.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.freedesktop.org/mailman/listinfo/dbus
> or, via email, send a message with subject or body 'help' to
>         dbus-request at lists.freedesktop.org
>
> You can reach the person managing the list at
>         dbus-owner at lists.freedesktop.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dbus digest..."
>
>
> Today's Topics:
>
>    1. session dbus for root user. (deepan muthusamy)
>    2. Re: session dbus for root user. (René J.V. Bertin)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 15 Aug 2018 14:48:31 +0530
> From: deepan muthusamy <deepan.m2903 at gmail.com>
> To: dbus at lists.freedesktop.org
> Subject: session dbus for root user.
> Message-ID:
>         <CAPNtGhV-neZMgOxshSCogTp4r11R_NtWfSEha2wkdDq+6RWC_A at mail.
> gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Why echo $DBUS_SESSION_BUS_ADDRESS prints nothing for root user?
>
> How to start session dbus at boot time for root user ?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.freedesktop.org/archives/dbus/attachments/
> 20180815/333074eb/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 15 Aug 2018 11:42:18 +0200
> From: René J.V. Bertin <rjvbertin at gmail.com>
> To: dbus at lists.freedesktop.org
> Subject: Re: session dbus for root user.
> Message-ID: <5214039.EMHF0PDDNR at bola>
> Content-Type: text/plain; charset="us-ascii"
>
> On Wednesday August 15 2018 14:48:31 deepan muthusamy wrote:
> >Why echo $DBUS_SESSION_BUS_ADDRESS prints nothing for root user?
> >
> >How to start session dbus at boot time for root user ?
>
>
> Why run a full desktop session for the root user? That's not really good
> practice (understatement), and it seems more and more GUI applications
> refuse to run as root.
>
> If that's not what you're doing but you have problems connecting to a
> session dbus when using sudo, try to figure out how to preserve the
> DBUS_SESSION_BUS_ADDRESS variable through the sudo call, and if that's good
> enough for your purposes.
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dbus
>
>
> ------------------------------
>
> End of dbus Digest, Vol 157, Issue 5
> ************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20180815/9a0bb24b/attachment.html>


More information about the dbus mailing list