From patchwork Mon May 19 00:29:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 42744 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 A583327BC49; Mon, 19 May 2025 01:31:55 +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 CC07727BC4A for ; Mon, 19 May 2025 01:31:53 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uGoPf-00040u-R4; Sun, 18 May 2025 20:31:27 -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 1uGoPS-0003v4-Gc for guix-patches@gnu.org; Sun, 18 May 2025 20:31:16 -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 1uGoPQ-0001FX-Jz; Sun, 18 May 2025 20:31:13 -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=uzj7HILEHiTeiosqjjTB9dVclpi+awIARwM06RtsmXU=; b=Q2SQ0P4CAxHZE1NeRJMFgCbb5aapYf47p73cTif9yAhH27vMBE8cwpPabXY4YthnuXAcP1ruktZrZZYLzLnSU80zsP7CNJTaS+cvbpV9fzhAlzA/1Xv3xpT15pD9lbI9ptPhyVvvKY1aREHySTjkBhxeGBri9QQzh5OgSf9YWBN+iPmZtUVNidSku9JK3/yvRqIhzEhAR3j7xHE8yj8+Z+ntmgQenAUHqUeF8FCz0bJj49NtQ8+Pa7mUVhM7La+ANfN+XfkPwGl7q3klhM5uOVqGzTeqh8K5BtbdfPeg6p0UVJyFL2S/joIeFJWsK/wYscfd9g/08Yioud6/ffYQCg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uGoPO-0000Ds-5V; Sun, 18 May 2025 20:31:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78308] [PATCH v3 08/10] services: Add vte-integration-service-type. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: maxim.cournoyer@gmail.com, rutherther@ditigal.xyz, lgcoelho@disroot.org, gabriel@erlikon.ch, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Mon, 19 May 2025 00:31:09 +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 , Luis Guilherme Coelho , Gabriel Wicki , Ludovic =?utf-8?q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Maxim Cournoyer , Rutherther , Luis Guilherme Coelho , Gabriel Wicki , Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 78308-submit@debbugs.gnu.org id=B78308.174761463130258 (code B ref 78308); Mon, 19 May 2025 00:31:09 +0000 Received: (at 78308) by debbugs.gnu.org; 19 May 2025 00:30:31 +0000 Received: from localhost ([127.0.0.1]:34070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uGoOh-0007h7-1R for submit@debbugs.gnu.org; Sun, 18 May 2025 20:30:31 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:43147) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uGoOE-0006hw-4U for 78308@debbugs.gnu.org; Sun, 18 May 2025 20:30:02 -0400 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-7406c6dd2b1so4124668b3a.0 for <78308@debbugs.gnu.org>; Sun, 18 May 2025 17:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747614591; x=1748219391; 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=uzj7HILEHiTeiosqjjTB9dVclpi+awIARwM06RtsmXU=; b=Zth0cRUb18uiHDUQlyuthUoexan0FoyqWXLhdT+t4UQNegd0kiXXAbyk1hhqDkrArU nJKyr7F7QZfoXimdWFuuFSAVLuyXxjD5KhgRt2XJ8buki/MwCbcV7IXWkdfmXMAjlvcE oY2AMafgU2+8JgWJ3eZyna8iupMnzHL/mbNNo51966u9kvPFfuwAMb6bhpF5Zt/MHym2 jdiAUDIx/EEwn1A0sDWC9DOA/T6I9bnRKjvM9A4lvuzkYtzBU/L9Bdn8t3ioBSQnx8Tj TB0NMiRVUUpBvoKpjlzdO2quNsncLyh86xL5xWMfEtOxXu7JziqR0Pg2yXJ0qqtaTOwv zIUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747614591; x=1748219391; 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=uzj7HILEHiTeiosqjjTB9dVclpi+awIARwM06RtsmXU=; b=V+/IgwZah41dIwv8hwGr4S1qNv7+2eu3wEiqS61IZZ72UI3fkx1AVZtYdag+MfiCWD zTY9GSDPuMZrXxT96j2iicsBkG7RnOFbzyVjIubCQLICc/JT6d5ViStTKT1HKTy78X2U pb0dwB1p453K4xDQ1BcKq8BBfKEm0UnSPliW2P1f/ZYevPCpId+CcXtJjkismRNQ2evk ubMgvpMvZwDuRQIDPpiPTItnvpmOkqTvGCLvdtDVQ1iyDmXVm+mcr32kpEQ5YXMXD6fz OEh/1XEpImMfsf26yV+p3wkUO+P1iSvmw/rCh7qDDOrtf9QMhKYKoIwK/EmiQl4yLFno zPgw== X-Gm-Message-State: AOJu0Yywrugvjq3t5TUMvw0zjPWXsBQPpdgkvlial/gs+PNM8nw4qVBL c1zqtcsNt86x3paF5jlPBFFl3LmbMq16T7HNRXBoksyKlpxx+EVYK/6evREyiQ== X-Gm-Gg: ASbGncvQ7XkIZunOCxqTej0FG8KvMuf5wM+HpIvf0xpgNfhs6J5k4iwfaAHLE1N31r3 Uuf2Cl3Oza9O2YjOOMyIAO1zVlmiV76aUaxf8G5f7dtzltFgd5s6iNGTf49DaCASyB+Cvfdp6z4 wq3DEvn092ZbZwfrhk10vlHxsk3DiJ0qhGgmosl32pwt4l9Z6iLpRW7mDr+ze1u3Ao3K2/QeLwl 1UEN9X0v/L+w/5rNTfGQrFI+8W7l4oywxISdAt/kW/RYF4KJkyVbB3jIvZMbnCRkwXXRHo77tDY SVKPUB4/sq2RqmfplsyLDLXnqVGg2bZJT3wnqeNdY4HdRfjLdUhFf5K9kQpJTJJ7DPGmJUg= X-Google-Smtp-Source: AGHT+IE/B6xT0Zfgvx1OccEQDc5SN2u2t6OKZ04rGgkKnK59ErEVUkZvrCvr5Xl1LYaTBpIxZgJ9oA== X-Received: by 2002:a05:6a21:3990:b0:1f3:323e:3743 with SMTP id adf61e73a8af0-2165f68cb4fmr16473211637.12.1747614591111; Sun, 18 May 2025 17:29:51 -0700 (PDT) Received: from localhost.localdomain ([2405:6586:be0:0:83c8:d31d:2cec:f542]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-742a970c882sm5254027b3a.55.2025.05.18.17.29.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 May 2025 17:29:50 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 19 May 2025 09:29:06 +0900 Message-ID: <4d0498a8135b67e9a929042e8e9974413e1dbbc4.1747614548.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: 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 80a109e2bb3..b53823bc65c 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -47666,6 +47666,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