X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=switch-mail-host;h=b27cde9dc4bac303d13fbcbd809fe27353694f37;hb=da085f71e5ae00a9f78ed903be6ae675f66eacfa;hp=12bf126e1f2512179915933ebacf0ebeb6ec0513;hpb=7d9ec600a5ed9f88b85e02a27ee017b85721a6ac;p=distro-setup diff --git a/switch-mail-host b/switch-mail-host index 12bf126..b27cde9 100644 --- a/switch-mail-host +++ b/switch-mail-host @@ -153,7 +153,8 @@ done e "On $new_host: umounting /m and /o, checking emacs" $new_shell bash -s <<'EOF' set -eE -if pgrep -f 'emacs --daemon' &>/dev/null; then +if pgrep -G iank -u iank -f 'emacs --daemon' &>/dev/null; then + export XDG_RUNTIME_DIR=/run/user/1000 bufs="$(emacsclient --eval "$(cat /a/bin/ds/unsaved-buffers.el)"| sed '/^"nil"$/d;s/^"(/E: /;s/)"$//')" if [[ $bufs ]]; then echo "error: on $HOSTNAME, unsaved emacs files: $bufs" >&2 @@ -169,7 +170,8 @@ done EOF $old_shell bash -s <<'EOF' -if pgrep -f 'emacs --daemon' &>/dev/null; then +if pgrep -G iank -u iank -f 'emacs --daemon' &>/dev/null; then + export XDG_RUNTIME_DIR=/run/user/1000 bufs="$(emacsclient --eval "$(cat /a/bin/ds/unsaved-buffers.el)"| sed '/^"nil"$/d;s/^"(/E: /;s/)"$//')" if [[ $bufs ]]; then echo "error: on $HOSTNAME, unsaved emacs files: $bufs" >&2