diff options
| author | mhdzli <50514359+mhdzli@users.noreply.github.com> | 2020-01-24 03:41:33 +0330 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-01-23 19:11:33 -0500 |
| commit | e32a1f5779f3626219316a57e796bfa6bf623b68 (patch) | |
| tree | 5592d1c19d122fe4740b2c6ef58958a0a6eadb78 | |
| parent | 858094ffd47aa40021def2d4f6545777b61e3bf4 (diff) | |
| download | eibhear-e32a1f5779f3626219316a57e796bfa6bf623b68.tar.gz eibhear-e32a1f5779f3626219316a57e796bfa6bf623b68.tar.zst eibhear-e32a1f5779f3626219316a57e796bfa6bf623b68.zip | |
Allow access to phone date (#462)
Sometimes android phones ask for permission to allow access to phone data
| -rwxr-xr-x | .local/bin/dmenumount | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.local/bin/dmenumount b/.local/bin/dmenumount index 6784402..e01c7eb 100755 --- a/.local/bin/dmenumount +++ b/.local/bin/dmenumount @@ -31,6 +31,8 @@ mountusb() { \ mountandroid() { \ chosen=$(echo "$anddrives" | dmenu -i -p "Which Android device?" | cut -d : -f 1) getmount "$HOME -maxdepth 3 -type d" + simple-mtpfs --device "$chosen" "$mp" + echo "OK" | dmenu -i -p "Tap Allow on your phone if it asks for permission and then press enter" simple-mtpfs --device "$chosen" "$mp" notify-send "🤖 Android Mounting" "Android device mounted to $mp." } |
