Re: Viewing HTML message with Firefox

2022-10-10 Thread Cameron Simpson

On 10Oct2022 17:00, Jan Eden via Mutt-users  wrote:

Firefox 105.0.3 on Ubuntu 22.04. It seems the switch to snap has many
disadvantages.


Yes and no. I like a bit of restraint. But it's good if the reasons are 
made apparent to the user. Example, on MacOS apps actually need to go 
through the OS access control if they try to access the Desktop folder.  
But at least I get an OS mediated popup saying "App X wants to access 
your Desktop folder". A bit ad hoc, but as a shared multipurpose area it 
is probaby a good thing.


It sounds like snap apps maybe run in a somewhat constrained container?

I've got $TMPDIR set to ~/tmp, so i probably haven't been bitten by this 
Firefox check, and I am a Firefox user.


Cheers,
Cameron Simpson 


Re: Re: Re: Viewing HTML message with Firefox

2022-10-10 Thread Jan Eden via Mutt-users
On 2022-10-10 08:42, José María Mateos wrote:
> On Mon, Oct 10, 2022 at 12:27:52PM +0200, Jan Eden via Mutt-users wrote:
> > The problem was related to the target dir (/tmp/mutt_attach). Although
> > it was accessible by the current user, Firefox was not able to display
> > files at file:///tmp/mutt_attach/file.html – while Epiphany was.
> > 
> > Whatever the reason, I changed the script to store HTML files in
> > /home/jan/mutt_attach, and Firefox successfully opens
> > file:///home/jan/mutt_attach/file.html.
> 
> What version of Firefox are you using? I started seeing exactly the same
> problem when I upgraded my Ubuntu installation to 22.04, where Firefox is
> handled by snap, and the filepaths it can access seems to be somewhat
> restricted. I ended up using a solution similar to yours: placing the
> temporary file in a folder within my user folder.

Firefox 105.0.3 on Ubuntu 22.04. It seems the switch to snap has many
disadvantages.

- Jan


signature.asc
Description: PGP signature


Re: Re: Viewing HTML message with Firefox

2022-10-10 Thread José María Mateos

On Mon, Oct 10, 2022 at 12:27:52PM +0200, Jan Eden via Mutt-users wrote:

The problem was related to the target dir (/tmp/mutt_attach). Although
it was accessible by the current user, Firefox was not able to display
files at file:///tmp/mutt_attach/file.html – while Epiphany was.

Whatever the reason, I changed the script to store HTML files in
/home/jan/mutt_attach, and Firefox successfully opens
file:///home/jan/mutt_attach/file.html.


What version of Firefox are you using? I started seeing exactly the same 
problem when I upgraded my Ubuntu installation to 22.04, where Firefox 
is handled by snap, and the filepaths it can access seems to be somewhat 
restricted. I ended up using a solution similar to yours: placing the 
temporary file in a folder within my user folder.


Cheers,

--
José María (Chema) Mateos || https://rinzewind.org


Re: Re: Viewing HTML message with Firefox

2022-10-10 Thread Jan Eden via Mutt-users
On 2022-10-10 08:58, Cameron Simpson wrote:
> On 09Oct2022 09:35, Jan Eden via Mutt-users  wrote:
> > Yes, I did use Chris Green's helper script, and it does work with
> > Epiphany, but not with Firefox.
> 
> Maybe it would prefer a "file:///path/to/file.html" URL?
> 
> Try some things by hand with the "open" command, see what works. You're
> aware that "open" (MacOS command) accepts a "-a appname" argument to select
> which application gets asked to open the target? You can do comparisons that
> way, or force a preference. [...] Um, your error log suggests you're on
> Linux. IIRC its "open" command is rather different.  Anyway, experiment by
> hand rather than indirectly through the mailcap.

The problem was related to the target dir (/tmp/mutt_attach). Although
it was accessible by the current user, Firefox was not able to display
files at file:///tmp/mutt_attach/file.html – while Epiphany was.

Whatever the reason, I changed the script to store HTML files in
/home/jan/mutt_attach, and Firefox successfully opens
file:///home/jan/mutt_attach/file.html.

Thanks again for all your help,
Jan


signature.asc
Description: PGP signature