[Libosinfo] [osinfo-db-tools PATCH] import: Describe the needed env vars in order to run as root

Fabiano Fidêncio fidencio at redhat.com
Mon May 20 09:01:50 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-db-import.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/osinfo-db-import.c b/tools/osinfo-db-import.c
index 920f71b..37da6a3 100644
--- a/tools/osinfo-db-import.c
+++ b/tools/osinfo-db-import.c
@@ -580,6 +580,12 @@ The exit status will be 0 if all files were installed
 successfully, or 1 if at least one file could not be
 installed.
 
+=head1 ENVIRONMENT
+
+When running osinfo-db-import 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 SEE ALSO
 
 C<osinfo-db-export(1)>, C<osinfo-db-path(1)>
-- 
2.21.0




More information about the Libosinfo mailing list