← Back to team overview

zim-wiki team mailing list archive

Re: Ubuntu Dash and Zim txt files

 

On Wed, Dec 12, 2012 at 4:09 PM, Marcel Stimberg
<stimberg@xxxxxxxxxxxxxxxxxxxxx> wrote:
>> Turns out that if I specify the rule for "*.txt" indeed ubuntu /
>> nautilus get it right, but now several other appplications (based on
>> spec < 0.16) think all text files are zim pages :(

> oh, that's bad news :-/ Could you be a bit more specific about which
> other applications have issues? If it is a Ubuntu vs. other
> distributions thing, we could keep the change for Ubuntu as a patch in
> the Ubuntu package at least? Either way, it seems that the only
> generally applicable solution is to change the file extension...

For one the python "xdg" module implements the old spec - that is how
I found out, zim itself can no longer tell text files apart when I
define the glob.

Then I tested the perl File::MimeInfo library (disclaimer: I wrote
this one myself a few years back) and it has the same flaw, so it is
not implementation specific, but really depends on how the spec works
out for this case :(

This will affect all other applications using the same libraries.

Arguably these libraries should be fixed. Plus we should test what is
implemented in KDE / xfce / ... to test we don't break any mayor
desktop environment.

Regards,

Jaap


Follow ups

References