Default viewer for unknown file type Topic is solved

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderators: trava90, satrow

User avatar
Massimo_B
Hobby Astronomer
Hobby Astronomer
Posts: 26
Joined: Fri Jan 06, 2017 8:30 am

Default viewer for unknown file type

Postby Massimo_B » Wed Oct 04, 2017 6:01 am

Hi,

opening files of type "unknown", the reader here is always the pdf reader by default. Selecting some other editor is lost the next time trying to open such a file. In the Preferences->Applications there is no type "unknown" in the list.

User avatar
adesh
Lunatic
Lunatic
Posts: 324
Joined: Tue Jun 06, 2017 7:38 am

Re: Default viewer for unknown file type

Postby adesh » Wed Oct 04, 2017 12:54 pm

Probably you need to do this in your OS. Most likely you'll have xdg-utils installed. So, do the following.
Find current application to open "unknown" type:

Code: Select all

xdg-mime query default application/octet-scream

Change it to something else:

Code: Select all

xdg-mime default mpv.desktop application/octet-scream

User avatar
Massimo_B
Hobby Astronomer
Hobby Astronomer
Posts: 26
Joined: Fri Jan 06, 2017 8:30 am

Re: Default viewer for unknown file type

Postby Massimo_B » Thu Oct 05, 2017 5:55 am

adesh wrote:Probably you need to do this in your OS. Most likely you'll have xdg-utils installed. So, do the following.
Find current application to open "unknown" type:

Code: Select all

xdg-mime query default application/octet-scream
This is empty here.
However I tried setting it, but Palemoon still opens the unknown file type with my pdf viewer:

Code: Select all

$ xdg-mime default gvim.desktop application/octet-scream
$ xdg-mime query default application/octet-scream
gvim.desktop

stevepusser
Lunatic
Lunatic
Posts: 267
Joined: Sat Aug 01, 2015 6:33 pm
Location: California

Re: Default viewer for unknown file type  Topic is solved

Postby stevepusser » Thu Oct 05, 2017 7:16 pm

Should be "octect-stream" instead of "-scream". Must be getting too close to Halloween!

User avatar
adesh
Lunatic
Lunatic
Posts: 324
Joined: Tue Jun 06, 2017 7:38 am

Re: Default viewer for unknown file type

Postby adesh » Thu Oct 05, 2017 7:55 pm

Indeed! Thanks steve for catching the typo.

User avatar
Massimo_B
Hobby Astronomer
Hobby Astronomer
Posts: 26
Joined: Fri Jan 06, 2017 8:30 am

Re: Default viewer for unknown file type

Postby Massimo_B » Fri Oct 06, 2017 7:33 am

Works, thanks! btw. how do I delete that silly scream default now?

Why can't Palemoon set a viewer for the unknown filetype? It can do that for all other types as well. And even if I selected gvim manually by "Other.." then it did not remember for the next time or provided it in the listbox.

User avatar
adesh
Lunatic
Lunatic
Posts: 324
Joined: Tue Jun 06, 2017 7:38 am

Re: Default viewer for unknown file type

Postby adesh » Fri Oct 06, 2017 12:14 pm

Massimo_B wrote:Works, thanks! btw. how do I delete that silly scream default now?
Sorry for causing you trouble. Please delete the relevant line from ~/.config/mimeapps.list

Massimo_B wrote:Why can't Palemoon set a viewer for the unknown filetype?
Cannot comment with with certainity, but. Beacuse unknown file type by definition is unknown and since we are unsure about the kind of data the file may have, there is less of a point to set a default viewer for that type. In other words, it is highly unlikely that a program which successfully opens an unknown file today will be able to handle all the other unknown files.


Return to “Pale Moon for Linux”

Who is online

Users browsing this forum: No registered users and 8 guests