petits-scripts-persos/emails

6 lines
222 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)"
exec sudo -u emails sh -c "echo -n '$auth' | base64 -d > ~/.Xauthority && . ~/.bashrc && cd ~/attachements && exec aerc"