petits-scripts-persos/emails

6 lines
225 B
Plaintext
Raw Normal View History

2022-03-11 12:43:53 +00:00
#!/bin/sh
# We setup xauthority file to display stuff
2022-03-12 01:21:54 +00:00
auth="$(xauth extract - "$DISPLAY" | base64)"
2023-01-24 22:56:39 +00:00
exec sudo -u emails sh -c "echo -n '$auth' | base64 -d > ~/.Xauthority && . ~/.bashrc && cd ~/attachements && exec neomutt"