Changes between Initial Version and Version 13 of Ticket #2965


Ignore:
Timestamp:
10/09/20 07:04:51 (4 years ago)
Author:
andrew_b
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2965

    • Property Status changed from new to closed
    • Property Cc gotar@… added
    • Property Component changed from mc-config-ini to mc-core
    • Property Milestone changed from Future Releases to
    • Property Resolution changed from to wontfix
  • Ticket #2965 – Description

    initial v13  
    1010Let's see the mc.ext e.g. for images: 
    1111 
    12 --- 
     12{{{ 
    1313type/^PBM 
    1414        Include=image 
     
    3636        Open=/usr/libexec/mc/ext.d/image.sh open ALL_FORMATS 
    3737        View=%view{ascii} /usr/libexec/mc/ext.d/image.sh view ALL_FORMATS 
    38 --- 
     38}}} 
    3939 
    4040here we see we can simply share the common app thru include, no need for another image.sh. 
     
    4242Now what is in image.sh? 
    4343 
    44 --- 
     44{{{ 
    4545do_open_action() { 
    4646    filetype=$1 
     
    6767    esac 
    6868} 
    69 --- 
     69}}} 
    7070 
    7171It just acts on the same kind of file type but thru a shell case construction and hardcodes the apps that should be used. If xdg-open is used, then it starts another shell script, that based on the file type (again) uses the default app from either system wide unconfigurable setting or local user definition.