On Sat, 2020-07-11 at 18:20 +0100, Simon McVittie wrote: > Someone (probably Paul Wise? I lost track of the attribution) wrote: > > > BTW, I think the GTK UI should not be running the MUAs under a VTE > > > terminal unless the MUA is marked as needing a terminal. Same for any > > > other commands it runs under a VTE terminal. For xdg-email probably > > > most of the commands that runs don't need a terminal. Yes, that was me. > It might be safer to build a corresponding mailto: > URI (which is desktop-agnostic and can be done in > pure Python), and then pass it to whatever is the Python > binding for g_app_info_launch_default_for_uri_async() (probably > Gio.AppInfo.launch_default_for_uri_async() or similar). I suggest adding that as a separate MUA to the xdg-email MUA and when running with the reportbug GTK UI, make that new MUA the default MUA, since people not using a terminal are even less likely to want reportbug to submit to an MTA directly than most reportbug users. > with 100% less shell script Sadly, gio still uses a shell script to launch MUAs: $ strace -f -e trace=execve gio open mailto:foo@bar.com |& grep execve | grep -v ENOENT execve("/usr/bin/gio", ["gio", "open", "mailto:foo@bar.com"], 0x7ffcbf1e3a88 /* 96 vars */) = 0 [pid 1476622] execve("/bin/sh", ["/bin/sh", "-e", "-u", "-c", "export GIO_LAUNCHED_DESKTOP_FILE"..., "sh", "evolution", "mailto:foo@bar.com"], 0x558b45966000 /* 97 vars */) = 0 execve("/usr/bin/evolution", ["evolution", "mailto:foo@bar.com"], 0x5607406853f8 /* 98 vars */) = 0 > there is no generic mechanism to choose a per-user or per-desktop > preferred terminal emulator This seems like something that should get added to xdg-utils? -- bye, pabs https://wiki.debian.org/PaulWise
Attachment:
signature.asc
Description: This is a digitally signed message part