|
David256 Beginner
Joined: 07 Nov 2006 Posts: 22
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Nov 19, 2007 5:51 pm |
Works fine for me here. Can anyone else reproduce this? CMUD is just asking Windows what application is assigned to "open" a *.htm file, so it sounds like maybe Firefox isn't properly associated with that file extension on your system.
|
|
|
|
Arlie Wanderer
Joined: 09 Jun 2006 Posts: 62 Location: Florida
|
Posted: Mon Nov 19, 2007 6:11 pm |
It's a file association problem. Mine's properly opening the webpage with Opera.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Nov 19, 2007 11:13 pm |
I was getting this earlier on my laptop with Abobe Reader, actually, which is really annoying (the pdf I was looking as is basically a big list of links). All the filetypes are associated right, too, which makes me wonder if it's a Windows bug (with optional sarcasm quotes ).
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Nov 19, 2007 11:56 pm |
Some programs *do* force Internet Explorer to be used. Wouldn't surprise me if Adobe did that. Some of them want to use ActiveX plugins for various stuff so they will forcefully call iexplore.exe instead of looking at the default web browser.
So, I cannot vouch for whether other programs work or not. All I can do is say what CMUD is doing, and CMUD looks at the file association. Specifically, CMUD looks at the registry key HKEY_CLASSES/.htm and then extracts the \shell\open\command value from that key. So, you can check your own Registry to see what your keys are set to. |
|
|
|
Arlie Wanderer
Joined: 09 Jun 2006 Posts: 62 Location: Florida
|
Posted: Tue Nov 20, 2007 12:05 am |
For the record, it isn't enough to associate file types in Vista for certain programs, if I'm not mistaken. In Vista if you go to Start, "Default Programs" then select "Set Program Access and Computer Defaults", the value in there could potentially override your default web browser. You can select "Use my Current Web Browser", or you can select any of the other various installed browsers. Same for email and media player.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Nov 20, 2007 1:40 am |
If someone can point me to a link that documents the appropriate Registry entries to check on Vista, then I'd be happy to make the change. I've tried to do this in the past but have always found that the *.htm file association works the most reliably for all browsers. But I can certainly improve it. Just don't have a lot of time to research something minor like this right now while I'm trying to get the public release working.
|
|
|
|
Arlie Wanderer
Joined: 09 Jun 2006 Posts: 62 Location: Florida
|
Posted: Tue Nov 20, 2007 1:45 am |
My apologies Zugg, my post wasn't to you, it was to David256. I've changed my browser to all of the installed browsers on my system and CMud appropriately opened the right one afterward. Your code is perfectly fine, I was just posting to let anyone else using Vista know they may need to change the default program as opposed to the file associations.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Nov 20, 2007 2:00 am |
Ahh, ok, thanks for the clarification.
|
|
|
|
David256 Beginner
Joined: 07 Nov 2006 Posts: 22
|
Posted: Tue Nov 20, 2007 12:47 pm |
Ah, thanks Arlie, setting the 'default programs' did it.
Before setting the default program, HKCR/.htm was pointing to IE, and after setting the default, it was pointing to firefox.
But, curiously, opening *.htm files from explorer always launched firefox regardless of that entry.
*shrug*
Certainly CMUD's behaviour seems reasonable anyway |
|
|
|
|
|