diff options
author | Thanos Apollo <[email protected]> | 2024-02-02 17:55:08 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-02-02 17:55:08 +0200 |
commit | 2005e699acfcd962718d26d85f973f51c9051d14 (patch) | |
tree | c0486aa53cb12c8b24549af34450f254a00b9c54 /.emacs.d/init.el | |
parent | cc4cb4df2827a4fe41de3728e8db4d6e9d5eb81f (diff) |
emacs:(commands) Update pass to use shell-quote-argument
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r-- | .emacs.d/init.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index ca872c7..754c54f 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -748,8 +748,9 @@ ("AUTO" #'(lambda (entry) (let ((user (password-store-get-field entry "user")) (pass (password-store-get entry))) (start-process-shell-command "xdotool" nil - (format "sleep 0.3 && xdotool getactivewindow type '%s' && xdotool getactivewindow key Tab && xdotool getactivewindow type '%s'" - (if user user 'thanosapollo) pass))))) + (format "sleep 0.3 && xdotool getactivewindow type %s && xdotool getactivewindow key Tab && xdotool getactivewindow type %s" + (shell-quote-argument (if user user "thanosapollo")) + (shell-quote-argument pass)))))) ("COPY PASS" #'password-store-copy) ("COPY USERNAME" #'(lambda (entry) (password-store-copy-field entry "user"))) ("EDIT" #'password-store-edit) |