Re: [Development] Mime database size

2015-02-23 Thread Cristian Adam
On Feb 24, 2015 8:06 AM, "Adam Majer" wrote: > > By rewrite, he meant *port to*. So, you don't have to rewrite > anything, "just" port it to the API that is available on a given > platform. By porting it to Qt, then it would be automatically > available everywhere that Qt is available. > > If the

Re: [Development] Mime database size

2015-02-23 Thread Adam Majer
On Mon, Feb 23, 2015 at 07:48:37AM +0100, Mathias Hasselmann wrote: > Am 17.02.2015 um 14:36 schrieb Cristian Adam: > > One could rewrite this small utility into Qt and then it would be > > available everywhere. > > Somehow I thought that one of the big benefits of free software and open > source

Re: [Development] Mime database size

2015-02-23 Thread Knoll Lars
On 23/02/15 15:37, "Thiago Macieira" wrote: >On Monday 23 February 2015 13:20:48 Oswald Buddenhagen wrote: >> On Mon, Feb 23, 2015 at 12:00:51PM +, Knoll Lars wrote: >> > Yes, I still don’t like the fact we’re embedding a 1.7M xml file in Qt >> > Core at all. I’m not too fond of checking the

Re: [Development] Mime database size

2015-02-23 Thread Thiago Macieira
On Monday 23 February 2015 13:20:48 Oswald Buddenhagen wrote: > On Mon, Feb 23, 2015 at 12:00:51PM +, Knoll Lars wrote: > > Yes, I still don’t like the fact we’re embedding a 1.7M xml file in Qt > > Core at all. I’m not too fond of checking the binary file into the > > repositories, but it’s pr

Re: [Development] Mime database size

2015-02-23 Thread Thiago Macieira
On Monday 23 February 2015 10:08:43 Mathias Hasselmann wrote: > Am 23.02.2015 um 08:11 schrieb Thiago Macieira: > > On Monday 23 February 2015 07:48:37 Mathias Hasselmann wrote: > >> Am 17.02.2015 um 14:36 schrieb Cristian Adam: > >>> One could rewrite this small utility into Qt and then it would b

Re: [Development] Mime database size

2015-02-23 Thread David Faure
On Monday 23 February 2015 14:39:49 Arnaud Vrac wrote: > That's true, but the binary file in QStandardPaths::GenericDataLocation + > "mime/mime.cache" should have been rebuilt with those additional XML files. Only on systems with shared-mime-info installed. The XML provider makes things work also

Re: [Development] Mime database size

2015-02-23 Thread Arnaud Vrac
On Mon, Feb 23, 2015 at 2:11 PM, David Faure wrote: > On Monday 23 February 2015 12:00:51 Knoll Lars wrote: > > Yes, I still don’t like the fact we’re embedding a 1.7M xml file in Qt > > Core at all. I’m not too fond of checking the binary file into the > > repositories, but it’s probably still b

Re: [Development] Mime database size

2015-02-23 Thread David Faure
On Monday 23 February 2015 12:00:51 Knoll Lars wrote: > Yes, I still don’t like the fact we’re embedding a 1.7M xml file in Qt > Core at all. I’m not too fond of checking the binary file into the > repositories, but it’s probably still better than continuing with the XML > file. Yes. The binary fi

Re: [Development] Mime database size

2015-02-23 Thread Sorvig Morten
> On 23 Feb 2015, at 13:00, Knoll Lars wrote: > > > Yes, I still don’t like the fact we’re embedding a 1.7M xml file in Qt > Core at all. I’m not too fond of checking the binary file into the > repositories, but it’s probably still better than continuing with the XML > file. For OS X I’d like

Re: [Development] Mime database size

2015-02-23 Thread Oswald Buddenhagen
On Mon, Feb 23, 2015 at 12:00:51PM +, Knoll Lars wrote: > Yes, I still don’t like the fact we’re embedding a 1.7M xml file in Qt > Core at all. I’m not too fond of checking the binary file into the > repositories, but it’s probably still better than continuing with the XML > file. > there is n

