Hi Martin, On 05/05/2020 15:02, Martin Mézl wrote: > This should work: > > use Glib; # But Glib is not necessary here > use Glib::IO; > > # Glib::Object::Introspection is not needed > > my $uri = Glib->filename_to_uri($file, undef); # undef => no hostname > my $context = Glib::IO::AppLaunchContext->new; > > Glib::IO::AppInfo::launch_default_for_uri($uri, $context);
Oh yes. Very nice, thanks. Using $uri = 'mailto:x@y', I can start an email client. How can I add an attachment without resorting to xdg-email? Regards Jeff
signature.asc
Description: OpenPGP digital signature
_______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-perl-list