unable to open link with custom url-handlers

Bug #788673 reported by Emmanuel DA MOTA on 2011-05-26
50
This bug affects 10 people
Affects Status Importance Assigned to Milestone
xdg-utils (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: xdg-utils

having custom url-handlers used for spotify or Lotus Notes. Since the natty upgrade, it's impossible to open link like this

notes://LOTUS5G/C12575B300284028/C33D8B60A0D9AE47C12575B5004C64D8/D9EC40BAB695AD92C125789C004EF4FC in Evolution

the error message is "the location is not supported"

in gconf, there is those keys :
/desktop/gnome/url-handlers/notes with the right values for command, enabled and needs terminal
/schemas/desktop/gnome/url-handlers/notes

in a console :
$ xdg-open Notes://LOTUS5G/C12575B300284028/C33D8B60A0D9AE47C12575B5004C64D8/D9EC40BAB695AD92C125789C004EF4FC

gvfs-open : notes://LOTUS5G/C12575B300284028/C33D8B60A0D9AE47C12575B5004C64D8/D9EC40BAB695AD92C125789C004EF4FC : erreur d'ouverture d'un emplacement : L'emplacement indiqué n'est pas pris en charge

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: xdg-utils 1.1.0~rc1-2ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Thu May 26 17:09:17 2011
Dependencies:

PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 LANG=fr_FR.UTF-8
 LANGUAGE=fr_FR:en
SourcePackage: xdg-utils
UpgradeStatus: Upgraded to natty on 2011-04-29 (27 days ago)

just to add a weird thing when trying a spotify uri, it is completely rewritten

$ xdg-open spotify:artist:1HY2Jd0NmPuamShAr6KMms
gvfs-open : spotify:///artist:1HY2Jd0NmPuamShAr6KMms : erreur d'ouverture d'un emplacement : L'emplacement indiqué n'est pas pris en charge

and fyi :
$ gconftool -g /desktop/gnome/url-handlers/spotify/command
/usr/bin/spotify -uri %s

ok, i found a workaround

i saw that chromium uses xdg-open and xdg seems to take care about the MimeType values in .desktop files

so i created a new desktop file for Lotus named /usr/share/applications/LotusNotes8.5-url.desktop with this content

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

note the %u instead of %F and the NoDisplay key

same thing for Spotify with /usr/share/application/spotify-uri.desktop

[Desktop Entry]
Name=Spotify
GenericName=Spotify
Comment=Listen to music using Spotify
Icon=spotify-linux-512x512
TryExec=spotify
Exec=spotify -uri %u
Terminal=false
Type=Application
Categories=Qt;AudioVideo
MimeType=x-scheme-handler/spotify
NoDisplay=true

i don't know if this is the right way to enable custom url-handlers
so, Are the gconf values deprecated?

same behavior here. Custom url handlers added via gconftool do not work. Trying the .desktop files workaround.

Changed in xdg-utils (Ubuntu):
status: New → Confirmed
Colan Schwartz (colan) on 2011-10-06
tags: added: oneiric
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers