From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kBTTKLAQuWGc4gAAgWs5BA (envelope-from ) for ; Tue, 14 Dec 2021 22:46:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4NduJLAQuWEbMAAAB5/wlQ (envelope-from ) for ; Tue, 14 Dec 2021 21:46:24 +0000 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 1267128B50 for ; Tue, 14 Dec 2021 22:46:24 +0100 (CET) Received: from localhost ([::1]:44166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxFcs-00014Z-0h for larch@yhetil.org; Tue, 14 Dec 2021 16:46:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxFcZ-00014A-07 for guix-patches@gnu.org; Tue, 14 Dec 2021 16:46:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48230) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxFcY-0005NT-ES for guix-patches@gnu.org; Tue, 14 Dec 2021 16:46:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mxFcY-0000Ho-4K for guix-patches@gnu.org; Tue, 14 Dec 2021 16:46:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52492] [PATCH 0/7] Improve screen sharing support under Wayland Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 14 Dec 2021 21:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52492 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52492@debbugs.gnu.org Cc: Josselin Poiret X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16395183321060 (code B ref -1); Tue, 14 Dec 2021 21:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Dec 2021 21:45:32 +0000 Received: from localhost ([127.0.0.1]:59776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxFc4-0000H1-3M for submit@debbugs.gnu.org; Tue, 14 Dec 2021 16:45:32 -0500 Received: from lists.gnu.org ([209.51.188.17]:45798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxFc1-0000Gt-Sm for submit@debbugs.gnu.org; Tue, 14 Dec 2021 16:45:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxFbv-00010y-PY for guix-patches@gnu.org; Tue, 14 Dec 2021 16:45:24 -0500 Received: from jpoiret.xyz ([206.189.101.64]:40588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxFbu-0005H6-0G for guix-patches@gnu.org; Tue, 14 Dec 2021 16:45:23 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id A9F6A184F65; Tue, 14 Dec 2021 21:45:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1639518317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RUEHtNzJcLx7T4lBy2BNgWCZraKok3qnYQIFgbBxJiA=; b=t7QUCXbOi3fB/fv1Eu14kTaleSxGR0GqqsIQgn6/agfiLin2n7DrJkXUn2sOe70g3Kn/5c hIHPE6ZYjvyVyOb8WPloMgW6PqjaJJDczpkwrK9JqoDunEiTLikqnMJkKvUgJnDGFjU3DR +B/zDJq533aCDOxWCFzT8X33oyIatmvnxsrn/G7+0ssiHwJ+BRA0aUv1SedhL5YqZgfPhA 07elgkJqptXk95wLASyP/sETdg+0YDB0QJEOOj7qHtKaUcgKyC5FhtRT9AMVHn9L2yxNjl GQoXcCUOT1Y4Uw9hLaVKbljNTFj3TIk51n+64cXiK6pbeDp5DktOLvFy9+wGwA== Date: Tue, 14 Dec 2021 22:45:02 +0100 Message-Id: <20211214214502.24913-1-dev@jpoiret.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ++++ Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz X-Spam_score_int: 7 X-Spam_score: 0.7 X-Spam_bar: / X-Spam_report: (0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=0.292, PDS_OTHER_BAD_TLD=1.997, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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" Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches From: Josselin Poiret via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639518384; 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-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=RUEHtNzJcLx7T4lBy2BNgWCZraKok3qnYQIFgbBxJiA=; b=Prwd9KQNaSWW2mJ8TScXX4V3RBWZmkvBfMW5EY40B7UliGIATMTVkaedH0sGrl5YbG0Gkq XWmrlio1ALTqnXlXVphD8G83onk5clVvTR9RT0yzresYHZftybDQLTL6ayuHZDmO/XuEiF fKRq4l7rmMsQMLuKb0WbBJNAXusPA7TuOqwkwFNqzqJzuPXYQXYa5CISsQK6O/+1oFYvTk 89sgu7IXInW5BymzWAhbjvUoVX+Ax1KfnvoLWPumQfDwfGpjAxJcY+zxMVq2uvSBKxYGu4 s9OngIz/TKqfeSHCeUsYHiyimk4D2wOgMH9C6sqQ3eMNvn+MX0wP5kXY8evjVA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639518384; a=rsa-sha256; cv=none; b=lheRlsNmF2mN6KwPDz3qG4FZunlA1X6bDCWtgXMoxx53ceSMhvrMuQeNk//l0QY9p7FuCS LrI/c/WvNT0yF3ckbYkQ17/V8nhP+Mgb6QaaS8PHhiw6ij/2rPL+AyxRBcUJPEOSyng44x 06P6GN0W8T96tUs8dHx29cPi6zrHCg40EMRgbxxVWuFh+wY6redmXQsX/V3s5xjZ/JKVlM TBeNEuTXuEmkRoMz+Q1LY3wZG5KEtCJe6gsoqbKsGZVNk3x0RsDjeegp1dBL4MtEHfxLnQ +0Dmx+dhiZZAALgzUEyGvL5LvP4V1gnAapZVQkCAuBs4SJeo8QEYbcdI4InWeQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=t7QUCXbO; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -4.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=t7QUCXbO; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 1267128B50 X-Spam-Score: -4.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: yapinBmkJOww Hello, This patchset updates and improves various packages related to screen sharing/screeshotting on Wayland, and especially wlroots-based compositors. I can get screensharing working in icecat on sway by manually starting pipewire then wireplumber (and then xdg-desktop-portal-wlr followed by xdg-desktop-portal if they're not installed in your profile, otherwise your user DBus session will launch them automatically), and starting icecat with `LD_LIBRARY_PATH="$(./pre-inst-env guix build pipewire)/lib:$LD_LIBRARY_PATH" icecat` since the pipewire library is dlopened by libwebrtc rather than statically or dynamically linked. We could possibly add this to the icecat package, as it has a wrapper doing a similar thing for other libraries. Another way to test screensharing without icecat would be to use this python script [1], using `guix shell python python-pygobject gst-plugins-bad pipewire python-dbus -- python3 xdp-screen-cast.py`. I also took the liberty to patch xdg-desktop-portal-wlr's screenshotting process, as it simply execl'd to slurp and grim. Along with an update to flameshot, I can use the latter properly on sway as well. Best, Josselin [1] https://gitlab.gnome.org/-/snippets/19 Josselin Poiret (7): gnu: pipewire-0.3: Use new input style gnu: pipewire-0.3: Update to 0.3.41 gnu: Add wireplumber gnu: xdg-desktop-portal-wlr: Update to 0.5.0 gnu: xdg-desktop-portal-wlr: Use new input style gnu: xdg-desktop-portal-wlr: Add binary dependencies gnu: flameshot: Update to 0.10.2 gnu/local.mk | 1 + gnu/packages/freedesktop.scm | 38 ++++++++++---- gnu/packages/image.scm | 4 +- gnu/packages/linux.scm | 52 +++++++++++++++---- ...g-desktop-portal-wlr-harcoded-length.patch | 28 ++++++++++ 5 files changed, 100 insertions(+), 23 deletions(-) create mode 100644 gnu/packages/patches/xdg-desktop-portal-wlr-harcoded-length.patch -- 2.34.0