org-download icon indicating copy to clipboard operation
org-download copied to clipboard

Why #+DOWNLOADED: is in tmp directory ?

Open Cletip opened this issue 2 years ago • 10 comments

Hi! I have a "small" problem and I don't understand why I didn't have it before: Before, when I downloaded an image, I had the following result (roughly):

#+DOWNLOADED: link-of-the-dowload name-of-image

Which was very useful to find the link of the original image

And now, I have something like this: 

#+DOWNLOADED: file:///tmp/dnd-file/name-of-image name-of-image

Why ?

My configuration of org-download : (use-package org-download)

Should I now add something to my configuration?

Thanks in advance for your answers

Cletip avatar Mar 09 '22 12:03 Cletip

Update :  When I do the command "org-download-image" and put the url, I get #+DOWNLOADED: link-of-the-dowload name-of-image. But why?

Cletip avatar Mar 26 '22 21:03 Cletip

Update :  I think that the problem come from here : 

(defun org-download-dnd (uri action) "When in `org-mode' and URI points to image, download it. Otherwise, pass URI and ACTION back to dnd dispatch." (cond ((org-download-org-mode-p) (condition-case nil (org-download-image uri) (error (org-download-dnd-fallback uri action)))) ((eq major-mode 'dired-mode) (org-download-dired uri)) ;; redirect to someone else (t (org-download-dnd-fallback uri action))))

When I drag and drop, uri = tmp/... When not, it is https... And, where is the call of the function "org-download-dnd" ?

Cletip avatar Mar 26 '22 22:03 Cletip

Is it possible to remove the #+downloaded altogether when using org-download?

AtomicNess123 avatar Apr 25 '22 06:04 AtomicNess123

Is it possible to remove the #+downloaded altogether when using org-download?

It's possible, and I had found the way, but it doesn't solve my problem: I want to find the original picture in one click (by clicking on the URL, that should be present after #+downloaded)

Cletip avatar Apr 25 '22 11:04 Cletip

Thanks. Well, if you need to know the original picture location you should have the #+DOWNLOADED tag. I don't really care for the original location, as my images are all copied to a new folder.

AtomicNess123 avatar Apr 25 '22 11:04 AtomicNess123

Thanks. Well, if you need to know the original picture location you should have the #+DOWNLOADED tag. I don't really care for the original location, as my images are all copied to a new folder.

Hun, idk if you understood my question ^^

My problem is that my #+DOWNLOADED tag is like this :

#+DOWNLOADED: file:///tmp/dnd-file/name-of-image name-of-image

And not like this

#+DOWNLOADED: link-of-the-dowload name-of-image

And I don't know why :/

Could you show me your org-download configuration please?

Cletip avatar Apr 25 '22 18:04 Cletip

I don't understand.

Isn't "file:///tmp/dnd-file/name-of-image name-of-image" the link of the file?

AtomicNess123 avatar Apr 25 '22 18:04 AtomicNess123

My settings are these:

(require 'org-download) ; https://github.com/abo-abo/org-download ;; Drag-and-drop to dired

(add-hook 'dired-mode-hook 'org-download-enable)
(setq org-download-method 'directory)
(setq org-download-screenshot-method "screencapture -i %s")
(setq-default org-download-image-dir "./§_img")
(setq-default org-download-heading-lvl nil)
(setq org-download-timestamp "%Y%m%d-%H%M%S_")
(add-hook 'dired-mode-hook 'org-download-enable)

AtomicNess123 avatar Apr 25 '22 18:04 AtomicNess123

Sorry, very late I may have misspoken again: I want the URL / URI of the image. This will allow you to find the image on the net, and thus to be able to quickly send it to someone. Thanks you for your configuration

Cletip avatar May 27 '22 08:05 Cletip

I can't help you with that, sorry.

AtomicNess123 avatar May 27 '22 11:05 AtomicNess123