diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-02-09 11:01:46 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-02-09 15:35:22 -0700 |
commit | da0a5a15b92c70f7ea7fecb55d0a4b53cd5beb17 (patch) | |
tree | 2c8c44f1509a942fb29d00baad4e15e11f259efe /bin | |
parent | ea9bcbc9682186241458f7f8baed8c19123696b5 (diff) | |
download | dotfiles-da0a5a15b92c70f7ea7fecb55d0a4b53cd5beb17.tar.gz |
save-org-buffers: use LOGNAME
In athena Emacs sessions, USER is unset but LOGNAME is correct.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/save-org-buffers | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/save-org-buffers b/bin/save-org-buffers index 1afa02d0..d0dabfef 100755 --- a/bin/save-org-buffers +++ b/bin/save-org-buffers @@ -4,7 +4,7 @@ # If emacs is running, try to save all Org-mode buffers -if pgrep -u $USER emacs >/dev/null; then +if pgrep -u "$LOGNAME" emacs >/dev/null; then output="$(emacsclient -e '(org-save-all-org-buffers)' 2>/dev/null)" # TODO wait for 5 seconds for above; if doesn't finish, tell user # that it might mean that Emacs is waiting on a y/n prompt |