Mutt cannot open attachments w. xdg-open
Submitted by Rex Dieter
Assigned to Portland Bugs
Description
I'm using Mutt as an example, but there are cases when applications create a tmpfile, and use xdg-open on them. They assume that the helper application blocks until finished, then cleans up the tmpfile.
Problem being that assumption is false. At least in the kde-open case, it returns immediately, and the application cleans up the file prior to it actually being opened. kde-open does have a --tempfile option,
$ kde-open --help-kde-tempfile ... KDE-tempfile options: --tempfile The files/URLs opened by the application will be deleted after use
Obviously, great care needs to be taken if using this, however.
See also downstream report, https://bugzilla.redhat.com/show_bug.cgi?id=653249