mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-29 22:20:21 +00:00
feat: change opentabletdriver installation to flathub version (#2128)
This commit is contained in:
parent
dd1288f1c1
commit
34010df559
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user