15.09.2011, в 21:12, David Faure написал(а):

> Well the very first step was to get QStandardPaths into Qt, so that we can 
> locate the files generated by shared-mime-info on disk.
> 
> It took a long time (due to 3 platforms, due to review process, and due to 
> the 
> refactor branch being merged into master), but it's finally ready.
> Not merged yet, though.

Ah, i see… Is that means that you want to store same text files (generated by 
update-mime-database command) in windows/mac too?
> 
> Also, my first commits to qmime.git were moved to a branch and never merged 
> in, I don't take that as a sign of fruitful collaboration...

I move them to separate branch because when i worked with Konstantin, we 
discussed everything before writing code. If we don't discuss first, we need 
code review instead - that's why i created branches for you and me.

> 
> IMHO the editing of mimetypes in Qt Creator should be removed.
> I asked danimo and he was very surprised to hear that such a thing existed.
> But if Qt creator should really allow editing of mimetypes, then it should 
> edit the system mimetypes (I have code for that too...). The concept of per-
> application mimetypes breaks the concept of shared-mime-info.

Sometimes (quite rare though) application really need it's own format of files 
for its inner purposes. That's why creating of custom mime types can be useful 
sometimes.

> 
> Moving to another public class doesn't change the issue: if it's in the API, 
> it can't be changed later.
> 
> Same thing with the glob weights -- this shouldn't appear in the API, because 
> that makes it impossible to change if the spec changes. In fact this wasn't 
> in 
> the spec initially... these things -can- change.

I don't believe they (freedesktop.org) will change spec - they have big risk to 
broke something:)

> There is just one xml file to copy. The rest is generated by update-mime-
> database. But I can see that given Windows's non-existing dependency 
> handling, 
> this might not be a great solution ;)

Is update-mime-database ported to windows? Where does it store files?

> An alternative could be that Qt ships the files generated from 
> freedesktop.org.xml, and [on any platform] if shared-mime-info is installed 
> we 
> don't use those.

Is it really best way to deploy million of files on windows/mac? Maybe it is 
better to use one huge database file? Shared-mime-info describes one binary 
format for database, but i does not contains strings (descriptions) for mime 
types. Maybe they can change spec to add these strings? (or ids of mime types 
to load strings from .qm files, for example)

Btw, i know that my english skills is very bad, so feel free to ask if 
something is not clear:)
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to