[Libosinfo] [libosinfo PATCH] osinfo-detect: Describe the needed env vars in order to run as root

Fabiano Fidêncio fidencio at redhat.com
Mon May 20 09:01:12 UTC 2019


GVfs requires the session bus i order to work properly, which means
`DBUS_SESSION_BUS_ADDRESS` has to be defined in the environment.

https://gitlab.com/libosinfo/libosinfo/issues/30

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 tools/osinfo-detect.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/osinfo-detect.c b/tools/osinfo-detect.c
index c21e694..8c6538c 100644
--- a/tools/osinfo-detect.c
+++ b/tools/osinfo-detect.c
@@ -366,6 +366,12 @@ install trees (B<tree>)
 The exit status will be 0 if an operating system was detected,
 or 1 if none was found.
 
+=head1 ENVIRONMENT
+
+When running osinfo-detect as root, `DBUS_SESSION_BUS_ADDRESS` needs
+to be defined in the environment as GVfs requires the session bus in
+order to work properly.
+
 =head1 AUTHORS
 
 Zeeshan Ali (Khattak) <zeeshanak at gnome.org>, Daniel P. Berrange <berrange at redhat.com>
-- 
2.21.0




More information about the Libosinfo mailing list