From 34010df559c10ef7dc55794b8fec68b9c8ab18f0 Mon Sep 17 00:00:00 2001 From: dreamyuki <49896401+dreamyukii@users.noreply.github.com> Date: Tue, 14 Jan 2025 14:20:34 +0700 Subject: [PATCH] feat: change opentabletdriver installation to flathub version (#2128) --- .../usr/share/ublue-os/just/82-bazzite-apps.just | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/system_files/desktop/shared/usr/share/ublue-os/just/82-bazzite-apps.just b/system_files/desktop/shared/usr/share/ublue-os/just/82-bazzite-apps.just index 0ad51bc5a3..85010ee846 100644 --- a/system_files/desktop/shared/usr/share/ublue-os/just/82-bazzite-apps.just +++ b/system_files/desktop/shared/usr/share/ublue-os/just/82-bazzite-apps.just @@ -131,16 +131,14 @@ install-scrcpy: distrobox-check-fedora install-opentabletdriver: #!/usr/bin/bash source /usr/lib/ujust/ujust.sh - if grep -qvz "arch" <<< $(distrobox list); then \ - Assemble noconfirmcreate "" "arch"; \ - fi && \ - distrobox enter -n arch -- bash -c 'paru -Syu --noconfirm && paru -S opentabletdriver --noconfirm' && \ - mkdir -p ~/.config/systemd/user/ && \ - rm -f ~/.config/systemd/user/arch-opentabletdriver.service && \ - wget https://raw.githubusercontent.com/ublue-os/bazzite/main/post_install_files/OpenTabletDriver/opentabletdriver.service -O ~/.config/systemd/user/arch-opentabletdriver.service && \ + echo "Installing OpenTabletDriver..." + flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && \ + flatpak --system install -y flathub net.opentabletdriver.OpenTabletDriver && \ + mkdir -p $HOME/.config/OpenTabletDriver && \ + flatpak override --user --filesystem=xdg-config/OpenTabletDriver net.opentabletdriver.OpenTabletDriver && \ + curl -s https://raw.githubusercontent.com/flathub/net.opentabletdriver.OpenTabletDriver/refs/heads/master/scripts/opentabletdriver.service > ~/.config/systemd/user/opentabletdriver.service && \ systemctl --user daemon-reload && \ - systemctl enable --user --now arch-opentabletdriver.service && \ - distrobox enter -n arch -- bash -c 'distrobox-export --app otd-gui' + systemctl enable --user --now opentabletdriver.service # Install Docker, a platform designed to help developers build, share, and run container applications install-docker: