GNU bug report logs - #76120
[PATCH] Expose the native sharing dialog (macOS)

Previous Next

Package: emacs;

Reported by: Álvaro Ramírez <alvaro <at> xenodium.com>

Date: Fri, 7 Feb 2025 15:00:02 UTC

Severity: wishlist

Tags: patch

Full log


Message #127 received at 76120 <at> debbugs.gnu.org (full text, mbox):

From: Visuwesh <visuweshm <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: bjorn.bidar <at> thaodan.de, alvaro <at> xenodium.com, stefankangas <at> gmail.com,
 76120 <at> debbugs.gnu.org
Subject: Re: bug#76120: [PATCH] Expose the native sharing dialog (macOS)
Date: Tue, 11 Feb 2025 21:16:45 +0530
[செவ்வாய் பிப்ரவரி 11, 2025] Eli Zaretskii wrote:

>> From: Visuwesh <visuweshm <at> gmail.com>
>> Cc: Björn Bidar <bjorn.bidar <at> thaodan.de>,
>>   76120 <at> debbugs.gnu.org,
>>   alvaro <at> xenodium.com,  stefankangas <at> gmail.com
>> Date: Tue, 11 Feb 2025 20:25:35 +0530
>> 
>> [செவ்வாய் பிப்ரவரி 11, 2025] Eli Zaretskii wrote:
>> 
>> >> From: Björn Bidar <bjorn.bidar <at> thaodan.de>
>> >> Cc: Stefan Kangas <stefankangas <at> gmail.com>,  76120 <at> debbugs.gnu.org,  Eli
>> >>  Zaretskii <eliz <at> gnu.org>
>> >> Date: Tue, 11 Feb 2025 00:14:22 +0200
>> >> 
>> >> Since xdg-open isn't the same as "sharing" doesn't that only circumvent
>> >> the policy to not add functionality that is only supported on non-free
>> >> platforms?
>> >
>> > After all the discussions we had about the meaning of "sharing" in
>> > this case, what exactly makes you say xdg-open etc. are not equivalent
>> > to this "sharing"? just the fact that xdg-open doesn't have an option
>> > called literally "share", or something else?
>> >
>> > IOW, would you please describe the general functionality that the
>> > proposed "sharing" offers and xdg-open doesn't?
>> 
>> xdg-open simply opens the given file in the most suitable application
>> (if you ask me how it is determined, I can only tell it is dark arts).
>> So, `xdg-open ~/somepdf.pdf' will open the file in a PDF reader,
>
> That's "sharing" the file with that program.
>
>> `xdg-open ~/img.png' will open it in an image viewer, etc.
>
> That'd be "sharing" the image with the viewer.
>
>> However, I
>> see an "Airdrop" option in the MacOS's share menu which AFAIK/U is akin
>> to "Share to device" which xdg-open cannot do.  For this, we need to
>> rely on KDE Connect or something similar for which Emacs does not have
>> support for OOTB.
>
> Every platform has specialized "sharing target" that other platforms
> don't.  That doesn't mean there's some functionality here that is
> specific to macOS.

So what you're getting at is "share" is an overloaded term that has no
specific meaning, right?

> Moreover, our shell-command-do-open and other similar features,
> especially when accessed from a context menu, provide more
> possibilities than just xdg-open, see the "Guess shell command"
> portion of dired-aux.el.  They are also extensible.
>
> So I see absolutely no problem with adding a "share" menu to these
> existing capabilities.

I have no strong opinions here so I will agree with your decision
regardless.




This bug report was last modified 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.