From 8ce0f8e89fbe916fd94a3e9b074b3c26c6ee6a1d Mon Sep 17 00:00:00 2001 From: Anders Rytter Hansen Date: Wed, 15 Nov 2023 14:25:05 +0100 Subject: [PATCH] Link xdg-open to host in order to be able to open links etc. --- containers/cachyos/base-gui.Dockerfile | 3 +++ containers/fedora-toolbox/base-gui.Dockerfile | 3 +++ containers/ubuntu/base-gui.Dockerfile | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/containers/cachyos/base-gui.Dockerfile b/containers/cachyos/base-gui.Dockerfile index f3a68eb..968335f 100644 --- a/containers/cachyos/base-gui.Dockerfile +++ b/containers/cachyos/base-gui.Dockerfile @@ -26,6 +26,9 @@ RUN pacman -Sy --noconfirm qt6-webengine # Add Bitwarden dependencies RUN pacman -Sy --noconfirm electron25 c-ares jsoncpp libnss_nis woff2 +# Link xdg-open to host in order to be able to open links etc. +RUN rm -f /usr/bin/xdg-open && ln -s /usr/bin/distrobox-host-exec /usr/bin/xdg-open + # Add Chaotic-AUR RUN pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com && \ pacman-key --lsign-key 3056513887B78AEB && \ diff --git a/containers/fedora-toolbox/base-gui.Dockerfile b/containers/fedora-toolbox/base-gui.Dockerfile index f913b95..d111235 100644 --- a/containers/fedora-toolbox/base-gui.Dockerfile +++ b/containers/fedora-toolbox/base-gui.Dockerfile @@ -20,3 +20,6 @@ RUN dnf install -y dbus-glib pciutils-libs RUN dnf -y install fuse RUN dnf install -y firefox RUN dnf install -y qt5-qtwayland qt6-qtwayland + +# Link xdg-open to host in order to be able to open links etc. +RUN rm -f /usr/bin/xdg-open && ln -s /usr/bin/distrobox-host-exec /usr/bin/xdg-open diff --git a/containers/ubuntu/base-gui.Dockerfile b/containers/ubuntu/base-gui.Dockerfile index 516d97a..ec539e6 100644 --- a/containers/ubuntu/base-gui.Dockerfile +++ b/containers/ubuntu/base-gui.Dockerfile @@ -5,4 +5,9 @@ RUN apt install -y fish htop nano firejail bash apt-utils bc curl dialog diffuti RUN apt install -y gconf2 gconf-service libnotify4 libappindicator1 libnss3 libsecret-1-dev gnome-keyring RUN apt install -y libasound2 libgles2 + +# Link xdg-open to host in order to be able to open links etc. +RUN rm -f /usr/bin/xdg-open && ln -s /usr/bin/distrobox-host-exec /usr/bin/xdg-open + + RUN apt clean