Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] chrome can't open .shtml files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
simon_irl
Guru
Guru


Joined: 07 Oct 2004
Posts: 403
Location: New Zealand

PostPosted: Sat Jun 15, 2013 11:02 am    Post subject: [SOLVED] chrome can't open .shtml files Reply with quote

that is, it can open them (if i simply rename them to .html) but for some reason it treats local .shtml files is if it can't open them, and asks where to save them instead. there doesn't seem to be any internal (to chrome) database of mime type / file association stuff, and setting google-chrome.desktop as the default handler for shtml (using xdg-mime) has no effect.

i have local mirrors of sites with dozens of .shtml links, so i don't want to rename all the files, and in any case, firefox opens them without any problems...and since chrome is perfectly capable of opening them as soon as they're renamed, surely there must be a fix for how chrome handles these links?


Last edited by simon_irl on Fri Jun 21, 2013 11:54 am; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2204
Location: UK

PostPosted: Sat Jun 15, 2013 1:48 pm    Post subject: Reply with quote

I'm not sure where chrome is getting its mime info from, but /etc/mime.types on my system already lists .shtml as text/html and it seems to work here. You might need to run `update-mime-database ~/.local/share/mime`.
Back to top
View user's profile Send private message
simon_irl
Guru
Guru


Joined: 07 Oct 2004
Posts: 403
Location: New Zealand

PostPosted: Thu Jun 20, 2013 11:30 am    Post subject: [SOLVED] chrome can't open .shtml files Reply with quote

Code:
update-mime-database ~/.local/share/mime

fixed it instantly. thank you :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum