[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: dbus Digest, Vol 157, Issue 5
From:       deepan muthusamy <deepan.m2903 () gmail ! com>
Date:       2018-08-15 14:25:01
Message-ID: CAPNtGhUzpxVKN4c=EOoFW2_2PyHr3Ht3=KTZigWJ4y3T8q9LzA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@lists.freedesktop.org> wrote:

> Send dbus mailing list submissions to
>         dbus@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@lists.freedesktop.org
>
> You can reach the person managing the list at
>         dbus-owner@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@gmail.com>
> To: dbus@lists.freedesktop.org
> Subject: session dbus for root user.
> Message-ID:
>         <CAPNtGhV-neZMgOxshSCogTp4r11R_NtWfSEha2wkdDq+6RWC_A@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@gmail.com>
> To: dbus@lists.freedesktop.org
> Subject: Re: session dbus for root user.
> Message-ID: <5214039.EMHF0PDDNR@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@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dbus
>
>
> ------------------------------
>
> End of dbus Digest, Vol 157, Issue 5
> ************************************
>

[Attachment #5 (text/html)]

<div dir="ltr"><div>Iam doing an embedded project. My embedded system is having only \
root user and it is a headless system.</div><div>And I have some applications which \
has to be started at boot time under user defined target which I know how to \
do.</div><div>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?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On \
Wed, Aug 15, 2018 at 5:30 PM,  <span dir="ltr">&lt;<a \
href="mailto:dbus-request@lists.freedesktop.org" \
target="_blank">dbus-request@lists.freedesktop.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
                #ccc solid;padding-left:1ex">Send dbus mailing list submissions \
                to<br>
            <a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
 <br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
            <a href="https://lists.freedesktop.org/mailman/listinfo/dbus" \
rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/dbus</a><br>
 or, via email, send a message with subject or body &#39;help&#39; to<br>
            <a href="mailto:dbus-request@lists.freedesktop.org">dbus-request@lists.<wbr>freedesktop.org</a><br>
 <br>
You can reach the person managing the list at<br>
            <a href="mailto:dbus-owner@lists.freedesktop.org">dbus-owner@lists.freedesktop.<wbr>org</a><br>
 <br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of dbus digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
     1. session dbus for root user. (deepan muthusamy)<br>
     2. Re: session dbus for root user. (René J.V. Bertin)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Wed, 15 Aug 2018 14:48:31 +0530<br>
From: deepan muthusamy &lt;<a \
                href="mailto:deepan.m2903@gmail.com">deepan.m2903@gmail.com</a>&gt;<br>
                
To: <a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
Subject: session dbus for root user.<br>
Message-ID:<br>
            &lt;<a href="mailto:CAPNtGhV-neZMgOxshSCogTp4r11R_NtWfSEha2wkdDq%2B6RWC_A@ \
mail.gmail.com">CAPNtGhV-<wbr>neZMgOxshSCogTp4r11R_<wbr>NtWfSEha2wkdDq+6RWC_A@mail.<wbr>gmail.com</a>&gt;<br>
                
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Why echo $DBUS_SESSION_BUS_ADDRESS prints nothing for root user?<br>
<br>
How to start session dbus at boot time for root user ?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="https://lists.freedesktop.org/archives/dbus/attachments/20180815/333074eb/attachment-0001.html" \
rel="noreferrer" target="_blank">https://lists.freedesktop.<wbr>org/archives/dbus/attachments/<wbr>20180815/333074eb/attachment-<wbr>0001.html</a>&gt;<br>
 <br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 15 Aug 2018 11:42:18 +0200<br>
From: René J.V. Bertin &lt;<a \
                href="mailto:rjvbertin@gmail.com">rjvbertin@gmail.com</a>&gt;<br>
To: <a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
Subject: Re: session dbus for root user.<br>
Message-ID: &lt;5214039.EMHF0PDDNR@bola&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
On Wednesday August 15 2018 14:48:31 deepan muthusamy wrote:<br>
&gt;Why echo $DBUS_SESSION_BUS_ADDRESS prints nothing for root user?<br>
&gt;<br>
&gt;How to start session dbus at boot time for root user ?<br>
<br>
<br>
Why run a full desktop session for the root user? That&#39;s not really good practice \
(understatement), and it seems more and more GUI applications refuse to run as \
root.<br> <br>
If that&#39;s not what you&#39;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&#39;s good enough for your purposes.<br> \
<br> <br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/dbus" rel="noreferrer" \
target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/dbus</a><br> <br>
<br>
------------------------------<br>
<br>
End of dbus Digest, Vol 157, Issue 5<br>
******************************<wbr>******<br>
</blockquote></div><br></div>


[Attachment #6 (text/plain)]

_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dbus


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic