From 18378660cae369465f520fb656c64b59dc0c5411 Mon Sep 17 00:00:00 2001 From: TomJansen <2716208+TomJansen@users.noreply.github.com> Date: Tue, 15 Jan 2019 00:25:46 +0100 Subject: [PATCH] Android unmount fix --- .scripts/i3cmds/dmenuumount | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/i3cmds/dmenuumount b/.scripts/i3cmds/dmenuumount index a267010..260c1c8 100755 --- a/.scripts/i3cmds/dmenuumount +++ b/.scripts/i3cmds/dmenuumount @@ -13,7 +13,7 @@ unmountusb() { unmountandroid() { \ chosen=$(awk '/simple-mtpfs/ {print $2}' /etc/mtab | dmenu -i -p "Unmount which device?") [ -z "$chosen" ] && exit - fusermount -u "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted." + sudo -A umount -l "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted." } asktype() { \