Mime Helper Error Dialog could be more helpful
When trying to launch a default app via the generic launchers (Terminal, File Manager, Mail Reader, Web Browser) (default command is exo-open --launch WebBrowser %u
) and a default app isn't set or found for a category, this xfce4-mime-helper
error dialog is displayed:
This isn't very helpful and doesn't really explain why there is an error or how to fix it. It would be nice if the dialog would:
- Show what failed to launch, why, and how to fix it
- Offer to open
xfce4-mime-settings
(or offer to set the default app from the dialog)
When launching via terminal, the terminal prints a little more helpful dialog (still probably not helpful to non-technical users though):
$ xfce4-mime-helper -l WebBrowser
Couldn't find a suitable web browser!
Set the BROWSER environment variable to your desired browser.
Edit:
A little more looking into this, turns out that this happens when the default Browser is not set. When not set, it defaults to "Debian Sensible Browser". Although I don't see anywhere in the code that this is explicitly set as default, so maybe I just got unlucky? In the case that no default is set, it would probably be better to notify the user and/or launch xfce4-mime-settings
.
Anyway, at least the Input/Output
error is from sensible-browser
. In other cases, it does seem to display which command is not found (though, still in those cases, not any direction or assistance).