Skip to content

Commit

Permalink
feat: change opentabletdriver installation to flathub version (#2128)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamyukii authored Jan 14, 2025
1 parent dd1288f commit 34010df
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 34010df

Please sign in to comment.