From 23357137da2d5dcf6d2fbc523a7bc45950e3b609 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 25 Jun 2021 20:26:15 +0200 Subject: Create ~/.var/opt and move ~/.var/{element,signal,wire} into ~/.var/opt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- wire-desktop/bash-aliases | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wire-desktop/bash-aliases') diff --git a/wire-desktop/bash-aliases b/wire-desktop/bash-aliases index aa18143..09f4733 100644 --- a/wire-desktop/bash-aliases +++ b/wire-desktop/bash-aliases @@ -1,8 +1,8 @@ # -*- shell-script -*- mount-wire () { - gpg --decrypt ~/.var/wire/WireCrypt.key | \ - asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" WIRE_DIR=~/.var/wire sh -ec ' + gpg --decrypt ~/.var/opt/wire/WireCrypt.key | \ + asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" WIRE_DIR=~/.var/opt/wire sh -ec ' device="$(losetup --show -f -P "${WIRE_DIR}/WireCrypt.img")" printf "%s\n" "${device}" > "${XDG_RUNTIME_DIR}/WireCrypt" cryptsetup -d - open "${device}" WireCrypt @@ -11,7 +11,7 @@ mount-wire () { } umount-wire () { - asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" WIRE_DIR=~/.var/wire sh -c ' + asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" WIRE_DIR=~/.var/opt/wire sh -c ' umount "${WIRE_DIR}/WireCrypt.d" cryptsetup close WireCrypt losetup --detach "$(cat -- "${XDG_RUNTIME_DIR}/WireCrypt")" -- cgit v1.2.3-70-g09d2