Re: session dbus for root user.

René J.V. Bertin <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <5214039.EMHF0PDDNR@bola>
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.
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.