On Fri, Feb 12, 2016 at 12:12 PM, Sylvain V wrote:
I've a link in a page
~/somfile.ods
(inserted with ctrl-L)
When I click on in, zim still continue to open gnumeric instead of Calc?
I modified my mine types and it works in Thunar, xfce filemanager under
GNU/Linux.
Zim 0.65
I've both Gnumeric and Clac installed.
How does Zim handle mime types?
Zim follows the XDG spec, so behavior should be the same as XFCE. The reference application to test is "xdg-open". This is a commandline tool to open a file according to mimetype.
However fixing in zim is easy, just right-click on the link and go to the "open with" menu. There is a menu item to change the default.
-----
xdg-open ~/somfile.ods
works
still not from zim. Curious. I logged out/in already…
> However fixing in zim is easy, just right-click on the link and go to the "open with" menu. There is a menu item to change the default.
OK, nice.
So both Gnumeric and Calc are listed.
If I follow "Customize" 3rd choice, I effectively have a choice. Gnumeric as first.
Zim stay on Gnumeric if I choose "System default".
Selecting Calc works fine, even for other .ods links, thanks!
----
However it follows the 2012 implementation of the xdg tools. In the meantime they seem to have adopted another file for storing defaults, so zim could be updated accordingly.
Following mailing list exchange:
On Fri, Feb 12, 2016 at 12:12 PM, Sylvain V wrote:
I've a link in a page
~/somfile.ods
(inserted with ctrl-L)
When I click on in, zim still continue to open gnumeric instead of Calc?
I modified my mine types and it works in Thunar, xfce filemanager under
GNU/Linux.
Zim 0.65
I've both Gnumeric and Clac installed.
How does Zim handle mime types?
Zim follows the XDG spec, so behavior should be the same as XFCE. The reference application to test is "xdg-open". This is a commandline tool to open a file according to mimetype.
However fixing in zim is easy, just right-click on the link and go to the "open with" menu. There is a menu item to change the default.
-----
xdg-open ~/somfile.ods
works
still not from zim. Curious. I logged out/in already…
> However fixing in zim is easy, just right-click on the link and go to the "open with" menu. There is a menu item to change the default.
OK, nice.
So both Gnumeric and Calc are listed.
If I follow "Customize" 3rd choice, I effectively have a choice. Gnumeric as first.
Zim stay on Gnumeric if I choose "System default".
Selecting Calc works fine, even for other .ods links, thanks!
----
However it follows the 2012 implementation of the xdg tools. In the meantime they seem to have adopted another file for storing defaults, so zim could be updated accordingly.