Fixed android device not mounting to root owned directories (#1273)

This commit is contained in:
Stagnant 2023-02-17 14:31:44 +00:00 committed by GitHub
parent 12167f3dda
commit 335c1bc8af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ case "$chosen" in
echo "OK" | dmenu -i -p "Tap Allow on your phone if it asks for permission and then press enter"
chosen="${chosen%%:*}"
chosen="${chosen:1}" # This is a bashism.
simple-mtpfs --device "$chosen" "$mp"
sudo -A simple-mtpfs -o allow_other --device "$chosen" "$mp"
notify-send "🤖 Android Mounted." "Android device mounted to $mp."
;;
esac