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 <[email protected]>
---
 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) <[email protected]>, Daniel P. Berrange 
<[email protected]>
-- 
2.21.0

_______________________________________________
Libosinfo mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libosinfo

Reply via email to