Re: [Development] Mime database size

2015-02-23 Thread Knoll Lars
On 22/02/15 19:20, "David Faure" wrote: >On Thursday 19 February 2015 01:55:01 Kevin Kofler wrote: >> Arnaud Vrac wrote: >> > Commit fbeeaf2 in qtbase adds QT_NO_MIMETYPE: >> > >> > "The mime type stuff generates one of the biggest translation units in >> > QtCore due to the compressed 1.7MB f

Re: [Development] Mime database size

2015-02-23 Thread Knoll Lars
On 23/02/15 10:08, "Mathias Hasselmann" wrote: >Am 23.02.2015 um 08:11 schrieb Thiago Macieira: >> On Monday 23 February 2015 07:48:37 Mathias Hasselmann wrote: >>> Am 17.02.2015 um 14:36 schrieb Cristian Adam: One could rewrite this small utility into Qt and then it would be available

Re: [Development] Mime database size

2015-02-23 Thread Mathias Hasselmann
Am 23.02.2015 um 08:11 schrieb Thiago Macieira: > On Monday 23 February 2015 07:48:37 Mathias Hasselmann wrote: >> Am 17.02.2015 um 14:36 schrieb Cristian Adam: >>> One could rewrite this small utility into Qt and then it would be >>> available everywhere. >> >> Somehow I thought that one of the bi

Re: [Development] Mime database size

2015-02-22 Thread André Somers
Mathias Hasselmann schreef op 23-2-2015 om 07:48: > Am 17.02.2015 um 14:36 schrieb Cristian Adam: >> One could rewrite this small utility into Qt and then it would be >> available everywhere. > Somehow I thought that one of the big benefits of free software and open > source is, that you _don't_ ha

Re: [Development] Mime database size

2015-02-22 Thread Thiago Macieira
On Monday 23 February 2015 07:48:37 Mathias Hasselmann wrote: > Am 17.02.2015 um 14:36 schrieb Cristian Adam: > > One could rewrite this small utility into Qt and then it would be > > available everywhere. > > Somehow I thought that one of the big benefits of free software and open > source is, th

Re: [Development] Mime database size

2015-02-22 Thread Mathias Hasselmann
Am 17.02.2015 um 14:36 schrieb Cristian Adam: > One could rewrite this small utility into Qt and then it would be > available everywhere. Somehow I thought that one of the big benefits of free software and open source is, that you _don't_ have to rewrite each and every simple tool. Obviously I'v

Re: [Development] Mime database size

2015-02-22 Thread David Faure
On Thursday 19 February 2015 01:55:01 Kevin Kofler wrote: > Arnaud Vrac wrote: > > Commit fbeeaf2 in qtbase adds QT_NO_MIMETYPE: > > > > "The mime type stuff generates one of the biggest translation units in > > QtCore due to the compressed 1.7MB freedesktop.org.xml resource. With > > QT_NO_MIMETY

Re: [Development] Mime database size

2015-02-18 Thread Thiago Macieira
On Thursday 19 February 2015 09:59:43 Konstantin Ritt wrote: > Actually, I wonder why we didn't that years ago. First, make it work. Then, make it more complex. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center

Re: [Development] Mime database size

2015-02-18 Thread Konstantin Ritt
2015-02-19 9:52 GMT+04:00 Thiago Macieira : > We might not be able to rely on it being there on all systems, but we could > provide a configure switch that lets distributors say "yes, I confirm it's > always there, so don't bundle a copy". > > Similarly, we can provide a switch that says "all loca

Re: [Development] Mime database size

2015-02-18 Thread Thiago Macieira
On Thursday 19 February 2015 01:55:01 Kevin Kofler wrote: > Arnaud Vrac wrote: > > Commit fbeeaf2 in qtbase adds QT_NO_MIMETYPE: > > > > "The mime type stuff generates one of the biggest translation units in > > QtCore due to the compressed 1.7MB freedesktop.org.xml resource. With > > QT_NO_MIMETY

