Bug 255996 - Impossible to open a link from the N900
Summary: Impossible to open a link from the N900
Status: CLOSED UPSTREAM
Alias: None
Product: KMail Mobile
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-03 22:09 UTC by Sabine Faure
Modified: 2010-12-20 12:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sabine Faure 2010-11-03 22:09:53 UTC
Version:           unspecified (using Devel) 
OS:                Linux

If the user receives a link in an email and taps on it (After having selected the Prefer HTML to Plain text functionality from the Actions tab) no web browser is displayed atm so it does not work.

Reproducible: Always

Steps to Reproduce:
Prerequisite: send an email using HTML format and a link in it (ex: google search page) from a desktop computer to the N900 imap inbox(ex: Email 1)

- Launch Kmail-mobile
- Click on your Imap inbox
- Click on email 1
- The email should be displayed as plain text
- Go back to the Message List
- Open the 'Actions' tab
- Click on 'View'
- Click on 'Prefer HTML to Plain Text'
- Click on Email 1
- The email is now displayed in html format
- Click on the Google link

Actual Results:  
The link is selected (a dotted line appears all around it) and some N900 application is attempting to launch but fails ( /usr/lib/kde4/libexec/kioexec /usr/bin/browser http:/)

It seems that there is no web browser application on the N900


Expected Results:  
A web browser should be properly launch and the requested webpage displayed.

N900, 4:4.6~20101103.1192600-1maemo1.1192446
Comment 1 David Faure 2010-11-03 22:35:48 UTC
Investigated: this is because /usr/share/applications/hildon/browser.desktop (package tablet-browser-ui) says Exec=/usr/bin/browser without %u, so kioexec downloads the url.
I changed this to
Exec=/usr/bin/browser --url=%u
and it worked.

This is an upstream maemo bug, but I don't know where to report it. Does anyone know?

If they need the desktop file for an application launcher as well, then they need to split this .desktop file in two: the current one without the MimeType line, and another .desktop file with the mimetypes and with the above Exec line, and with NoDisplay=true to hide it from the application launcher.

Alternatively, they could fix the "browser" app so that it can take a url on the command line without --url=, and then a single desktop file would be enough (since the %u is replaced with nothing when the desktop file is run from an app launcher).
Comment 2 Tobias Koenig 2010-11-30 13:43:32 UTC
Hej,

I have filed a bug report on the maemo bug tracker now:
  https://bugs.maemo.org/show_bug.cgi?id=11640

Ciao,
Tobias
Comment 3 Sabine Faure 2010-12-02 19:16:17 UTC
Thx Tobias ;o)

I retested this today and it actually works now!

It takes 40 seconds for the web page to be displayed and before it appears a bunch of dialogues with progress bars are displayed one after the other.

So it is a little slow and is not very nice visually but it works now at least so I am closing this bug.

N900, 4:4.6~20101202.1202765-1maemo1.1202581
Comment 4 David Faure 2010-12-20 12:12:17 UTC
It only works because I had modified /usr/share/applications/hildon/browser.desktop on sabine's N900 :-)