aboutsummaryrefslogtreecommitdiffstats
path: root/element-desktop/bash-aliases
diff options
context:
space:
mode:
Diffstat (limited to 'element-desktop/bash-aliases')
-rw-r--r--element-desktop/bash-aliases6
1 files changed, 3 insertions, 3 deletions
diff --git a/element-desktop/bash-aliases b/element-desktop/bash-aliases
index 5eada3e..5689df2 100644
--- a/element-desktop/bash-aliases
+++ b/element-desktop/bash-aliases
@@ -1,8 +1,8 @@
# -*- shell-script -*-
mount-element () {
- gpg --decrypt ~/.var/element/ElementCrypt.key | \
- asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" ELEMENT_DIR=~/.var/element sh -ec '
+ gpg --decrypt ~/.var/opt/element/ElementCrypt.key | \
+ asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" ELEMENT_DIR=~/.var/opt/element sh -ec '
device="$(losetup --show -f -P "${ELEMENT_DIR}/ElementCrypt.img")"
printf "%s\n" "${device}" > "${XDG_RUNTIME_DIR}/ElementCrypt"
cryptsetup -d - open "${device}" ElementCrypt
@@ -11,7 +11,7 @@ mount-element () {
}
umount-element () {
- asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" ELEMENT_DIR=~/.var/element sh -c '
+ asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" ELEMENT_DIR=~/.var/opt/element sh -c '
umount "${ELEMENT_DIR}/ElementCrypt.d"
cryptsetup close ElementCrypt
losetup --detach "$(cat -- "${XDG_RUNTIME_DIR}/ElementCrypt")"