[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#59825] [PATCH] gnu: Add flatpak-xdg-utils.
From: |
John Kehayias |
Subject: |
[bug#59825] [PATCH] gnu: Add flatpak-xdg-utils. |
Date: |
Sun, 04 Dec 2022 22:15:23 +0000 |
Hi Guix,
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:
--8<---------------cut here---------------start------------->8---
guix shell -NC flatpak-xdg-utils --preserve='^DBUS_SESSION_BUS_ADDRESS$' --
xdg-open "<https://guix.gnu.org>"
--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+), linted,
and styled. I adjusted the description from upstream slightly to indicate it is
not just for Flatpak sandboxes.
Thanks!
John
0001-gnu-Add-flatpak-xdg-utils.patch
Description: Text Data
- [bug#59825] [PATCH] gnu: Add flatpak-xdg-utils.,
John Kehayias <=