Wednesday, March 10, 2010

Setting default browser for Lotus Notes under Linux

If you are using Lotus Notes 8.5 on Linux you've probably noticed how stupid the settings for external browser are! You can choose between internal notes browser or "system default" browser.
You've probably done what I did, set Gnome default browser to Firefox, set KDE default browser to Firefox and still, when you click on a link and Epiphany or Google Chrome comes up showing your page...

To check what "system default" is type:

$ xdg-mime query default text/html
google-chrome.desktop

then to change it, create firefox37.desktop in /usr/local/share/applications:

[Desktop Entry]
Comment[en_US]=
Comment=
Exec=/usr/firefox37/firefox %U
GenericName[en_US]=
GenericName=
Icon=/usr/firefox37/icons/mozicon128.png
MimeType=text/html
Name[en_US]=Firefox 3.7
Name=Firefox 3.7
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

Mimetype should be set to what you intend to use it for...

and set it:

$ xdg-mime default firefox37.desktop text/html
$ xdg-mime query default text/html
firefox37.desktop


happy browsing...

6 comments:

  1. Struggled with this one quite a bit, but finally Notes is complying! Great post.

    ReplyDelete
  2. Thanks - yet another annoying issue with Notes poor integration with the linux desktop :-(. Thanks for the fix

    ReplyDelete
  3. Thank you thank you thank you!

    Out of curiosity, is this really a Notes<->Linux integration problem, or a Gnome integration problem? Why does xdg-mime return chrome as the default even if one has set Firefox as the default browser in the "Preferred Applications" control panel?

    ReplyDelete
  4. I successfully switched from chrome to firefox, now whatever I do it doesn't switch back to chrome!!

    $xdg-mime default chromimum-browser.desktop text/html
    $xdg-mime query default text/html
    chromimum-browser.desktop

    Even with above settings lotus notes always opens URLs in Firefox only. Anyone know how to change it back to chrome? Please let me know.

    ReplyDelete
  5. NB, Notes like the system's default browser more than the user's default browser, silly notes.

    http://ubuntuforums.org/showthread.php?p=11626516

    ReplyDelete
  6. In ArchLinux I had to modify default url-handlers for http and https using gconf-editor.

    Steps:

    Open gconf-editor

    Go to /desktop/gnome/url-handlers/http

    Change "command" from "epiphany %s" to "firefox %s"

    Repeat with /desktop/gnome/url-handlers/https

    ReplyDelete