Created
December 23, 2025 15:49
-
-
Save pojntfx/8931c4e207413bc65b5dac96ce6a357e to your computer and use it in GitHub Desktop.
Allow Distrobox/Toolbox containers to access USB devices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This is obviously not safe, but the only workaround I've found for apps that don't use the USB portal (https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Usb.html) | |
| echo 'KERNEL=="tty*", MODE="0777"' | sudo tee /etc/udev/rules.d/99-tty-permissions.rules > /dev/null | |
| sudo udevadm control --reload-rules | |
| sudo udevadm trigger --subsystem-match=tty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment