changing mimetypes
  • Order of the Butterfly
    Order of the Butterfly
    amiga4001
    Posts: 444 from 2006/11/16
    From: The Netherlands
    When I want a picture displayed it doublesclick to showgirls browser.
    I am also able to menu to showgirls no browser and FXpaint and multiview.
    How can I change the doubleclick from showgirls browser too no browser or multiview?
    So set priority?
    I can see it is highlightened in the mimetypes window.
    But how too change?
    Powerbook 5,4 1.5GHz 1.5GB ram
  • »25.02.07 - 21:55
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    GK_LKA
    Posts: 481 from 2004/3/28
    From: Hungary
    You can edit your filetype in MOSSYS:Ambient/filetypes/image/jpeg, and swap the DoubleClick and one of the Menu options in the file with a simple text editor.
    [ GK / LKA Team ]
  • »25.02.07 - 22:29
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    And what about changing it with mime editor instead of hacking directly filetype descriptor? :)
  • »26.02.07 - 00:19
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    amiga4001
    Posts: 444 from 2006/11/16
    From: The Netherlands
    There is no file in morhphos:ambient/ called filetypes.
    How can I alter it in the mimeeditor?
    Is this the pref setting in Ambientsettings mimetypes??
    When I fiddle around too much there peg freezes.
    Please help
    Powerbook 5,4 1.5GHz 1.5GB ram
  • »26.02.07 - 06:27
    Profile
  • mk
  • Butterfly
    Butterfly
    mk
    Posts: 72 from 2004/5/24
    From: Germany Gera
    @amiga4001

    [filetype image/jpeg]

    > There is no file in morhphos:ambient/ called filetypes.

    - The Filetypes (Actions/Events) can be found in "SYS:Prefs/Ambient/Filetypes/".

    - The Filetypes descriptions can be found in "MOSSYS:Ambient/recognition.db". (images/jpeg exists also)
    Warning: Never modify recognition.db!
    (Descriptions can overwrite and also new create in/with the "SYS:Prefs/Ambient/Filetypes/", but not with the filetypeeditor. And /But this is very very rare necessary.)


    1.) There is one default Filetype for _all_ images as "images/default" in me Filetypes Packet. (You used it.)

    You can with the filetypeeditor here (DoubleClick in ambient-settings/mime on "images", not at subtypes) modify "Event Type(s)" for _all_ images.


    2.) For modify only Filetype "jpeg", you must make a Filetype "images/jpeg":

    a) Copy Filetype "image/default" and rename as "image/jpeg".

    b) You must also edit in this new Filetype the Line:

    "Type image/*"

    to

    "Type image/jpeg"

    c) Now you can modify here ("images/jpeg") only for jpeg the "Event Type(s)" with the filetypeeditor.


    See to modify "Event Type" also the Thread "New Ambient Version MimeTypes!!!"

    https://morph.zone/modules/newbb_plus/viewtopic.php?forum=9&topic_id=4288&order=0&start=83

    Posting 2007/1/28 9:21
    Point 2.) "To modify doubleclick action ..."


    (3. You can also create a "new" filetype (actions/events only) in filetypeeditor (if the description allready exists in recognition.db and is listed in filetypeeditor), but then you must also new create all actions/events for this filetype. But modify a similar type is easily than new create.)

    [ Edited by mk on 2007/2/26 9:14 ]
  • »26.02.07 - 06:29
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    For any existing type (from recognition.db or custom), there's no need to deal directly with filetype descriptors at all.

    So in the case of "image/jpeg", from a clean ambient install, you just need to edit image/jpeg node and add own actions to that mimetype. That will override default actions set by "image/*"


    @amiga4001
    how do you manage to freeze it?
  • »26.02.07 - 13:16
    Profile Visit Website