On 21/02/2019 21.54, Dave Howorth wrote:
On Thu, 21 Feb 2019 20:51:23 +0100 (CET) "Carlos E. R."
wrote: I have to use the proprietary PDF viewer Foxit (because Evince is not capable of taking snapshots, ie, photos in graphic mode).
Foxit has a feature in preferences to "Make Foxit the default PDF viewer". I said no, but both LibreOffice and Midnight commander open PDFs now in Foxit instead of evince.
I want to revert this action, but I have no idea how Foxit did the change.
Mime type list perhaps? No, the mime.type files have not changed.
check out xdg-open. The association is probably there somewhere but I don't remember any more than the name.
Ah! Interesting. xdg-open - opens a file or URL in the user's preferred application from that to: xdg-settings - get various settings from the desktop environment Let's try: cer@Telcontar:~> xdg-settings --list Known properties: default-url-scheme-handler Default handler for URL scheme default-web-browser Default web browser cer@Telcontar:~> So it is not there. xdg-mime - command line tool for querying information about file type handling and adding descriptions for new file types cer@Telcontar:~> xdg-mime query filetype udf260.pdf application/pdf cer@Telcontar:~> cer@Telcontar:~> xdg-mime query default mimetype application/pdf xdg-mime: mimetype 'mimetype' is not in the form 'minor/major' Try 'xdg-mime --help' for more information. cer@Telcontar:~> Huh? Ah. The man is a bit confusing. But there are examples.. cer@Telcontar:~> xdg-mime query default application/pdf FoxitReader.desktop cer@Telcontar:~> Gotyou! cer@Telcontar:~> xdg-mime default evince.desktop application/pdf cer@Telcontar:~> xdg-mime query default application/pdf evince.desktop cer@Telcontar:~> Thanks! :-) Now let's see if it is permanent. Restarting foxit... yes, it doesn't change the setting. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)