From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id kKuDBHPHO2bmoQAAqHPOHw:P1 (envelope-from ) for ; Wed, 08 May 2024 20:41:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id kKuDBHPHO2bmoQAAqHPOHw (envelope-from ) for ; Wed, 08 May 2024 20:41:55 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=TeO9LcMm; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715193715; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=zyb7NLn6Vp4Tyi9EiHjIhjmd/EUDwpfYWymWWXPreZ0=; b=aBZTTbE02qPjVwgjKl8YePQVwJxDwrWANppkq4BQU3LtsXa9DAnGbn2kb9FmkFchvvrpf9 7bW2Kxtd2VI9Mw8M9e3EpxaVnbdb/H2fows/LfFeHVpQALfvSWy1LXkQHXOHaA8EbniioS pe5//D9XfMsfyXnEvISDAM0idFCzTlgvLfvjMUr61otBx79xjB+zXo9S1rUXyb6/SyOF6J jy0fzAs95ymg1D3kF8QBQV5B6AZ843vPpo2pkXt4uUIvngLpj/NVHZjxSxJbOh+r4bNwDJ vGrro/5QfYqkEY4MgHcLlrfPptPhOPUTTO1WFrgrZyu8yNbUyzY6yb5lOxwkEA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715193715; a=rsa-sha256; cv=none; b=BN8Y6U+A2WvssFcu724SupJoIcjRbPAMXyiNBFGWkKOcMR06QPo9JQ8VVcYfB1NHrVnUeC qMp8pS5b6Tc3+1FbhnwGox3Nm3GUPhyzI1506bJdAXgFOMm0dfVPmk2kMT7wg671wrqObv wKdGU6wg9QPr0JhRtQsXn+1fh5yCStxQIttIQVRwqxpt73KX2uTsP9I0Euu97QuE+gtsDL 2mjJIGmDmnDPesjK6BAvv0WKmMSaymzG3H6x4wuVwa35MAy+96fTFREGYyeavkuYkJg3GA gD0E/OYXIaE3hif27bjGmbRil7r9GOSdhfgtNXuLnn8OJ2FtN/QafzMFxfk7XA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=TeO9LcMm; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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" 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 B4F2F7C0D for ; Wed, 08 May 2024 20:41:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4mEU-0003WG-RC; Wed, 08 May 2024 14:41:38 -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 1s4mET-0003Ve-0I for guix-patches@gnu.org; Wed, 08 May 2024 14:41:37 -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 1s4mES-0007Gu-O0 for guix-patches@gnu.org; Wed, 08 May 2024 14:41:36 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s4mEs-0007HG-0E; Wed, 08 May 2024 14:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70282] [PATCH v4] gnu: gnome-shell: Wrap screencast service. References: In-Reply-To: Resent-From: Dariqq Original-Sender: "Debbugs-submit" Resent-CC: liliana.prikler@gmail.com, maxim.cournoyer@gmail.com, vivien@planete-kraus.eu, guix-patches@gnu.org Resent-Date: Wed, 08 May 2024 18:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70282 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70282@debbugs.gnu.org Cc: Dariqq , Liliana Marie Prikler , Maxim Cournoyer , Vivien Kraus X-Debbugs-Original-Xcc: Liliana Marie Prikler , Maxim Cournoyer , Vivien Kraus Received: via spool by 70282-submit@debbugs.gnu.org id=B70282.171519370327965 (code B ref 70282); Wed, 08 May 2024 18:42:01 +0000 Received: (at 70282) by debbugs.gnu.org; 8 May 2024 18:41:43 +0000 Received: from localhost ([127.0.0.1]:50246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4mEZ-0007Gz-D9 for submit@debbugs.gnu.org; Wed, 08 May 2024 14:41:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]:33029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4mEU-0007Gr-95 for 70282@debbugs.gnu.org; Wed, 08 May 2024 14:41:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 84971240027 for <70282@debbugs.gnu.org>; Wed, 8 May 2024 20:41:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715193666; bh=2iJ2G2nVrdvOlzpCo0kk9l4gne/RPMC6Zf1s5Xp2Rec=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=TeO9LcMmtM6aOgoeEJOxeGHCpDkxS+NuCozEqLZnx1jsEyfCfbxXnPOm3xfCLmc82 lXK9/JOT3gwYz71tPNgUf2JlRokf61CvvvLF2H5OOKJ8bV4qDN/upCMn95s+2f+Map EOYM+eRIFC8jjnjmC4osnJioS26NMJUhFaFYTVVjen4QNthtacr3DapcMxxvasB/8l QY0JDwik8pq6R9JX2vEGG1qssHUrxNcv2M5yj02yTa1oEsGDEgBBxUpyijgXtiRiqq reIY9gycrRJ1ijfbZrodohAwtjE/t2FEeTMXbjV7h64pPGDPt5sdr3aWM8DEz1px0O TIUSCNtpO5ggw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VZP9Y6M5Vz6tvZ; Wed, 8 May 2024 20:41:05 +0200 (CEST) From: Dariqq Date: Wed, 8 May 2024 18:33:30 +0000 Message-ID: <213d475bd6ad3781baf3876e89bd84c18029dc5e.1715193210.git.dariqq@posteo.net> MIME-Version: 1.0 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 0.51 X-Spam-Score: 0.51 X-Migadu-Queue-Id: B4F2F7C0D X-Migadu-Scanner: mx11.migadu.com X-TUID: jh0W0M3YaGmk Adjust screencast such that GI_TYPELIB_PATH and GST_PLUGIN_SYSTEM_PATH are set before starting. Add all required gstreamer plugins to inputs. To be able to use it a running pipewire service is needed. * gnu/packages/gnome.scm (gnome-shell): [inputs]: Add gst-plugins-good and pipewire. [#:phases]<'wrap-programs>: Wrap org.gnome.Shell.Screencast. Change-Id: I2c31bf1bd92e281b86c57b06988c6a3793a58d40 --- Here is v4 which appends the gstreamer plugins to GST_PLUGIN_SYSTEM_PATH, handling the case when getenv returns null. I think the difference between appendending or prepending in this case is not too important as the user GST_PLUGIN_PATH should take precedent. The more important thing is that the plugins are in any plugin path at all. gnu/packages/gnome.scm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 92e35e3c5a..4bbff2a89b 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -9408,6 +9408,7 @@ (define-public gnome-shell (add-after 'install 'wrap-programs (lambda* (#:key inputs #:allow-other-keys) (let ((gi-typelib-path (getenv "GI_TYPELIB_PATH")) + (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")) (python-path (string-join (filter (lambda (item) @@ -9427,6 +9428,19 @@ (define-public gnome-shell "path => imports.gi.GIRepository.Repository." "prepend_search_path(path));\n" all))) + ;; Screencast requires a pipewire service running + ;; (i.e. as provided by home-pipewire-service-type) + (substitute* (string-append #$output "/share/gnome-shell/" + "org.gnome.Shell.Screencast") + (("imports\\.package\\.start" all) + (string-append "'" gi-typelib-path "'.split(':').forEach(" + "path => imports.gi.GIRepository.Repository." + "prepend_search_path(path));\n" + "imports.gi.GLib.setenv('GST_PLUGIN_SYSTEM_PATH'," + "[imports.gi.GLib.getenv('GST_PLUGIN_SYSTEM_PATH')," + "'" gst-plugin-path "'].filter(v => v).join(':')," + "true);\n" + all))) (for-each (lambda (prog) (wrap-program (string-append #$output "/bin/" prog) @@ -9492,6 +9506,7 @@ (define-public gnome-shell gnome-settings-daemon graphene gst-plugins-base + gst-plugins-good ibus libcanberra libcroco @@ -9502,6 +9517,7 @@ (define-public gnome-shell mesa-headers mutter network-manager-applet + pipewire polkit pulseaudio python-pygobject base-commit: 7b7f299bb493e485c5534b8c554e51d4f3a8c026 -- 2.41.0