summaryrefslogtreecommitdiff
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-02 17:55:08 +0200
committerThanos Apollo <[email protected]>2024-02-02 17:55:08 +0200
commit2005e699acfcd962718d26d85f973f51c9051d14 (patch)
treec0486aa53cb12c8b24549af34450f254a00b9c54 /.emacs.d/init.el
parentcc4cb4df2827a4fe41de3728e8db4d6e9d5eb81f (diff)
emacs:(commands) Update pass to use shell-quote-argument
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el5
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)