Hi WenLong Feng,

A Lotus Notes user opened the following bug which explains what should be 
updated: 
https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/788673

Some further detailed instructions are here:
http://jarrpa.net/2011/10/28/creating-custom-url-handlers-in-
ubuntu-11-04-11-10-gnome-3-0/

Those articles say you should update the 
/usr/share/applications/LotusNotes8.5.desktop file (part of the ibm-lotus-notes 
package):
1. Add an entry: MimeType=x-scheme-handler/notes
2. Ensure Exec= line has a %u at the end

However, the LotusNotes8.5.desktop already uses a variable at the end of
the Exec line so a separate file just for url handling as the user
suggests in the bug mentioned above.

e.g. Create /usr/share/applications/LotusNotes8.5-url.desktop

[Desktop Entry]
Encoding=UTF-8
Name=Lotus Notes 8.5
Type=Application
Exec=/opt/ibm/lotus/notes/framework/../notes %u
Icon=/opt/ibm/lotus/notes/framework/shared/eclipse/features/com.ibm.notes.links.feature_8.5.3.20110916-0921/icons/notes.ico
Terminal=false
MimeType=x-scheme-handler/notes
Categories=Application;Office;
NoDisplay=true

This also uses "NoDisplay=true", this stops the desktop file displaying
in the menus or dash as there is already the LotusNotes8.5.desktop one
there for that.

After run:
# sudo update-desktop-database

This bug is now marked invalid, as the change needs to take place within
your .desktop files.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gconf in Ubuntu.
https://bugs.launchpad.net/bugs/980466

Title:
  URL handler does not work correctly in Firefox after registering in
  gconf

Status in “gconf” package in Ubuntu:
  Invalid

Bug description:
  = Problem =

  Firefox is no associating with URL handlers set within gconf. These
  are typically used for 3rd party applications wishing to associate a
  particular URL type, e.g. "notes:///example" to load Lotus Notes and
  pass the word example to it.

  = Environment =

  * Ubuntu 12.04 LTS (Precise)
  * Firefox 11.0+build1-0ubuntu4

  = Steps to reproduce =

  Reproducible 100%

  1. Register a url handler in gconf (example using evince)

  # sudo gconftool-2 -s /desktop/gnome/url-handlers/evince/command 
'/usr/bin/evince %s' --type String
  # sudo gconftool-2 -s /desktop/gnome/url-handlers/evince/enabled --type 
Boolean true

  2. Load Firefox

  3. Try the new handler in Firefox URL bar by typing
  "evince:///testing".

  4. See error pop-up: "Firefox doesn't know how to open this address
  because the protocol (evince) isn't associated with any program"

  = Other info =

  Mozilla kbase article on setting up URL handlers:
  http://kb.mozillazine.org/Register_protocol#Firefox_3.5_and_above

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gconf/+bug/980466/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to