Author Topic: Shared-mime-info Package  (Read 2240 times)

BeKind

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://www.seizurerobots.com
Shared-mime-info Package
« on: April 25, 2005, 07:23:12 am »
Hello.  I just upgraded to 3.5.3.  In 3.5.2, there was a package called "mime-support" which used a file called mime.types which you could edit to create default applications for certain file extensions.

I noticed this wasn't in 3.5.3, so I thought maybe there is something newer and better.  I found "shared-mime-info."  I installed that and it created an xml file.

I read up about it on the FreeDesktop.org site and I think understand the point of it, but the question is how to get applications (especially DocTab) to want to use it?  Which apps can use it?

Or do I just scrap it and go back to the 3.5.2 "mime-support?"

Thanks

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Shared-mime-info Package
« Reply #1 on: April 25, 2005, 07:32:38 am »
No, don't go back to 3.5.2, however I don't know tha answer to your question - it may be that the package was simply forgotten, or it may have been replaced. I'd ask on the openzaurus-users ml.

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

BeKind

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://www.seizurerobots.com
Shared-mime-info Package
« Reply #2 on: April 25, 2005, 08:14:47 am »
After I uninstalled "mime-support", every document in the DocTab is labeled as "octet-stream" unless they have their own .desktop files (usually created by a program like Text Editor, when you save a file.)

So does DocTab look for the /etc/mime.types file, or does it use /usr/share/mime/packages/freedesktop.org.xml now?

I noticed shared-mime-info required glib2 so maybe only gnome apps use it.

I think I'll go back to the old way, since I'm guessing that's what DocTab uses, but I still wonder why they got rid of the old mime-support at the same time they added this one.

On further inspection the /usr/share/mime directory is huge, and full of lots of xml descriptions of types, but the question is do these actually get used?  DocTab still seems to label everything octet-stream unless there is a .desktop file saying otherwise.

Anyone know how this works?  Are we supposed to be using shared-mime-info OR mime-support instead?
« Last Edit: April 25, 2005, 09:11:37 am by BeKind »

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Shared-mime-info Package
« Reply #3 on: April 25, 2005, 09:44:07 am »
Quote
I noticed shared-mime-info required glib2 so maybe only gnome apps use it.

It may be that this is for GPE. In fact this is most probably the case.

Quote
I think I'll go back to the old way, since I'm guessing that's what DocTab uses, but I still wonder why they got rid of the old mime-support at the same time they added this one.

Perhaps it was simply forgotten (not added to the feed). I see there is a mime-support bb file in openembedded so this is most likely the problem. Post a request to have it added to the feed here:

https://www.oesf.org/forums/index.php?showtopic=11967


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Shared-mime-info Package
« Reply #4 on: April 25, 2005, 10:22:22 am »
I'm told it has just been added to the upgrades feed (but not to the Packages file yet - so you've have to give an URL or download it and install locally).

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva