From patchwork Mon Apr 22 12:42:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 63296 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9DF5427BBE9; Mon, 22 Apr 2024 13:42:04 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C09DB27BBE2 for ; Mon, 22 Apr 2024 13:42:02 +0100 (BST) 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?b?5a6L5paH5q2m?= 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 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 X-Patchwork-Original-From: iyzsong--- via Guix-patches via From: "ashish.is--- via Guix-patches\" via" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches 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(+) base-commit: af4db17122d759705f3fd0ab03ef36c76ec90338 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.