Discussions of development and use of the Sup email client
 help / color / mirror / Atom feed
From: Matthieu Rakotojaona <matthieu.rakotojaona@gmail.com>
To: supmua <supmua@googlegroups.com>
Subject: Re: [sup] Re: Open HTML attachments with chromium
Date: Mon, 29 Jun 2015 20:30:01 +0200	[thread overview]
Message-ID: <1435601735-sup-8880@kpad> (raw)
In-Reply-To: <290f234d-cd91-429d-bbc8-026222fe15ad@googlegroups.com>

[-- Attachment #1: Type: text/plain, Size: 1940 bytes --]

Hey guys,

I personnally use this one-liner which is basically the same thing:

$ cat /path/to/hooks/mime-view.rb
system("xdg-open #{filename} > /dev/null 2>&1 &")

Note the final "&": you need it if you don't want to wait for the right
program to be chosen and opened before being able to use sup again
(because the hook is blocking)

Excerpts from Alice Riot's message of 2015-06-29 10:21:13 -0700:
> Hey Alfredo,
> 
> If you're using linux you can add the following to .sup/hooks/mime-view.rb:
> 
> pid = Process.spawn("xdg-open", filename,                                   
>                                                      
>                      :out => '/dev/null',                                   
>                                                       
>                      :err => '/dev/null')                                   
>                                                       
>                                                                             
>                                                      
> Process.detach pid                                                         
>                                                       
>                                                                             
>                                                      
> true     
> 
> This will open any filetype in the application associated with it 
> (libreoffice documents, pdfs, etc). Just scroll to the file and hit 'enter'.
> 
> On Monday, June 29, 2015 at 12:32:49 PM UTC-4, Alfredo Palhares wrote:
> >
> > Hello everyone, 
> >
> > Can I set sup to open HTML only emails with chromium ? 
> > It a pain in arse to always save the attachment and then open the file 
> > with 
> > chromium. 
> >
> > Regards, 
> >
> > -- 
> > Alfredo Palhares 
> > GPG/PGP Key Fingerprint 
> > 68FC B06A 6C22 8B9B F110 
> > 38D6 E8F7 4D1F 0763 CAAD 
> >
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 343 bytes --]

  reply	other threads:[~2015-06-29 18:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-29 16:32 Alfredo Palhares
2015-06-29 17:21 ` Alice Riot
2015-06-29 18:30   ` Matthieu Rakotojaona [this message]
2015-06-29 20:02   ` [sup] " Gaute Hope

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1435601735-sup-8880@kpad \
    --to=matthieu.rakotojaona@gmail.com \
    --cc=supmua@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox