Bug 225043 - Default browser ignored by Kopete for opening MSN mail notification
Summary: Default browser ignored by Kopete for opening MSN mail notification
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 249710 253242 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-31 21:06 UTC by Venky
Modified: 2010-10-04 21:29 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.5.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Venky 2010-01-31 21:06:04 UTC
Version:           1.0.0 (using Devel)
OS:                Linux
Installed from:    Compiled sources

I am using kopete 1.0.0 in KDE 4.4 SC RC 2
I have firefox as my default browser in systesettings, but whenever I get a pop-up notification for MSN mail it opens in konqueror.
All other links open in firefox.
Comment 1 neo 2010-07-09 16:20:29 UTC
This is not really a bug to make Kopete be able to open links in Firefox you need to change the default program that open html file. By default in KDE it is set to Konqueror you need to go to System Settings > Advanced > File Association look for html and put Firefox at the top of the list.
Hope that will help.
Comment 2 James Eder 2010-09-11 22:30:40 UTC
The trouble is that users expect that when they change their default web browser that the HTML file types will go with it.  To a large extent it makes sense.  HTML files are typically viewed with a web browser even if the HTML file doesn't come from the web (eg the file is from local storage).

This technically isn't a Kopete bug but a usability bug in KDE's System Settings dialogs.

I propose that System Settings/Default Applications/Web Browser should ask the user if it should change a few file associations too.  Alternatively, it could suggest to the user that he or she may want to review settings in System Settings/File Associations.
Comment 3 James Eder 2010-09-11 23:20:38 UTC
Currently Kopete creates a temporary file and uses the default association for .HTML files to open it. The temporary file uses some kind of "meta http-equiv=Refresh" magic to avoid having the user reenter their MSN log in credentials.

This is a fairly solid case for changing file associations with the "Default Browser" setting. (IMHO)
Comment 4 Pieter van der Kloet 2010-09-17 13:54:19 UTC
In my opinion this bug can be easily fixed by using KToolInvocation::invokeBrowser() instead of KRun() for opening the html file. That way there is no file association change needed to get the inbox to open in your preferred browser.

I can supply a patch file if needed, I don't have the current source right now.
Comment 5 Igor Poboiko 2010-09-17 14:25:07 UTC
Okay, thanks for the idea. But will it be right solution (as for this bug - of course, yep)? I mean, shouldn't we suggest the user to change his text/html viewer in mime-type when he selects the default browser?
Comment 6 Pieter van der Kloet 2010-09-17 14:43:58 UTC
Well Igor, in my opinion it is. The only thing the temporary html file does is set up the username and password and redirect to the online inbox. Many people won't even know what happens behind the scenes and would expect the inbox to open in their preferred browser, not in their preferred HTML file application. I can think of situations where people would assign a non-browser application for opening local HTML files, for instance a text-editor.

Asking these people to change their file associations without them knowing why would be annoying I believe. Explaining why they would have to change their file association would result in a large message box no-one reads. Another issue is that changing the file associations in KDE isn't exactly a user-friendly process and could easily result in misconfigured systems for people who don't know what they are doing.

Regards,
Pieter.
Comment 7 Igor Poboiko 2010-09-17 15:03:16 UTC
Okay, Pieter, I'm totally agreed with you.
I was talking about idea from comment #2, but looks like it is just an another bug. Someone should fill an another wish/bugreport for it (for browser component chooser) and we can discuss and/or fix it.
Comment 8 Pieter van der Kloet 2010-09-17 15:29:09 UTC
Ah I see this bug is fixed in the latest svn. I wanted to create a patch but you fixed it already! :) 

As for the idea of asking the user to change his file associations: what part of KDE would that fall under, for those who wish to open a feature request for that? 

Thanks a lot!
Pieter.
Comment 9 Igor Poboiko 2010-09-17 15:34:31 UTC
No problems :)
It should be for product 'systemsettings' and component 'kcm_componentchooser' (where user selects his default browser)
Comment 10 Igor Poboiko 2010-09-17 17:04:50 UTC
SVN commit 1176400 by poboiko:

Backport commit 1176365
Open hotmail inbox using default web browser (not a default html viewer)
CCBUG: 225043



 M  +1 -3      wlmaccount.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1176400
Comment 11 James Eder 2010-09-17 19:05:35 UTC
If there's someone out there with rights, Bug 249710 seems to be a duplicate of this one.
Comment 12 James Eder 2010-09-17 19:15:05 UTC
In regards to opening up a new bug, how about Bug 217017 ?
Comment 13 Raphael Kubo da Costa 2010-09-18 02:26:05 UTC
*** Bug 249710 has been marked as a duplicate of this bug. ***
Comment 14 Igor Poboiko 2010-10-04 21:29:21 UTC
*** Bug 253242 has been marked as a duplicate of this bug. ***