After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 631435 - Handle x-scheme-handler/note mime-type
Handle x-scheme-handler/note mime-type
Status: RESOLVED FIXED
Product: gnote
Classification: Applications
Component: main
git master
Other Linux
: Normal normal
: ---
Assigned To: gnote-maint
gnote-maint
Depends on:
Blocks: 631433
 
 
Reported: 2010-10-05 14:38 UTC by Bastien Nocera
Modified: 2011-07-30 21:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Initial work on issue. (10.23 KB, patch)
2010-12-12 16:10 UTC, Aurimas Černius
none Details | Review

Description Bastien Nocera 2010-10-05 14:38:28 UTC
instead of installing a schema for /desktop/gnome/url-handlers/note/*
Comment 1 Aurimas Černius 2010-12-12 16:10:15 UTC
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!
Comment 2 Bastien Nocera 2011-02-04 20:16:11 UTC
(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.
Comment 3 Aurimas Černius 2011-02-04 21:08:19 UTC
(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.
Comment 4 Aurimas Černius 2011-07-30 21:05:37 UTC
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.