From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yIyLEMJZnWPRFwEAbAwnHQ (envelope-from ) for ; Sat, 17 Dec 2022 06:55:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sDJxEMJZnWOjEgAAauVa8A (envelope-from ) for ; Sat, 17 Dec 2022 06:55:14 +0100 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 F12A82E792 for ; Sat, 17 Dec 2022 06:55:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6QA6-0007Nm-1c; Sat, 17 Dec 2022 00:55:06 -0500 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 1p6QA3-0007NE-C7 for guix-patches@gnu.org; Sat, 17 Dec 2022 00:55:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6QA2-0001g6-By for guix-patches@gnu.org; Sat, 17 Dec 2022 00:55:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p6QA1-0002dc-Sj for guix-patches@gnu.org; Sat, 17 Dec 2022 00:55:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59825] [PATCH] gnu: Add flatpak-xdg-utils. Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 17 Dec 2022 05:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59825 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 59825@debbugs.gnu.org Received: via spool by 59825-submit@debbugs.gnu.org id=B59825.167125648510127 (code B ref 59825); Sat, 17 Dec 2022 05:55:01 +0000 Received: (at 59825) by debbugs.gnu.org; 17 Dec 2022 05:54:45 +0000 Received: from localhost ([127.0.0.1]:53952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6Q9l-0002dH-BF for submit@debbugs.gnu.org; Sat, 17 Dec 2022 00:54:45 -0500 Received: from mail-4316.protonmail.ch ([185.70.43.16]:41427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6Q9g-0002d8-J8 for 59825@debbugs.gnu.org; Sat, 17 Dec 2022 00:54:43 -0500 Date: Sat, 17 Dec 2022 05:54:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1671256473; x=1671515673; bh=5BCGBv+/89AQY0NOFhbXc/4/HXWzfvZpprqiQatYLXM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=PJHqNlyzYQ7ebaOM6w14KotH4S5rDoSO3cOzLNL7S9Js2MQ8giFsuE0GaaLFBW6Kh SDRqiqHf8PBAZHDTcYMFoKslXsuNYL3mUJ0A6dQl5ZZ+e1g/KO3agqg/Vt/mlxPuMO X2A/gWuFTtBgYwhc7CcmN+aRh5cfmex9Jj8WxXP4RAQASYFnuNVP+9WRbue5pLGgKy lUkO5LnRQ2BorGCZVf7PnvpO+PyAaocl0+muHMNj78bNsusrx/ld6CS/JOvBTnmyJr n0z4TdfnVXrko+LI8lxJsmogO9akQrfCQ45MMoAQI/6O34wwr99Pa9GG5W6kEX87Z+ UWcr8h39xEEIg== Message-ID: <874jtulgmx.fsf@protonmail.com> In-Reply-To: <871qp2uwyc.fsf@gnu.org> References: <87wn764xzf.fsf@protonmail.com> <871qp2uwyc.fsf@gnu.org> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches From: John Kehayias via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671256514; a=rsa-sha256; cv=none; b=Uc4PEshXUJ11QUv1zH9elMaLd2T0b6p3zfNWxP+R/vA4HWvfKypEYuUP2kde135LBSrfrn 2sdM2YrcVt5ArL32lWul7jzhF3ciZXIe9rpPd855QX+0O3DNyCq7T7PdBp+Pt+MckF2Nou +6u3vCfIRToWTogiDL5Qzaw1YZVjF6s7WgusjVX/9ykRcGibD/lXOdFjWmCHgP9NgZ+9v1 CstreicV3qQCghC8PYGxSjOB/YPuHoV714QJpwowSmplRL/4Lqd7HdeuhC8h49Sf8LJ4dQ 94nCwi0RvupiGGUL++94Pc+G6s4deBR1jrqi3FHwRerXkj7LImGgN5Os2iQ4JA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=PJHqNlyz; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671256514; 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-type:content-type: 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=5BCGBv+/89AQY0NOFhbXc/4/HXWzfvZpprqiQatYLXM=; b=QKiu2atmB6fHMhB2K1HJx55zCAkD5+z73ZmHUfPM0x72LhJIzvPuXOor3fvK83C+sfWkZl 1wxPUTtVAf2g5UvTsvR/qp5K8a0mNki07XFgcGkzPxeDUTgEBYh6GUIIaG+jIk/9wzA+oW GxNPX5nWIPutreu6fLfh3MaGFfLjD/stnjtwFu5ynv3nqm6dgjO/Nt1RW8AJGnQpp/TEKp OiaNWbM6ymqVdX3EbmYboR0ecXArThtmGRPyZCb826Keo3PaivsHgeiSvGKzOEjv3MUo/s bem/fxG+j45DMVkhdN1dMCrZRfl6Peec/RKEUAsEatIwXeZFN+i6JJVE+WxcVg== X-Migadu-Spam-Score: -1.98 X-Spam-Score: -1.98 X-Migadu-Queue-Id: F12A82E792 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=PJHqNlyz; 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"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn1.migadu.com X-TUID: y3HFD2+Zs4zl Howdy, On Wed, Dec 14, 2022 at 11:00 AM, Ludovic Court=C3=A8s wrote: > Hi! > > John Kehayias skribis: > >> Here is a little package from the Flatpak folks which is also useful in = a guix shell >> container. This lets you run, for example, xdg-open in the container and= it will open on >> the host side. So let's say you come across a URL, you can just use xdg-= open from this >> package so it will open in the host's web browser, rather than trying in= the container. >> This relies on having portals on the host side, like xdg-desktop-portal-= gtk. >> >> Here is a simple test example: >> >> guix shell -NC flatpak-xdg-utils --preserve=3D'^DBUS_SESSION_BUS_ADDRESS= $' -- xdg-open >> "" >> >> which will open Guix's website on the host side. > > Interesting (and scary as well, depending on how it=E2=80=99s implemented= ). > Yes, a bit of both! The scary one I think is 'flatpak-spawn' which will run= something on the host, but as this is done via portals there's some contro= l there over what it implements and how. I don't know the details though, b= ut I did see checks somewhere for what checking what is allowed to be acces= sed. e.g. with guix shell -NC flatpak-xdg-utils --preserve=3D'^DBUS_SESSION_BUS_= ADDRESS$' -- flatpak-spawn --host ls / So yeah, punching holes in a sandbox. Anyway... > Don=E2=80=99t you need to share /tmp as well? =E2=80=98DBUS_SESSION_BUS_= ADDRESS=E2=80=99 refers > to a socket in /tmp for me. > It does point to something in /tmp for me as well, but which doesn't exist.= ..not sure the details of DBus, which I always find confusing. Note the -N argument, that was key for me to get it working easily. Without= that and even sharing /tmp it didn't work, nor if I tried manually adding = files that -N adds. So it must be something else about the network option t= hat gets access to the DBus socket? >> From 8669a7fb0e1b9ba320c6312d7423500a56236edc Mon Sep 17 00:00:00 2001 >> From: John Kehayias >> Date: Sun, 4 Dec 2022 17:06:19 -0500 >> Subject: [PATCH] gnu: Add flatpak-xdg-utils. >> >> * gnu/packages/freedesktop.scm (flatpak-xdg-utils): New variable. > > mentions a build failure on > i686-linux; could you take a look? > Took me a bit to figure out the logs, but looks like some issue on the buil= d server as in the configure phase I see: WARNING: Could not create compilation database. Locally it has built fine, for the same derivation hash as well. > Apart from that, it LGTM! > Great! I'll add it to my early lists of commits I'll make, once I finally g= et a breather here. > Thanks, > Ludo=E2=80=99. And thank you! John