bugGChemPaint - Bugs: bug #18542, Support for MIME types in KDE

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #18542: Support for MIME types in KDE

Submitted by:  Julian Sikorski <belegdol>
Submitted on:  Sun 17 Dec 2006 09:40:05 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Jean Bréfort <jean_brefort>
Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Fri 22 Dec 2006 10:05:26 AM UTC, comment #17:

Everything seems to be OK now. Cheers.

Julian Sikorski <belegdol>
Fri 22 Dec 2006 05:29:54 AM UTC, comment #16:

Julian, check if you can now get a correct rpm, and I'll release 0.6.8. Sorry for the inconvenience.

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Fri 22 Dec 2006 05:24:44 AM UTC, comment #15:

True. Fixed.

Daniel Leidert <dleidert>
Project Member
Thu 21 Dec 2006 07:23:08 PM UTC, comment #14:

Almost there. You need to append /application to what kde-config --install mime returns.

Julian Sikorski <belegdol>
Thu 21 Dec 2006 02:23:25 PM UTC, comment #13:

Fixed in CVS. Check it out.

Daniel Leidert <dleidert>
Project Member
Thu 21 Dec 2006 12:31:02 PM UTC, comment #12:

There were a few small bugs. A fix will be available in a few minutes.

Daniel Leidert <dleidert>
Project Member
Thu 21 Dec 2006 11:27:17 AM UTC, comment #11:

The patch fixes kde-config detection indeed. The destdir variable i invoked twice almost for sure, rpm finds files in /var/tmp/gchempaint-0.6.7-1-root-jsikorski/usr/share/mimelnk/application/x-gchempaint.desktop, which means it strips the first destdir but can't handle the second one.

Julian Sikorski <belegdol>
Thu 21 Dec 2006 11:11:32 AM UTC, comment #10:

Please also check if $(DESTDIR) is not invoked twice in kde mimelnk install path, since I'm getting weird issues when building rpms (destdir is nonzero then). Cheers.

P.S.
Could you fix my name in changelog, please?

Julian Sikorski <belegdol>
Thu 21 Dec 2006 10:56:12 AM UTC, comment #9:

I should not have released before you check, since I can't try myself. I'll have a look at that asap. Bug reopened

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Thu 21 Dec 2006 09:18:26 AM UTC, comment #8:

Well, I think something is wrong here. I have just checked 0.6.7, and detection of kde-config, and thus of the installation directory, does not work well. Have a look:

checking for kde-config... yes
yes: invalid option -- -
Try `yes --help' for more information.

And at the end, the file wants to go to yes/application/x-gchempaint.desktop

Julian Sikorski <belegdol>
Thu 21 Dec 2006 06:20:56 AM UTC, comment #7:

gchempaint-0.6.7 released

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Wed 20 Dec 2006 12:34:22 PM UTC, comment #6:

fixed in cvs. release soon

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Wed 20 Dec 2006 06:05:18 AM UTC, comment #5:

The translation should come from the po files as far as possible. I'll manage to make this work.
After reading Daniel's comment, I'll just add the x-gchempaint.desktop file.

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Mon 18 Dec 2006 08:53:39 PM UTC, comment #4:

I have updated the translations, hopefully all that are available. I hope that kde4 will be released soon and all these problems will just vanish. Cheers.

(file #11555)

Julian Sikorski <belegdol>
Mon 18 Dec 2006 06:25:05 PM UTC, comment #3:

chemical-mime-data installs the KDE3 MIME support files too. But: The KDE 3 magic database (kde_datadir/mimelnk/magic) is not extendable. And this is a problem for conflicting MIME types, like chemical/x-chm. This MIME type conflicts with the application/chm (HTML help) MIME type. That's the reason, why I cannot support this MIME type automatically with chemical-mime-data. If I get a good description of the file-type, I can add this MIME type to the chemical-mime-data package and give you the magic for the KDE 3 magic pattern file (I'm working on a stylesheet to do this automatically, but it's not yet ready) and you can manually add it to KDE 3 magic pattern db if you really need detecting this file type.

About the application/x-gchempaint MIME type: Looks good. You can
localize comments, ... using intltools desktop rule.

JFTR: Please do never assign an application icon with a generic MIME type like done in the x-cml or x-chm .desktop files!

Daniel Leidert <dleidert>
Project Member
Sun 17 Dec 2006 02:22:24 PM UTC, comment #2:

Whoops, my bad. It looks like I was trying to be too fast. And you're right, chemical-mime-data indeed provides chemical/x-cml type. Anyway. I'm attaching the updated file because gchempaint.xml also provides application/x-cml type separately from chemical-mime-data.

(file #11550)

Julian Sikorski <belegdol>
Sun 17 Dec 2006 11:37:47 AM UTC, comment #1:

The cml file is not correct (and conflicts with the one from chemical-mime-data. I'm not sure about the chm file.
At the moment, I'll push only the gchempaint file.

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Sun 17 Dec 2006 09:40:05 AM UTC, original submission:

I have checked that KDE will support shared mime info once 4.0 version is released. It is scheduled for 2007, so in the meantime we have to do it the old way. These files shall go to %(DATADIR)/mimelnk/application in most cases, unless kde is installed in some strange place. I think it can be detected with kde-config --prefix.

Julian Sikorski <belegdol>

 

Attached Files
file #11572:  18542.patch added by jean_brefort (688B - text/x-patch - should work with that patch. Please try)
file #11555:  x-gchempaint.desktop added by belegdol (266B - application/x-desktop - Updated x-gchempaint.desktop)
file #11550:  x-cml.desktop added by belegdol (137B - application/x-desktop)
file #11547:  x-cml.desktop added by belegdol (142B - application/x-desktop - Necessary desktop files)
file #11548:  x-chm.desktop added by belegdol (131B - application/x-desktop - Necessary desktop files)
file #11549:  x-gchempaint.desktop added by belegdol (202B - application/x-desktop - Necessary desktop files)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dleidert (Posted a comment)
  • -unavailable- added by jean_brefort (Posted a comment)
  • -unavailable- added by belegdol (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 13 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 21 Dec 2006 02:23:25 PM UTCdleidertStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Thu 21 Dec 2006 11:07:07 AM UTCjean_brefortAttached File-=>Added 18542.patch, #11572
    Thu 21 Dec 2006 10:56:12 AM UTCjean_brefortStatusFixed=>Confirmed
      Open/ClosedClosed=>Open
    Thu 21 Dec 2006 06:20:56 AM UTCjean_brefortOpen/ClosedOpen=>Closed
    Wed 20 Dec 2006 12:34:22 PM UTCjean_brefortStatusNone=>Fixed
      Assigned toNone=>jean_brefort
    Mon 18 Dec 2006 08:53:39 PM UTCbelegdolAttached File-=>Added x-gchempaint.desktop, #11555
    Sun 17 Dec 2006 02:22:24 PM UTCbelegdolAttached File-=>Added x-cml.desktop, #11550
    Sun 17 Dec 2006 09:40:05 AM UTCbelegdolAttached File-=>Added x-cml.desktop, #11547
      Attached File-=>Added x-chm.desktop, #11548
      Attached File-=>Added x-gchempaint.desktop, #11549

    Back to the top


    Powered by Savane 3.1-cleanup1