org-download

a fork of abo-abo's org-download
git clone https://git.trogloxene.org/org-download.git
Log | Files | Refs | README

commit 541f3360302ac79f5eb1461291eaa03487a45cdb
parent af07ea88debd1d9e6c5199070525651831c55b54
Author: Lorenzo Adyns <lorenzoadyns@hotmail.com>
Date:   Sat,  3 Nov 2018 01:08:17 +0100

Ensure command gets executed on local system

Fixes #37
Fixes #86

Diffstat:
Morg-download.el | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/org-download.el b/org-download.el @@ -289,8 +289,9 @@ COMMAND is a format-style string with two slots for LINK and FILENAME." "Capture screenshot and insert the resulting file. The screenshot tool is determined by `org-download-screenshot-method'." (interactive) - (shell-command (format org-download-screenshot-method - org-download-screenshot-file)) + (let ((default-directory "~")) + (shell-command (format org-download-screenshot-method + org-download-screenshot-file))) (org-download-image org-download-screenshot-file)) (declare-function org-attach-dir "org-attach")