Changes between Initial Version and Version 13 of Ticket #2965
- Timestamp:
- 10/09/20 07:04:51 (4 years ago)
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 10 10 Let's see the mc.ext e.g. for images: 11 11 12 --- 12 {{{ 13 13 type/^PBM 14 14 Include=image … … 36 36 Open=/usr/libexec/mc/ext.d/image.sh open ALL_FORMATS 37 37 View=%view{ascii} /usr/libexec/mc/ext.d/image.sh view ALL_FORMATS 38 --- 38 }}} 39 39 40 40 here we see we can simply share the common app thru include, no need for another image.sh. … … 42 42 Now what is in image.sh? 43 43 44 --- 44 {{{ 45 45 do_open_action() { 46 46 filetype=$1 … … 67 67 esac 68 68 } 69 --- 69 }}} 70 70 71 71 It 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.