Registering URI scheme handler on package installation?
Dear Sirs,
There is a mechanism in .desktop files for advertising capability to
handle URI schemes. Basically having foobar-app.desktop that includes
line
MimeType=application/x-foobar;x-scheme-handler/foobar;
tells that URIs of form foobar://... are handled by foobar-app. This is
ok and works. But, there is a medium-sized problem, or medium-sized
misunderstanding from my side: before xdg-open actually starts
launching foobar-app for URIs of form foobar://... each and every
users needs to individuall say
xdg-mime default foobar-app.desktop x-scheme-handler/foobar
and my question is: is there any (good, working) method of doing this
from packaging scripts, say, if debhelper is in use? I'm thinking
something like system-wide default, if user has not decided to set his
own default with "xdg-mime default ..." ; It seems to me that this
fine mechanism does not include concept of system-wide default. URI
scheme registration after package installation is broken, until user
takes additional step after package is installed.
https://wiki.debian.org/MIME is more about file types and suffixes,
not URI scheme handlers, altough things are related ; what is the
piece here that I'm missing?
--
Antti Järvinen
Reply to: