jacksenechal / Skype-for-Chrome

Creates Skype callto: links out of phone numbers in the page, so you can click to dial them.
BSD 3-Clause "New" or "Revised" License
8 stars 8 forks source link

Opens new Chrome window instead of Skype #1

Closed DavidKorn closed 12 years ago

DavidKorn commented 13 years ago

Not sure if I've messed something up, but I just installed the extension in Win 7 (from Google's Chrome Extensions site) and when I first clicked on a callto link, I got a lengthy message basically asking if I wanted it to launch Skype. I said yes, also checking the "make this the default behavior" box. But instead of a skype call starting, it just opens up a blank Chrome window. Not sure what to do. Skype has been installed all along and working fine. I'm also not sure how to un-set this as the default function for callto links now (which is really a "how do I use Chrome" question).

jacksenechal commented 13 years ago

I believe the problem is related to Skype not registering itself to handle callto links. I was seeing the same behavior on Linux before I configured the callto link handling.

Unfortunately I don't actually have Windows 7 to test on, so I'm not sure. And the current version of Skype crashes completely when I run it on XP or Vista...

Post back here if you figure it out though, because I'm sure it will help others down the line.

You can unset the default function for callto links by going to Preferences->Under the Hood->Downloads->Clear Auto-opening Settings.

DavidKorn commented 13 years ago

Thanks, I'll keep messing around with it, and will post if I get it resolved. BTW, I'm on 64-bit Win 7, running 32-bit Skype (only one there is I think).

Also, even though the extension shows up under my extensions list (accessible through options) and even though I clicked that "make default" box when this extension first invoked, I actually can't even click on the "Clear Auto-opening settings" you mentioned. That button, and the associated text explaining what it does, are disabled for me. I was thinking they would only be enabled if I had set up app associations for opening downloaded files.

jacksenechal commented 13 years ago

Ah, my bad. The way to clear the URL associations is a bit more manual. You have to edit your "Local State" file in your Chrome application data directory. On Linux this is located at "~/.config/google-chrome/Local State". On my XP box it's at "C:\Documents and Settings\Test User\Local Settings\Application Data\Google\Chrome\User Data\Local State".

You need to find the "protocol_handler" section, and delete the whole line where it says "callto": false.

I managed to get Skype to run on XP (had to set compatibility mode to win2k...), and I'm seeing exactly the same behavior that you are. Interestingly, if I click a callto: link within Internet Explorer, it still opens up a blank page in the default browser. So I think this is definitely an issue with the way Skype is failing to properly handle callto: links.

Meanwhile, skype: links seem to work fine. So perhaps the workaround is to offer a setting in the extension that will allow the user to choose whether to use callto: links or skype: links.

Until that happens though, you can download the source code here and change the code in contentscript.js to say "skype" instead of "callto". To install the extension from your hard drive, follow the directions to load an extension in step number 4 here: http://code.google.com/chrome/extensions/getstarted.html

DavidKorn commented 13 years ago

Ah ok, thanks. I will see what I can work out, and I agree that an option to make it accommodate Skype would probably be a good idea. Definitely a Skype bug then too, because there is a clear option in the Skype settings to make Skype handle "callto" links.