Skip to content

Commit

Permalink
counsel.el: Call gtk-launch asynchronously
Browse files Browse the repository at this point in the history
(counsel-linux-app-action-default, counsel-linux-app-action-file):
Make asynchronous.

Re: #1483
  • Loading branch information
basil-conto committed Apr 24, 2018
1 parent 1348220 commit d565c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions counsel.el
Original file line number Diff line number Diff line change
Expand Up @@ -3956,11 +3956,11 @@ Any desktop entries that fail to parse are recorded in

(defun counsel-linux-app-action-default (desktop-shortcut)
"Launch DESKTOP-SHORTCUT."
(call-process "gtk-launch" nil nil nil (cdr desktop-shortcut)))
(call-process "gtk-launch" nil 0 nil (cdr desktop-shortcut)))

(defun counsel-linux-app-action-file (desktop-shortcut)
"Launch DESKTOP-SHORTCUT with a selected file."
(call-process "gtk-launch" nil nil nil
(call-process "gtk-launch" nil 0 nil
(cdr desktop-shortcut)
(read-file-name "File: ")))

Expand Down

0 comments on commit d565c5e

Please sign in to comment.