From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kGwNDzAcjWMnBgEAbAwnHQ (envelope-from ) for ; Sun, 04 Dec 2022 23:16:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QHkaDjAcjWN0gAEAG6o9tA (envelope-from ) for ; Sun, 04 Dec 2022 23:16:16 +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 D7F0B2084E for ; Sun, 4 Dec 2022 23:16:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1xHH-0007l4-U7; Sun, 04 Dec 2022 17:16:03 -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 1p1xHG-0007kg-GK for guix-patches@gnu.org; Sun, 04 Dec 2022 17:16:02 -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 1p1xHG-0002mc-6S for guix-patches@gnu.org; Sun, 04 Dec 2022 17:16:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p1xHF-0003QD-O9 for guix-patches@gnu.org; Sun, 04 Dec 2022 17:16: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: Sun, 04 Dec 2022 22:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59825 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59825@debbugs.gnu.org X-Debbugs-Original-To: Guix-patches Received: via spool by submit@debbugs.gnu.org id=B.167019215113141 (code B ref -1); Sun, 04 Dec 2022 22:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Dec 2022 22:15:51 +0000 Received: from localhost ([127.0.0.1]:60123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1xH5-0003Pt-Dt for submit@debbugs.gnu.org; Sun, 04 Dec 2022 17:15:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:60048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1xH2-0003Pn-Tv for submit@debbugs.gnu.org; Sun, 04 Dec 2022 17:15:49 -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 1p1xGv-0007ie-6S for guix-patches@gnu.org; Sun, 04 Dec 2022 17:15:48 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1xGo-0002J7-BN for guix-patches@gnu.org; Sun, 04 Dec 2022 17:15:36 -0500 Date: Sun, 04 Dec 2022 22:15:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1670192131; x=1670451331; bh=68fEtmOOfQ/hNN5UMDAevlF385BrQ2w3sFxGE/lisHE=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=R+CIwD5Cl4IjhuJswH9MtOkmQNPB3yWxu/qWka3Iwp4c0KXcHm8GUwgYrlh1lx14x Icq+WjSkVTlPI0t7L0+Znd0RfizN3RIC5214FV7X7mWkouaq4ClF23l1OwVR5kz/6m 626jXK3T5bwI/gpXZVksGl5QEgEqrnsLjFqYuuFZtR4VKMMqRZEb5jYLfTWtA3SFkZ sYXz/n2VrxNZRP9ErQgjBB3CM+Rz1JdNSr0WB4iDnOgW31BaqsvxmpUGZyPczmm/Yj vMTn6M7m6zXZPn1DXaWjnI9MSfLgFAXiU7nTVwLOt1QkfqHAjiPcILaewYwvFx1jzz OMMkGC/juG8Kg== Message-ID: <87wn764xzf.fsf@protonmail.com> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_xfCGi3fBr65WhKMaHLm6zup9WykDF5NrvOVHOmziWk" Received-SPF: pass client-ip=185.70.40.133; envelope-from=john.kehayias@protonmail.com; helo=mail-40133.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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: , 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670192176; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=68fEtmOOfQ/hNN5UMDAevlF385BrQ2w3sFxGE/lisHE=; b=YAd0eJkELWluqLoxIgudyKs/Qr5LsOktAuaVCcdlqoR4kjGFRo4AeMJAHFreQBNHUIUE+7 ey/alTP/Q7sFO17N6mbHCRa0iKYmfCPXMPXxo/Re54heCTntDPnXgKLg9q/selRDOE2O3Q FYbKkmW0twDVUeTlod6do0UvNQakmqiiN7+3Cq+goCa4QgAKYLiV6AKHJB9EM7BIbVHsHV YXLM5JtFYTaa/xe/C/SChRhBbwuUMJuDotQn6CqqcSjxMIbyOu2Ro9UuIOvb+CsHwIqoYO SgIGPolOEM3/8MDNJFLpTIBLWWRB5ftyN+u6kOxfUAX7/Rq4esCVVYC7mqbLPw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670192176; a=rsa-sha256; cv=none; b=FI8e6rJ2ub7QlhRa8vQoDAF4JKqiX7e25daE0N7INZHdh28xfEPMlxIE6t6PQSqZFQFihh IqwNyQboskno6d5ErdP2V3UV2af3ot0uHRVEKslMQ6aVgOxVvshBe0J0cNnXS1ObFsVmi1 mCbWMgst8H21u3gWpAEc752MMyjik1vfXV2t9WfZ3aifZxNlPtnzXxIa/JLUju1KKNgtx8 u1nmilh4/yoTsrrhk4GdMxlING+3J122rmefFLmO60RGd952U3ewfkQE3qGBR6VUtAZf5d xtJrwpfKi3GCJFMspGTzDtEBwAWjugZy0UZHq6AkSAcXCOASXV6Ijz7pazbozA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=R+CIwD5C; 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: -2.56 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=R+CIwD5C; 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: D7F0B2084E X-Spam-Score: -2.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: Abl7vWsDhajR This is a multi-part message in MIME format. --b1_xfCGi3fBr65WhKMaHLm6zup9WykDF5NrvOVHOmziWk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Guix, Here is a little package from the Flatpak folks which is also useful in a g= uix shell container. This lets you run, for example, xdg-open in the contai= ner 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 w= eb browser, rather than trying in the container. This relies on having port= als on the host side, like xdg-desktop-portal-gtk. Here is a simple test example: --8<---------------cut here---------------start------------->8--- guix shell -NC flatpak-xdg-utils --preserve=3D'^DBUS_SESSION_BUS_ADDRESS$' = -- xdg-open "" --8<---------------cut here---------------end--------------->8--- which will open Guix's website on the host side. I've checked it works, the license (some files LGPL2+ other LGPL2.1+), lint= ed, and styled. I adjusted the description from upstream slightly to indica= te it is not just for Flatpak sandboxes. Thanks! John --b1_xfCGi3fBr65WhKMaHLm6zup9WykDF5NrvOVHOmziWk Content-Type: text/x-patch; name=0001-gnu-Add-flatpak-xdg-utils.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=0001-gnu-Add-flatpak-xdg-utils.patch RnJvbSA4NjY5YTdmYjBlMWI5YmEzMjBjNjMxMmQ3NDIzNTAwYTU2MjM2ZWRjIE1vbiBTZXAgM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Q0KKyAgICAgICAgICAgICAgICAgICAgKHVybCAiaHR0cHM6Ly9naXRodWIu Y29tL2ZsYXRwYWsvZmxhdHBhay14ZGctdXRpbHMiKQ0KKyAgICAgICAgICAgICAgICAgICAgKGNv bW1pdCB2ZXJzaW9uKSkpDQorICAgICAgICAgICAgICAoZmlsZS1uYW1lIChnaXQtZmlsZS1uYW1l IG5hbWUgdmVyc2lvbikpDQorICAgICAgICAgICAgICAoc2hhMjU2DQorICAgICAgICAgICAgICAg KGJhc2UzMg0KKyAgICAgICAgICAgICAgICAiMXE4d3NjNDZmY2ptNzM3aHoxMGp2Z2NpNXdsOXN6 OGhqOWFpeDJ5MnpkajExYnFpYjlhZiIpKSkpDQorICAgIChidWlsZC1zeXN0ZW0gbWVzb24tYnVp bGQtc3lzdGVtKQ0KKyAgICAoYXJndW1lbnRzDQorICAgICAobGlzdCAjOnBoYXNlcyAjfihtb2Rp ZnktcGhhc2VzICVzdGFuZGFyZC1waGFzZXMNCisgICAgICAgICAgICAgICAgICAgICAgICAocmVw bGFjZSAnY2hlY2sNCisgICAgICAgICAgICAgICAgICAgICAgICAgIChsYW1iZGEqICgjOmtleSB0 ZXN0cz8gIzphbGxvdy1vdGhlci1rZXlzKQ0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAo d2hlbiB0ZXN0cz8NCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoaW52b2tlICJkYnVz LXJ1bi1zZXNzaW9uIiAiLS0iICJtZXNvbiIgInRlc3QiDQorICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAiLS1wcmludC1lcnJvcmxvZ3MiKSkpKSkpKQ0KKyAgICAoaW5wdXRz IChsaXN0IGdsaWIpKQ0KKyAgICAobmF0aXZlLWlucHV0cyAobGlzdCBkYnVzIHBrZy1jb25maWcp KQ0KKyAgICAoc3lub3BzaXMNCisgICAgICJTaW1wbGUgcG9ydGFsLWJhc2VkIGNvbW1hbmRsaW5l IHRvb2xzIGZvciB1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