From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] doc: Suggest installing gvfs. Date: Wed, 30 Nov 2016 14:15:17 +0100 Message-ID: <87vav5jehm.fsf@gnu.org> References: <20161128184755.17106-1-rekado@elephly.net> <87h96rl37m.fsf@gnu.org> <87shqb1byq.fsf@elephly.net> <8760n6ndh3.fsf@gnu.org> <87a8ch29vx.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC4jM-0007pz-U9 for guix-devel@gnu.org; Wed, 30 Nov 2016 08:15:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cC4jI-00023p-DO for guix-devel@gnu.org; Wed, 30 Nov 2016 08:15:24 -0500 In-Reply-To: <87a8ch29vx.fsf@elephly.net> (Ricardo Wurmus's message of "Tue, 29 Nov 2016 23:34:26 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ricardo Wurmus skribis: > Ludovic Court=C3=A8s writes: > >> Ricardo Wurmus skribis: >> >>> =E2=80=9Cgvfs=E2=80=9D 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 =E2=80= =94 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 =E2=80=9Cgnome=E2=80=9D 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=E2=80=99s not specific to GNOME, what about adding it to >> =E2=80=98%desktop-services=E2=80=99? > > How would that work? This patch extends DBus with gvfs, since you said gvfs is a set of DBus services (I didn=E2=80=99t check). If gvfs provides DBus service definition files, then DBus will automatically pick them and start the services on demand. > =E2=80=9Cgvfs=E2=80=9D doesn=E2=80=99t 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. OK, so that was the wrong approach. In that case, what about adding the package to the global profile like this: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 7555780..5d02bd0 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -753,6 +753,10 @@ with the administrator's password." (screen-locker-service slock) (screen-locker-service xlockmore "xlock") + ;; GVFS is used by both GNOME and Xfce. It provides DBus services + ;; started on behalf of users, and those daemons need to be in $PATH. + (simple-service 'gvfs profile-service-type gvfs) + ;; The D-Bus clique. (avahi-service) (wicd-service) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 DQpUaGFua3MsDQpMdWRv4oCZLg0K --=-=-=--