From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id WOxvACFbJmaRMAAAqHPOHw:P1 (envelope-from ) for ; Mon, 22 Apr 2024 14:42:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id WOxvACFbJmaRMAAAqHPOHw (envelope-from ) for ; Mon, 22 Apr 2024 14:42:09 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=envs.net header.s=modoboa header.b=SIiibE76; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713789728; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mwEsxAv2EUR9DGZgxG20gffcP2BcEtOj+6Tw8qUW7kQ=; b=kY2GPny56beRUGqeh9lFklNcyiW4ABMHCg7xslpBGPIAvoZqzHejqyUWRzGY3L1zfjnDUV teMjbdV4IAUhZKElNPugxFAcsXewoDFt2b1aLIEIkLDhQmH+Hvc+6iNbMHU8bNjH5vr3kE oVYcXLKqj4TnJui2PDiIQjml386ewbKtqkq9Bl/dtb8o3KzDYpN4H3kECwrxXWoVI2zKbE civYKLI+p6z1Gg/Mxi1wbOeHI0urFT4L4zMugHdV/yVhjKq/2QcQYXb6DLd8WJczvqYmED l9dTxbFHcEP+okgz4MrpF/CTteSx5N0oY7xrEMOs2A8bBb7iWnG2vS+kuohC3w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713789728; a=rsa-sha256; cv=none; b=TJ70jHKjWQuaS6fJEkDYRQnGN05A3LBBsz3jbYJc335c16WcF9c6GQZETffCD2lij1tZ75 yo4D61RfALtjMV0+85J4yjdXllXHbeAeqbkG2EQyAIottxhrYBIU7t7raeRwJQpc6mokBQ 36bQPhf0Tw2RUg20s2PohM2b98HAOZCzn4Jm+VUjFHmW69r0QQBeoMR8z977vM02DGLJwu 0XPAWh0RMYSA9Mec9lIz28HvkAbIrhKepJFS+yBlj2wKz9ocxekEqQmzT+xVRgFtW39FND F0gVIqwPuOMp8Prhcd9yJAbPFKrxLlqcOg/3FSV0tx2YBbImJFGQRFQ+WsNkHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=envs.net header.s=modoboa header.b=SIiibE76; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7701756008 for ; Mon, 22 Apr 2024 14:42:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryszZ-0005rK-Jy; Mon, 22 Apr 2024 08:41:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ryszW-0005qo-1p for guix-patches@gnu.org; Mon, 22 Apr 2024 08:41:50 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ryszS-0003zD-G3 for guix-patches@gnu.org; Mon, 22 Apr 2024 08:41:47 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ryszi-0001zz-AX for guix-patches@gnu.org; Mon, 22 Apr 2024 08:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70508] [PATCH] services: Add gvfs-service-type. References: <6e14dd7d2612569cef62640393bc4ebbb4196f70.1713750442.git.iyzsong@member.fsf.org> In-Reply-To: <6e14dd7d2612569cef62640393bc4ebbb4196f70.1713750442.git.iyzsong@member.fsf.org> Resent-From: iyzsong@envs.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 22 Apr 2024 12:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70508 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70508@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 70508-submit@debbugs.gnu.org id=B70508.17137896957649 (code B ref 70508); Mon, 22 Apr 2024 12:42:02 +0000 Received: (at 70508) by debbugs.gnu.org; 22 Apr 2024 12:41:35 +0000 Received: from localhost ([127.0.0.1]:45914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryszG-0001zJ-OY for submit@debbugs.gnu.org; Mon, 22 Apr 2024 08:41:35 -0400 Received: from mail.envs.net ([5.199.136.28]:46884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryszD-0001z9-0v for 70508@debbugs.gnu.org; Mon, 22 Apr 2024 08:41:33 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 7200638A1C23; Mon, 22 Apr 2024 12:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1713789673; bh=hXVyaRe5dD9/ItD276ssZWMgh66GVE4nx4WXnf5zBzk=; h=From:To:Cc:Subject:Date:From; b=SIiibE76EDY7lPtkHy0R5Cqrasl9SGwkjI5C6zVIoSTk0Jkl7+30AkYcsFzZwykVC 18Y14mbYZKW4RUloTxskXx1y3mU+zkUbxO+8b4pJsF5iZfI5T70T8HZhyQniAzwMDA wVtHct7gFqBmxKhA/mwCpNyR8sOBWZ2zmId1H2CpPwZb9f7bqnNUm384aq0GFwWBa6 kC9RidTQLmyQNIPfjU6QCzfSpFrlW1ebivOaGR0OJLXP7Hs574pt2yXvNfsE+C0D3O xBNkFFbFA7YyMmzQZpw9MzqBxqjFAKsB3tIgf3ite1oZxC7PRMNyi5EaIEbe6GSkeA Kum38I8I7gAhwSEsCAgZq94FxZPCbLuML1dWLfaAkdFImu9oqxNH5f1aWZNnwWmsVu XSVLLk+SSxs1zCsPpuMw1Fa9fXFRMLYbaPUx1Je3knNnIXPLH5syuqheoKGBOejc6f eXwxQwlUUw+96G7NNM8FaiyB46vWU6bOY1z0271MyX02M8UdtCBhuaObGyqFcNra4a ATDvyai3jlqdJYh+mwRAMKcE7sfARwsMjnIIM/J3HyzqTSLeAsgeyvD/VYcnfjy1wg Ui3CAE5fYRTBv6ql+h/bBbz5pAkbzK2jKwFH0ctxn51i6ZZ3xxyR8WEuHFkX6ICGhd +GSJERluv8oQ+KO9RT4D0Q8c= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id iobIq1uIvsTN; Mon, 22 Apr 2024 12:41:10 +0000 (UTC) Received: from localhost (unknown [36.170.58.193]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Mon, 22 Apr 2024 12:41:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 48fc250b; Mon, 22 Apr 2024 12:42:16 +0000 (UTC) Date: Mon, 22 Apr 2024 20:42:13 +0800 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: iyzsong@envs.net X-ACL-Warn: , iyzsong--- via Guix-patches From: iyzsong--- via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.88 X-Spam-Score: -6.88 X-Migadu-Queue-Id: 7701756008 X-Migadu-Scanner: mx13.migadu.com X-TUID: Wibnwp/t9eHD From: 宋文武 * gnu/services/desktop.scm (gvfs-service-type): New variable. (gvfs-configuration, make-gvfs-configuration, gvfs-configuration?, gvfs-package): New procedures. (): New record. * doc/guix.texi (Desktop Services): Document it. Change-Id: I584819500e2ce7d2b14e57dac238a96e9888e75e --- doc/guix.texi | 19 +++++++++++++++++++ gnu/services/desktop.scm | 28 ++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 65af136e61..8a31bff121 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -24942,6 +24942,25 @@ Desktop Services @end table @end deftp +@defvar gvfs-service-type +Type for the service that provides virtual file systems for GIO +applicaitons, which enables support for @code{trash:///}, @code{ftp://}, +@code{sftp://} and many other location schemas in file managers like +Nautilus (GNOME Files) and Thunar. + +The value for this service is a @code{} object. +@end defvar + +@deftp {Data Type} gvfs-configuration +Data type representing the configuration for @code{gvfs-service-type}. + +@table @asis +@item @code{gvfs} (default: @code{gvfs}) (type: file-like) +Package object for GVfs. + +@end table +@end deftp + @defvar colord-service-type This is the type of the service that runs @command{colord}, a system service with a D-Bus diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 02a7802d58..d0b9728d4a 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -109,6 +109,10 @@ (define-module (gnu services desktop) udisks-service ; deprecated udisks-service-type + gvfs-configuration + gvfs-configuration? + gvfs-service-type + colord-service-type geoclue-application @@ -989,6 +993,30 @@ (define-deprecated (udisks-service #:key (udisks udisks)) (service udisks-service-type (udisks-configuration (udisks udisks)))) + + +;;; +;;; GVfs virtual file system. +;;; + +(define-record-type* + gvfs-configuration make-gvfs-configuration + gvfs-configuration? + (gvfs gvfs-package (default gvfs))) + +(define gvfs-service-type + (service-type (name 'gvfs) + (extensions + (list + (service-extension profile-service-type + (compose list gvfs-package)) + ;; Required for gvfs-udisks2-volume-monitor. + (service-extension udisks-service-type (const #t)))) + (description + "Make GVfs virtual file systems (Trash, SFTP, SMB, HTTP, +and many other) available for GIO applications.") + (default-value (gvfs-configuration)))) + ;;; ;;; Elogind login and seat management service. base-commit: af4db17122d759705f3fd0ab03ef36c76ec90338 -- 2.41.0