aboutsummaryrefslogtreecommitdiffstats
path: root/wire-desktop/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-11-20 06:04:40 +0100
committerMattias Andrée <maandree@kth.se>2023-11-20 06:04:48 +0100
commit0b0adf152e94df7dff508462b4e50500e3c6ad6a (patch)
treeddbe3c4ebd4ae72c2d39b38e0782f435f5716dae /wire-desktop/Makefile
parentm (diff)
downloaddotfiles-0b0adf152e94df7dff508462b4e50500e3c6ad6a.tar.gz
dotfiles-0b0adf152e94df7dff508462b4e50500e3c6ad6a.tar.bz2
dotfiles-0b0adf152e94df7dff508462b4e50500e3c6ad6a.tar.xz
Automatically mount signal/element/wire when started
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'wire-desktop/Makefile')
-rw-r--r--wire-desktop/Makefile19
1 files changed, 13 insertions, 6 deletions
diff --git a/wire-desktop/Makefile b/wire-desktop/Makefile
index 60a1b18..a8f6186 100644
--- a/wire-desktop/Makefile
+++ b/wire-desktop/Makefile
@@ -9,12 +9,19 @@ install:
../check-installed gnupg
../check-installed cryptsetup
../check-installed key2root
- mkdir -p -- ~/.config/bash/aliases.d
- test ! -e ~/.config/bash/aliases.d/wire-desktop || \
- test -L ~/.config/bash/aliases.d/wire-desktop
- ln -sf -- ~/.dotfiles/wire-desktop/bash-aliases ~/.config/bash/aliases.d/wire-desktop
+ ../check-installed-shebang mount-wire
+ ../check-installed-shebang umount-wire
+ ../check-installed-shebang wire-desktop
+ mkdir -p -- ~/.local/bin/
+ test ! -e ~/.local/bin/mount-wire || test -L ~/.local/bin/mount-wire
+ ln -sf -- ~/.dotfiles/wire-desktop/mount-wire ~/.local/bin/
+ test ! -e ~/.local/bin/umount-wire || test -L ~/.local/bin/umount-wire
+ ln -sf -- ~/.dotfiles/wire-desktop/umount-wire ~/.local/bin/
+ test ! -e ~/.local/bin/wire-desktop || test -L ~/.local/bin/wire-desktop
+ ln -sf -- ~/.dotfiles/wire-desktop/wire-desktop ~/.local/bin/
uninstall:
+! ../check-installed wire-desktop
- -unlink -- ~/.config/bash/aliases.d/wire-desktop
- -rmdir -- ~/.config/bash/aliases.d
+ -unlink -- ~/.local/bin/mount-wire
+ -unlink -- ~/.local/bin/umount-wire
+ -unlink -- ~/.local/bin/wire-desktop