file/mime types?

Forums

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

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)

Permalink

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

Permalink

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. ; -)

Permalink

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

Add new comment

The content of this field is kept private and will not be shown publicly.

Markdown

  • Parses markdown and converts it to HTML.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <b> <i> <pre> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
File attachments
Unlimited number of files can be uploaded to this field.
2 MB limit.
Allowed types: jpg jpeg gif png txt doc docx xls xlsx pdf ppt pps odt ods odp zip gz bz2 xz patch diff wav ogg flac ogv mp4 qtz.