What happened?
Enabled +dragndrop (org-download), and tried dragging and dropping a file from X, then I dragged and dropped a file from X.
Emacs inserted the link into org, but it also opened the file in new buffer.
What did you expect to happen?
It should have only inserted the file as a link, without opening it in a new buffer.
Workaround
I think I was able to workaround it by modifying:
(setq dnd-protocol-alist
'(("^data:" . org-download-dnd-base64)
("^\\(?:https?\\|ftp\\|file\\|nfs\\):" . org-download-dnd)
;; ("^file:///" . dnd-open-local-file)
;; ("^file://" . dnd-open-file)
;; ("^file:" . dnd-open-local-file)
;; ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . dnd-open-file))
))
and
(setq browse-url-default-handlers (assq-delete-all 'browse-url--non-html-file-url-p browse-url-default-handlers))
Is this necessary?
System information
Loading data dump...