You are here

file/mime types?

regarding http://sourceforge.net/projects/qtractor/forums/forum/458010/topic/4933166

Does qtractor have a mime-type XML file? for example,

/usr/share/mime/packages/qtractor.xml

see attached code (spam filter was triggered by code)

This will add mime types with the code
update-mime-database /usr/share/mime

icons go in /usr/share/pixmaps/gnome-mime-<mime-type>

see attached example files
(tested on Puppy linux with Devx loaded)

AttachmentSize
Binary Data xmlNicons.tar.gz10.34 KB
Forums: 
rncbc's picture

that's an awesome idea! why didn't you came with that earlier? ;)

i'll have a look and see... btw, why the gnome- prefix?? don't you know that i ain't the least of the g(rr)thingies? :)

cheers

basically, I copied off Audacity trying to get mime-types to work in Puppy. But Puppy, being tight, got rid of update-mime-database and mime definitions (saving 2MB). I've made a work around, though. Used gn**e-... for icons as it work for Puppy, not tried without the prefix. ; -)

rncbc's picture

ok. i have looked into this and come back with my own stuff :)
see qtractor-mime-icons-1.tar.gz

  • Qtractor session (*.qtr *.qts):
    application/x-qtractor-session
  • Qtractor template (*.qtt):
    application/x-qtractor-template
  • Qtractor archive (*.qtz):
    application/x-qtractor-archive

eg. for local installation:

DATADIR=/usr/local/share
install -d -m 0755 $DATADIR/mime/packages
install -m 0644 mime/packages/qtractor.xml $DATADIR/share/mime/packages/qtractor.xml
install -d -m 0755 $DATADIR/icons/hicolor/32x32/mimetypes
install -m 0644 icons/hicolor/32x32/mimetypes/application-x-qtractor-*.png $DATADIR/icons/hicolor/32x32/mimetypes/
update-mime-database $DATADIR/mime

cheers

rncbc's picture

it is done.

svn trunk rev.2927+ (aka. qtractor 0.5.5.9+)

thanks again for the suggestion
cheers!

darkcity's picture

Nice work. Will update my package when I have time to work on the LV2 plugins, if anyone whats to try qtractor on Puppy see-

http://murga-linux.com/puppy/viewtopic.php?p=644763

; -)

Add new comment