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 > > >