Re: [Development] Mime database size

2015-02-18 Thread Kevin Kofler
Arnaud Vrac wrote: > Commit fbeeaf2 in qtbase adds QT_NO_MIMETYPE: > > "The mime type stuff generates one of the biggest translation units in > QtCore due to the compressed 1.7MB freedesktop.org.xml resource. With > QT_NO_MIMETYPE, libQt5Core.so is almost 400Kb smaller (4.8MB->4.4MB gcc > 4.9 stri

Re: [Development] Mime database size

2015-02-17 Thread Cristian Adam
On Tue, Feb 17, 2015 at 1:48 PM, Иван Комиссаров wrote: > Do you think it's ok to store binary file in a git repo? > > 2015-02-17 15:25 GMT+03:00 Giuseppe D'Angelo : > >> On 17 February 2015 at 13:22, Mark Gaiser wrote: >> > Glib and libxml also compile under windows. >> >> What's the need for w

Re: [Development] Mime database size

2015-02-17 Thread Иван Комиссаров
Do you think it's ok to store binary file in a git repo? 2015-02-17 15:25 GMT+03:00 Giuseppe D'Angelo : > On 17 February 2015 at 13:22, Mark Gaiser wrote: > > Glib and libxml also compile under windows. > > What's the need for windows compilation anyhow? The binary blob can be > regenerated unde

Re: [Development] Mime database size

2015-02-17 Thread Giuseppe D'Angelo
On 17 February 2015 at 13:22, Mark Gaiser wrote: > Glib and libxml also compile under windows. What's the need for windows compilation anyhow? The binary blob can be regenerated under Unix (when the .xml gets updated) and other platforms would just use it? -- Giuseppe D'Angelo _

Re: [Development] Mime database size

2015-02-17 Thread Mark Gaiser
On Tue, Feb 17, 2015 at 12:17 PM, Arnaud Vrac wrote: > On Tue, Feb 17, 2015 at 12:13 PM, Иван Комиссаров > wrote: > >> Hello, Arnaud Vrac. What tool should should generate binary cache on Mac >> OS/Windows? >> > > I think the update-mime-database binary can also be compiled for Windows > and Mac

Re: [Development] Mime database size

2015-02-17 Thread Arnaud Vrac
On Tue, Feb 17, 2015 at 12:13 PM, Иван Комиссаров wrote: > Hello, Arnaud Vrac. What tool should should generate binary cache on Mac > OS/Windows? > I think the update-mime-database binary can also be compiled for Windows and Mac, but it unfortunately depends on glib and libxml. Here is the sour

Re: [Development] Mime database size

2015-02-17 Thread Иван Комиссаров
Hello, Arnaud Vrac. What tool should should generate binary cache on Mac OS/Windows? 2015-02-17 13:56 GMT+03:00 Arnaud Vrac : > Here is the description of the binary file from the shared-mime-info spec: > > http://standards.freedesktop.org/shared-mime-info-spec/latest/ar01s02.html#idm140622087725

Re: [Development] Mime database size

2015-02-17 Thread Arnaud Vrac
Here is the description of the binary file from the shared-mime-info spec: http://standards.freedesktop.org/shared-mime-info-spec/latest/ar01s02.html#idm140622087725744 On Tue, Feb 17, 2015 at 11:51 AM, Arnaud Vrac wrote: > Commit fbeeaf2 in qtbase adds QT_NO_MIMETYPE: > > "The mime type stuff g

[Development] Mime database size

2015-02-17 Thread Arnaud Vrac
Commit fbeeaf2 in qtbase adds QT_NO_MIMETYPE: "The mime type stuff generates one of the biggest translation units in QtCore due to the compressed 1.7MB freedesktop.org.xml resource. With QT_NO_MIMETYPE, libQt5Core.so is almost 400Kb smaller (4.8MB->4.4MB gcc 4.9 stripped release build)" It would