aboutsummaryrefslogtreecommitdiffstats
path: root/signal-desktop
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--signal-desktop/Makefile8
-rw-r--r--signal-desktop/bash-aliases6
2 files changed, 7 insertions, 7 deletions
diff --git a/signal-desktop/Makefile b/signal-desktop/Makefile
index 36108fd..2aa0c96 100644
--- a/signal-desktop/Makefile
+++ b/signal-desktop/Makefile
@@ -2,10 +2,10 @@
include ../common.mk
install:
- test -f ~/.var/signal/SignalCrypt.img
- test -f ~/.var/signal/SignalCrypt.key
- mkdir -p -- ~/.var/signal/SignalCrypt.d
- test -e ~/.config/Signal || ln -sf -- ../.var/signal/SignalCrypt.d/Signal ~/.config/Signal
+ test -f ~/.var/opt/signal/SignalCrypt.img
+ test -f ~/.var/opt/signal/SignalCrypt.key
+ mkdir -p -- ~/.var/opt/signal/SignalCrypt.d
+ test -e ~/.config/Signal || ln -sf -- ../.var/opt/signal/SignalCrypt.d/Signal ~/.config/Signal
$(CHECK_INSTALLED) asroot
$(CHECK_INSTALLED) gnupg
$(CHECK_INSTALLED) cryptsetup
diff --git a/signal-desktop/bash-aliases b/signal-desktop/bash-aliases
index 1e7b01c..0404b2c 100644
--- a/signal-desktop/bash-aliases
+++ b/signal-desktop/bash-aliases
@@ -1,8 +1,8 @@
# -*- shell-script -*-
mount-signal () {
- gpg --decrypt ~/.var/signal/SignalCrypt.key | \
- asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" SIGNAL_DIR=~/.var/signal sh -ec '
+ gpg --decrypt ~/.var/opt/signal/SignalCrypt.key | \
+ asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" SIGNAL_DIR=~/.var/opt/signal sh -ec '
device="$(losetup --show -f -P "${SIGNAL_DIR}/SignalCrypt.img")"
printf "%s\n" "${device}" > "${XDG_RUNTIME_DIR}/SignalCrypt"
cryptsetup -d - open "${device}" SignalCrypt
@@ -11,7 +11,7 @@ mount-signal () {
}
umount-signal () {
- asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" SIGNAL_DIR=~/.var/signal sh -c '
+ asroot env XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" SIGNAL_DIR=~/.var/opt/signal sh -c '
umount "${SIGNAL_DIR}/SignalCrypt.d"
cryptsetup close SignalCrypt
losetup --detach "$(cat -- "${XDG_RUNTIME_DIR}/SignalCrypt")"