[Zim-wiki] mime type of zim notes

2011-12-04 Thread Marcel Stimberg
Hi all, after letting the code rot for a while, I finally want to finish the Zeitgeist integration plugin for zim[1]. However, the usefulness is currently reduced because the mime type of zim pages is not correctly detected by my system (Ubuntu 11.10) -- did anyone else notice this as well? The

Re: [Zim-wiki] mime type of zim notes

2011-12-04 Thread Michael Mulqueen
Hi Marcel, I can confirm this on Arch Linux with gvfs 1.10.1-1. I suppose it's to be somewhat expected considering it actually is a plain text file and this was a design goal of zim (to have human readable raw files). I've had a quick look over /usr/share/mime/packages/zim.xml and everything

Re: [Zim-wiki] mime type of zim notes

2011-12-04 Thread Marcel Stimberg
Hi Michael, thanks for the confirmation. I looked a bit more into the subject and found the reason for the observed behaviour -- in fact, a quite simple reason: For determining the file type, it is recommended (and implemented by xdg-open etc.) to first look at the glob pattern (i.e. normally the

Re: [Zim-wiki] mime type of zim notes

2011-12-04 Thread Svenn Are Bjerkem
On 4 December 2011 22:49, Marcel Stimberg stimb...@users.sourceforge.net wrote: Hi Michael, I think there are two solutions to this problem: * Register the .txt extension for the text/x-zim-wiki mime type -- this has the small disadvantage that for all .txt files, a time-costly (relatively

Re: [Zim-wiki] mime type of zim notes

2011-12-04 Thread Michael Mulqueen
Hi Marcel and Svenn, Obviously Jaap will have to decide as it's his project. But I'd be very much in favour of using a different file extension for zim's files. I see only benefits. We gain the ability to do a fast mimetype determination and with it the ability to integrate into things like