branch: master
commit 75f9cebc6a44cc5aff51f403bae4774736ea52bd
Author: Ian Dunn <[email protected]>
Commit: Ian Dunn <[email protected]>
Allow spaces in file names when running linux apps.
* counsel.el (counsel-linux-app-action-file): Quote argument to allow
spaces.
---
counsel.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/counsel.el b/counsel.el
index 6c77df3..29fa8d5 100644
--- a/counsel.el
+++ b/counsel.el
@@ -2676,7 +2676,7 @@ And insert it into the minibuffer. Useful during
(format "Run %s on: " short-name)))))
(if file
(call-process-shell-command
- (format "gtk-launch %s %s"
+ (format "gtk-launch %s \"%s\""
(file-name-nondirectory desktop-shortcut)
file))
(user-error "cancelled"))))