GNOME Bugzilla – Bug 631435
Handle x-scheme-handler/note mime-type
Last modified: 2011-07-30 21:05:37 UTC
instead of installing a schema for /desktop/gnome/url-handlers/note/*
Created attachment 176294 [details] [review] Initial work on issue. Here's some of work on this issue: 1. Removed schema for /desktop/gnome/url-handlers/note/* 2. Added x-scheme-handler/note to .desktop. 3. Added application/x-note mime type. The problem is, that currently gnote requires --open-note=note command line switch to open a note. Should this be fixed? Also simply installing gnote with this patch aplied failed to open the note when double-clicking in nautilus. Can anyone point me to some documentation about how these mime-types work because ATM all this is nearly blind work. Thanks!
(In reply to comment #1) <snip> > 3. Added application/x-note mime type. What's that actually used for? > The problem is, that currently gnote requires --open-note=note command line > switch to open a note. Should this be fixed? You can create another .desktop file, make it "NoDisplay=true", and change the command line to --open-note=%U" (it would then be passed a URI). > Also simply installing gnote with this patch aplied failed to open the note > when double-clicking in nautilus. Can anyone point me to some documentation > about how these mime-types work because ATM all this is nearly blind work. > Thanks! x-scheme-handler/note isn't a real mime-type, it just means "handle note://foobar URIs with the application that handles x-scheme-handler/note". I don't think that adding mime-types for the on-disk files is relevant for this particular bug.
(In reply to comment #2) > (In reply to comment #1) > <snip> > > 3. Added application/x-note mime type. > > What's that actually used for? Gnote can open *.note files. Well, theoretically, as this feature is currently broken. I think that might be usefull when synchronization support is implemented. > > The problem is, that currently gnote requires --open-note=note command line > > switch to open a note. Should this be fixed? > > You can create another .desktop file, make it "NoDisplay=true", and change the > command line to --open-note=%U" (it would then be passed a URI). This looks like a work-around for me. I think, I'll try to update gnote so that --open-note switch would be optional. > > Also simply installing gnote with this patch aplied failed to open the note > > when double-clicking in nautilus. Can anyone point me to some documentation > > about how these mime-types work because ATM all this is nearly blind work. > > Thanks! > > x-scheme-handler/note isn't a real mime-type, it just means "handle > note://foobar URIs with the application that handles x-scheme-handler/note". > > I don't think that adding mime-types for the on-disk files is relevant for this > particular bug. Thanks for information. I'll work more on this some time later.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.