GNU bug report logs -
#76120
[PATCH] Expose the native sharing dialog (macOS)
Previous Next
Reported by: Álvaro Ramírez <alvaro <at> xenodium.com>
Date: Fri, 7 Feb 2025 15:00:02 UTC
Severity: wishlist
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Juri Linkov <juri <at> linkov.net> writes:
>> +(defun send-to--default-support-checker-p ()
>> + "Return non-nil for platforms supporting send capability."
>> + (or (and (featurep 'ns) (fboundp 'ns-send-items))
>> + (executable-find "xdg-open")))
>> [...]
>> + ((executable-find "xdg-open")
>> + (when (y-or-n-p (format "Open externally: %s ?"
>> + (send-to--format-items
>> items)))
>> + (dolist (item items)
>> + (with-temp-buffer
>> + (unless (zerop (call-process
>> + "xdg-open" nil (current-buffer)
>> t
>> +
>> (send-to--convert-item-to-filename
>> + item)))
>
> No need to duplicate (executable-find "xdg-open")
> since it already exists in shell-command-guess-open
> used by shell-command-do-open.
Ah, thanks. Sure I can use that.
>
> All the code with the name prefix shell-command-*
> should be moved from dired-aux.el to a new file.
>
> Then your code can be added to the same file.
Can we defer reorganizing dired-aux.el to a separate patch,
please?
This bug report was last modified 30 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.