You are not logged in.

#1 2014-04-30 12:08:41

Registered: 2009-09-22
Posts: 125

D-Bus: How can root access a user's started session?

D-Bus is really useful for automating a lot of tasks, and I want it to respond to certain ACPI events using a acpid configuration.
However, acpid runs as root, and it seems like root cannot find or access a logged in user's D-Bus session.


# purple-remote 'setstatus?status=offline'
No existing libpurple instance detected.

(the command works fine from the logged in user's shell)

I've googled around a bit, and there was a hit about changing the euid of the shell, but changing this via zsh's EUID environment variable had no notable effect on the outcome.

Any ideas? I tried with sudo -u <username> but that doesn't help either.

Last edited by Natanji (2014-04-30 12:25:43)


Board footer

Powered by FluxBB