From: Ian Kelling Date: Wed, 11 May 2022 19:03:08 +0000 (-0400) Subject: minor improvements X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=46fb17d56b093264b69cc20192603da2604111ca minor improvements --- diff --git a/mailtest-check b/mailtest-check index 67cca9c..e997895 100755 --- a/mailtest-check +++ b/mailtest-check @@ -280,7 +280,7 @@ EOF loop-main() { # When running under systemd, the system just started. Ve nice and # give programs some time to finish their startup. - sleep 5 + sleep 10 while true; do premain_sec=$EPOCHSECONDS main diff --git a/system-status b/system-status index 47103ac..fc04445 100755 --- a/system-status +++ b/system-status @@ -209,7 +209,7 @@ write-status() { if [[ ! $last_emacs_check || $emacsfiles ]] || (( last_emacs_check < EPOCHSECONDS - 300 )); then if pgrep -G iank -u iank -f 'emacs --daemon' &>/dev/null; then # i dun care if this fails - emacsfiles="$(timeout 1 emacsclient --eval "$elisp"| sed '/^"nil"$/d;s/^"(/E: /;s/)"$//' ||:)" + emacsfiles="$(timeout 1 emacsclient -a /usr/bin/true --eval "$elisp" 2>/dev/null | sed '/^"nil"$/d;s/^"(/E: /;s/)"$//' ||:)" if [[ $emacsfiles ]]; then chars+=("$emacsfiles") fi