From patchwork Tue May 13 02:31:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 42563 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 2009927BC4A; Tue, 13 May 2025 03:33:37 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,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 B1AF427BC49 for ; Tue, 13 May 2025 03:33:35 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uEfS9-0004i1-5s; Mon, 12 May 2025 22:33:09 -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 1uEfS6-0004h7-Td for guix-patches@gnu.org; Mon, 12 May 2025 22:33:07 -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 1uEfS6-000857-Jg; Mon, 12 May 2025 22:33:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=dfTsUSoT6HyssPfKpHTdpFPLK2IFk7JhpFbmEnrAPMY=; b=fiwTPbUZ5PB9ul4lFCyCIyLFlKjXI+9qRpqDqkA8x/d2IHXAzpaB2OBkiXhAdkWmDm7UPG86Ye5piAHQ7nntADkHnTo0QCxAgWnPWKyEIgIuJnzMykqzHZ/AwFk9GpfM/I7G+Og4PmJX6qHe90lYWx2DorfS2FF+AIwuZuxHcckBU8+ZVmJ+iZYe73h5N/OQIhrixQtrWpeMeignEJ5AQA/kVnPCYbsjc7yB4tDUVwVcTOaQA1MnW4aNr98piLFB6ZoZQFVGHcPLl3QXCJ0siAu/uh0aZKmRk9gW+28a7zRu9yTXZV11HIsaliFMP/R9e8b/1FpNK1K4vEDiB99uSQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uEfS5-0001it-8J; Mon, 12 May 2025 22:33:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78308] [PATCH v2 8/9] services: Add vte-integration-service-type. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: maxim.cournoyer@gmail.com, rutherther@ditigal.xyz, gabriel@erlikon.ch, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Tue, 13 May 2025 02:33:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78308 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78308@debbugs.gnu.org Cc: Maxim Cournoyer , Maxim Cournoyer , Rutherther , Gabriel Wicki , Ludovic =?utf-8?q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Maxim Cournoyer , Rutherther , Gabriel Wicki , Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 78308-submit@debbugs.gnu.org id=B78308.17471035676521 (code B ref 78308); Tue, 13 May 2025 02:33:05 +0000 Received: (at 78308) by debbugs.gnu.org; 13 May 2025 02:32:47 +0000 Received: from localhost ([127.0.0.1]:56334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uEfRm-0001h1-Ks for submit@debbugs.gnu.org; Mon, 12 May 2025 22:32:47 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]:44129) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uEfRi-0001g7-Ip for 78308@debbugs.gnu.org; Mon, 12 May 2025 22:32:43 -0400 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-7423fb98c5aso2911775b3a.0 for <78308@debbugs.gnu.org>; Mon, 12 May 2025 19:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747103555; x=1747708355; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dfTsUSoT6HyssPfKpHTdpFPLK2IFk7JhpFbmEnrAPMY=; b=lmcG7KFLeXxjUlQp5m7iMW7ctwlxOLdr+BAgRQ5YCw4YgdY932PPE0jF+N9JqpbqU9 QELO1ghkfiIgtd/elP4PTzNYnGVjoQvinJIpbRqI4JZY9svIr5HHCJ2P69/WU3T33M83 iJsdOp5hMKb2b8UTFQd0JFDte+xSXgkMbiscGBNCP07rZXs/egYax/StBpneMHvOgNFg 4a9Yoiu/i4AjNQfjbJ0devCjLjHyLzwX8mJCLq6JIifUiTXg3F3EPVMoXM4AKfoRIBdy O53QzaATaxfdoJTbCrHbgx4fIZOkVZhWzSws/h/AvqlBxyIvUKy0F+G9rXd2hROwYbEg JHqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747103555; x=1747708355; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dfTsUSoT6HyssPfKpHTdpFPLK2IFk7JhpFbmEnrAPMY=; b=FbSey/VcPWAvM6UPPKkTBUa4Lm2SnAL8sCUO0z62hn9ziF2OKrTAd3j+Kt9hnJ3f5c n7/UjuKGam6M1GcsC81w8nKF6Y8YnWAnIO6fMjVpHNXcOyPtGvcnly4/PrrZN6gztxkZ XgdQzicKOmy94dYfP/c7HwkZpnNPSCV3QbEld/aNSs8DByz7UDuX7ILaRhvQY7JhuUdU EKwz3HFnlRXz3Jbc+NBKpAdKElU3moyUXSz1yUyW73zw/EE+ttlPHqbTBOeYIpO944xU MKT5Q1JKbeXm2L5QDJLhOz/RcjOggZ1pvruUxA35hwKOj8N08KbVXgzUUbG06iCi08tl A/VA== X-Gm-Message-State: AOJu0YzT3ZrqHOTGvKi4UnIiwK36neTppT9iaI6m8XHDHTY6Y56DRjTM WduFk1BJLDaXmPTtTA6rwSchiArNW0z1jCelYXUwzL9KZ9hXuuCDWQr+WRc/ X-Gm-Gg: ASbGncvYtU8jVMKtI0sXSQniicHPwnoQpwLgfTnerGWFqxo63pIfYlOBV14/NKFfJwM 5l4csqJxPWQ9YB0itoH3s0IU1bonE01pRhdS4bE7gYv4YhbWnw/WcW0fJrDhkZ/fSxwW/bdNo02 q+NN7OP5WCHFdSSnAURuP4enkaNNSDqWJcoNeqP/gG4mR/ntbj9yOLK2rmCnl0kK0axxNs3BQ0Y JP2vJSSB1ns0+86z/M9vwsq40IPz2eY18EHp9KUvXUlYCbbVVZLEsr8E073rbfZt3DfBo6mMUS0 w66rOzwfcRz8tcowpuX391slNyIPZ+5RlI8xO4v4UUCMNVS/gw8dS7LncUItHKBr6TWiPC8= X-Google-Smtp-Source: AGHT+IGez7ua1MjOYI6n7znYlTDOic7u+AeJwmL4eybBDdyUWTMQXNY6/oPSkwKQqV4Um4OxPg+Ebw== X-Received: by 2002:a05:6a00:450a:b0:740:41e4:e761 with SMTP id d2e1a72fcca58-7423c07be27mr19831759b3a.22.1747103554886; Mon, 12 May 2025 19:32:34 -0700 (PDT) Received: from localhost.localdomain ([2405:6586:be0:0:83c8:d31d:2cec:f542]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-74237a387a6sm6947460b3a.137.2025.05.12.19.32.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 May 2025 19:32:34 -0700 (PDT) From: Maxim Cournoyer Date: Tue, 13 May 2025 11:31:47 +0900 Message-ID: <40912ff35c97c933961c9d71e66369b8db9d94fe.1747103508.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <5cf9f21c9626bb8c8357089caa747c2ae8ae2fca.1747103508.git.maxim.cournoyer@gmail.com> References: <5cf9f21c9626bb8c8357089caa747c2ae8ae2fca.1747103508.git.maxim.cournoyer@gmail.com> 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: , 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 * gnu/services.scm (vte-integration-service-type): New service type. * doc/guix.texi (Service Reference): Document it. Change-Id: I7e4bc1b913b50a5a061894f9ddef27f1877b62a2 --- doc/guix.texi | 15 +++++++++++++++ gnu/services.scm | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 655eac6168d..591d42f82f5 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -47593,6 +47593,21 @@ Service Reference @end example @end defvar +@defvar vte-integration-service-type +This services adds the @file{/etc/bashrc.d/vte.sh} to your system, which +improves the Bash and Zsh experience when using VTE-powered terminal +emulators. This causes for example the current directory to be +displayed in the terminal emulator's tab title, and the current +directory to be preserved when creating a new tab, among other features. +The value of the service is the @code{vte} package to use. + +@example +(use-package-modules gnome) ;for the `vte' package + +(service vte-integration-service-type vte) +@end example +@end defvar + @defvar privileged-program-service-type Type for the ``privileged-program service''. This service collects lists of executable file names, passed as gexps, and adds them to the set of diff --git a/gnu/services.scm b/gnu/services.scm index 159d357c3e7..ce15a39d063 100644 --- a/gnu/services.scm +++ b/gnu/services.scm @@ -47,6 +47,7 @@ (define-module (gnu services) #:use-module (guix deprecation) #:use-module (gnu packages base) #:use-module (gnu packages bash) + #:use-module (gnu packages gnome) #:use-module (gnu packages hurd) #:use-module (gnu packages linux) #:use-module (gnu system privilege) @@ -138,6 +139,7 @@ (define-module (gnu services) linux-builder-configuration-kernel linux-builder-configuration-modules linux-loadable-module-service-type + vte-integration-service-type %boot-service %activation-service @@ -1027,6 +1029,19 @@ (define etc-bashrc-d-service-type Bash shells.") (default-value %default-etc-bashrc-d-files))) +(define vte-integration-service-type + (service-type + (name 'vte-integration) + (extensions + (list (service-extension etc-bashrc-d-service-type + (lambda (vte) + (list (file-append + vte "/etc/profile.d/vte.sh")))))) + (default-value vte) ;the vte package to use + (description "A service for adding the @file{/etc/bashrc.d/vte.sh} script +to your system, which improves the Bash and Zsh experience when using +VTE-powered terminal emulators."))) + (define (privileged-program->activation-gexp programs) "Return an activation gexp for privileged-program from PROGRAMS." (let ((programs