From 0ef0abf62c0a9f1c083ae00f39b4149d4b8e98cb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 20 Mar 2026 18:33:03 +0100 Subject: Use gasroot instead of asroot when not in foreground MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- wire-desktop/umount-wire | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'wire-desktop/umount-wire') diff --git a/wire-desktop/umount-wire b/wire-desktop/umount-wire index 796ea05..ce7f0c0 100755 --- a/wire-desktop/umount-wire +++ b/wire-desktop/umount-wire @@ -1,6 +1,11 @@ #!/bin/dash -asroot env \ +asroot=asroot +if ! isfg; then + asroot=gasroot +fi + +$asroot env \ WIRE_DIR="${HOME}/.var/opt/wire" \ WIRE_DEV="$(losetup | sed 's/\s\+/ /g' | cut -d ' ' -f 1,6 | \ sed -n 's#\(/[^ ]*\) '"$(realpath -- "${HOME}/.var/opt/wire/WireCrypt.img")"'$#\1#p' | sed 1q)" \ -- cgit v1.2.3-70-g09d2