Patchwork doc: Suggest installing gvfs.

login
register
mail settings
Submitter Ludovic Courtès
Date Nov. 29, 2016, 10:11 p.m.
Message ID <8760n6ndh3.fsf@gnu.org>
Download mbox | patch
Permalink /patch/18054/
State New
Headers show

Comments

Ludovic Courtès - Nov. 29, 2016, 10:11 p.m.
Ricardo Wurmus <rekado@elephly.net> skribis:

> “gvfs” is useful for more than just GNOME.  For a long time I tried to
> figure out why USB devices would not be mounted automatically in Xfce
> and I ran gvfsd and the gvfs-* device monitor daemons manually — until
> today when I understood that these daemons are supposed to be started
> automatically if only the DBUS service files were found.
>
> We probably should add it to the “gnome” meta-package, and additionally
> document in the manual that gvfs must be installed system-wide to allow
> DBUS to find the service files and start the monitoring daemons on
> demand.

If it’s not specific to GNOME, what about adding it to
‘%desktop-services’?
Ludo’.
Ricardo Wurmus - Nov. 29, 2016, 10:34 p.m.
Ludovic Courtès <ludo@gnu.org> writes:

> Ricardo Wurmus <rekado@elephly.net> skribis:
>
>> “gvfs” is useful for more than just GNOME.  For a long time I tried to
>> figure out why USB devices would not be mounted automatically in Xfce
>> and I ran gvfsd and the gvfs-* device monitor daemons manually — until
>> today when I understood that these daemons are supposed to be started
>> automatically if only the DBUS service files were found.
>>
>> We probably should add it to the “gnome” meta-package, and additionally
>> document in the manual that gvfs must be installed system-wide to allow
>> DBUS to find the service files and start the monitoring daemons on
>> demand.
>
> If it’s not specific to GNOME, what about adding it to
> ‘%desktop-services’?

How would that work?  “gvfs” doesn’t provide any services that would be
run as root.  It only comes with dbus service files; the daemons are
started as the current user on demand over dbus when certain libraries
are loaded.

Should I write dbus services for each of the daemons and extend the
dbus-root-service-type?  (I’m not sure how to do this but I could try.)

Patch

diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 7555780..c359035 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -754,6 +754,7 @@  with the administrator's password."
          (screen-locker-service xlockmore "xlock")
 
          ;; The D-Bus clique.
+         (simple-service 'gvfsd dbus-root-service-type gvfs)
          (avahi-service)
          (wicd-service)
          (udisks-service)