![]() Registered Member ![]()
|
My audio player (aTunes) provides web links to articles on the web, when clicked these links used to open the target web page in my browser but now the Kate text editor opens and displays the source code of the web page.
According to the developer of aTunes nothing has changed in the app; it simply presents a URL which should be opened by the default application on my system. I don't think I've changed anything on my system, and when I look at File Associations under System Settings I can't see anything wrong. Can anyone help? Thanks Nick
NickElliott, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
What's your setting in System Settings -> Default Applications -> Web Browser? Which file associations did you look at?
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
![]() Registered Member ![]()
|
System Settings -> Default Applications -> Web Browser is set to Opera
File Associations: - type html (*.htm and *.html) is set to Opera - type plain (including *.txt) is set to Kate - there are lot's more and I'm not sure which, if any, I should change Here's an example of a URL sent from the aTunes application: http://www.lastfm.com/music/Eurythmics/+wiki?setlang=en
NickElliott, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
If you try and open a similar URL through KRunner, what is the effect? Is KWrite still launched?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
No, it opens the web page directly in Opera.
There's a clue, I'm guessing the problem isn't to do with KDE system settings! aTubes is a Java application, perhaps this is something to do with it.
NickElliott, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
Try running "xdg-open <url>" and see what happens.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
This also opens the web page in Opera
NickElliott, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
Is it possible for you to find out from the author of aTunes as to what command it invokes to launch the web browser?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Yes, I will ask, he's very helpful.
I'll let you know, thanks for you help.
NickElliott, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
Here is the info from the developer:
There doesn't seem to be anything in specific in File Associations for URI's
NickElliott, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
Unfortunately my searching has not revealed how Java determines which application to launch under Linux. All the documentation simply says that it launches the operating system default browser, which isn't helpful here. It definitely seems to be invoking something related to KDE somehow though...
Can you see if this issue occurs under a new user?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() ![]()
|
stupid question:
is it a canonocal url (not: "ubuntu" but "http://www.foo.bar/" instead "www.foo.bar") and/or a local file? in case: it's remote and canonical, does it happen with _every_ url (because the server may hand it by the wrong type) |
![]() Registered Member ![]()
|
You may have touched on something here, in the past when links did work they would open - not in my system default browser (Opera) - but in Firefox, or if Firefox wasn't installed they would open in Konqueror. I concluded this was a Java issue and spent a lot of time investigating but did not find a solution. I will report back. It looks in every case to hand back "http://www.foo.bar/"
NickElliott, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
To follow up on my previous post - when I try with a new user nothing happens at all when I select the link.
NickElliott, proud to be a member of KDE forums since 2008-Oct.
|
![]() Administrator ![]()
|
Unfortunately I suspect we will need someone familiar with the Java codebase you are using in order to determine why this is happening. Are you using the Sun/Oracle or IcedTea Java runtime?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot]