FIX another quoting bug

This commit is contained in:
Nathan Dwarshuis 2024-03-30 14:32:15 -04:00
parent b18e7ac237
commit 6624ce05bf
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ multiple files at once for given MIMETYPE."
(defun nd/execute-desktop-command (cmd file)
"Opens FILE using CMD in separate process where CMD is from a
desktop file exec directive."
(--> (format "'%s'" file)
(--> (shell-quote-argument file)
(replace-regexp-in-string "%[fuFU]" it cmd t t)
(format "%s &" it)
(call-process-shell-command it)))