Replace 'sudo' with 'run0' in sys-usb for fedora-gnome

Signed-off-by: Ganwtrs <morga.nwinters-99@aliasvault.net>
This commit is contained in:
Ganwtrs 2025-12-08 17:55:07 -08:00 committed by GitHub
parent 4cfccb29a9
commit a47bb73e9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,13 +17,13 @@
set -eu
unpriv(){
sudo -u nobody "${@}"
run0 -u nobody "${@}"
}
download() {
unpriv curl -s --proxy http://127.0.0.1:8082 "${1}" | sudo tee "${2}" > /dev/null
unpriv curl -s --proxy http://127.0.0.1:8082 "${1}" | run0 tee "${2}" > /dev/null
}
sudo dnf install -y android-tools mediawriter gnome-disk-utility
run0 dnf install -y android-tools mediawriter gnome-disk-utility
# In the dispvm template, delete ~/.config/autostart/nw.desktop to prevent the OnlyKey app from automatically starting.
# In the dispvm template, delete ~/.config/autostart/nw.desktop to prevent the OnlyKey app from automatically starting.