Comment on
Gamepad on-screen keyboard for Linux - looking for Wayland testers
Reply in thread
Doing so defies the Flatpak security model since the app needs raw evdev and uinput device access. Since Bazzite has a read-only root, you'll need to layer the runtime dependencies:
rpm-ostree install SDL3 SDL3_ttf
Then reboot. The udev rule for uinput access goes in /etc which is writable on Bazzite:
sudo cp gamepad-osk.udev /etc/udev/rules.d/80-gamepad-osk.rules
sudo udevadm control --reload-rules
After that you can build inside a distrobox and run it from ~/.local/bin. I think these will work to build the current branch, I'm not on Bazzite (Fedora):
distrobox create --name build --image fedora:41
distrobox enter build
sudo dnf install golang SDL3-devel SDL3_ttf-devel libX11-devel wayland-devel
git clone -b sdl3-migration https://github.com/0x90shell/gamepad-osk.git
cd gamepad-osk
go build -o gamepad-osk .
cp gamepad-osk ~/.local/bin/
exit
Promptfont is optional (shows controller button icons on keys), but I recommend it. To install:
wget https://github.com/Shinmera/promptfont/raw/main/promptfont.ttf
mkdir -p ~/.local/share/fonts
cp promptfont.ttf ~/.local/share/fonts/
fc-cache