åã« ð§ ãã¡ã€ã«ãããŒãžã£ã§ç¡å§çž® ZIP ãäœæãã ãªããŠã®ãæžãããã©ãããããã¹ã¯ããããšã³ããªã ãã§ã§ããªãã®ïŒãšæã£ãã®ã§è²ã æ€èšŒãã€ã€ãã£ãŠã¿ãã
Terminal=1
ã Terminal=true
ã§åäœç¢ºèªããå Žåã¯åŠçãå®äºãããšããã«ã¿ãŒããã«ãçµäºããŠããŸãã®ã§ ; sleep 10
ã ; read f
ã§åŸ
æ©ããããã| logger
ãªã©ã§ã·ã¹ãã ãã°ã«èšé²ã㊠tail -F /var/log/syslog
ã§ç£èŠããŠããã°ããã
ãŸããExec è¡ã«ã¯ ;
ã |
ã&&
ã||
ãªã©ãæžããŠãè¯ãã
Exec=echo %f; false || sleep 3
%f
ãš %F
ã®åäœã®éãã¯äžåºŠã«ããã€ã®ãã¡ã€ã«ãåŠçããããšããç¹ã
%f
ã®å Žåã¯ãã¡ã€ã«æ°å Exec è¡ãå®è¡ããããfor
ã«äŒŒãŠãããåã®ã³ãã³ãã®çµäºãåŸ
ããã«ã»ãŒåæã«å®è¡ããããããã¡ã€ã«æ°ãå€ãå Žåã¯æ³šæãå¿
èŠã
Exec=echo %f
以äžã®å Žåã¯å
šãŠã®ãã¡ã€ã«ãã¹ã echo
ã«æž¡ãããã®ã§1åããå®è¡ãããªãã
Exec=echo %F
%f
ã %F
ãçç¥ããå Žå㯠Exec è¡ã®æåŸã« %f
ãæ¿å
¥ãããšããšåãåäœãè¡ãããã以äžã®å Žåãæåã® echo
ã¯æ¹è¡ãåºåããã®ã¿ã§ãã¡ã€ã«ãã¹ã¯æ¬¡ã® echo
ã«æž¡ããããã® Exec ããã¡ã€ã«æ°åè¡ãããã
# Same as # Exec=echo; echo %f Exec=echo; echo
%f
ã¯ã·ã§ã«äžã§èšãã°ã¯ãªãŒããããç¶æ
ã§å±éãããã®ã§ã¯ã©ãŒãã§æ¬ãå¿
èŠã¯ãªããPath=
ããŒã«ããæå®ãç¡ãå Žåã%f
ãªããã¡ã€ã«æ¯ã«èŠªãã£ã¬ã¯ããªãã«ã¬ã³ããã£ã¬ã¯ããªã«ãªãã%F
ãªãæåã«éžæãããã¡ã€ã«ã®èŠªãã£ã¬ã¯ãªãã«ã¬ã³ããã£ã¬ã¯ããªã«ãªãããã ãããã¡ã€ã«ãã©ãŠã¶ã«ãã£ãŠç°ãªããããããªãã®ã§ pwd
ã§äºåã«ç¢ºèªããæ¹ããããããããªãã
以äžã¯åããã¹ã瀺ãã¯ãã
Exec=pwd; cd "$(dirname %f)" && pwd; sleep 3
Exec ã®æåã®ã³ãã³ãã§ã¯ä»£å
¥åŒã¯äœ¿ããªãïŒenv
ã³ãã³ããããã°äœ¿ããïŒãã2ã€ç®ä»¥éã®ã³ãã³ãã§ã¯ä»£å
¥åŒã䜿ãããããããªã®ã§1ã€ç®ã®ã³ãã³ãã« :
ãšã set -x
ãšãé©åœãªãã®ã眮ããŠããã ãã§ããã£ãœãã
Exec=:; foo=%f; echo $foo; sleep 3
ãšããããã§ãã°ãåãã€ã€ç¡å§çž® ZIP ãé£ç¶ã§äœæãããã¹ã¯ããããšã³ããªã¯ãããªã£ãã${f%%/*}
ã¯ãã¹ã¯ããããšã³ããªã®åŠçã«ãã£ãŠ ${f%/*}
ãšãªãããã·ã§ã«ã¹ã¯ãªããã«æžããæãšæå³ãç°ãªãã
Exec=set -ex -- %F; for f; do test -d "${f}" || continue; cd "${f%%/*}"; zip -0mrTX -x"*".desktop "${f}".zip "${f##*/}"; done 2>&1 | logger -t zip
ã»ãã³ãã³ã䜿ããã«æžããªãããã
set -ex -- %F for f do test -d "${f}" || continue cd "${f%%/*}" zip -0mrTX -x"*".desktop "${f}".zip "${f##*/}" done 2>&1 | logger -t zip
æ¹è¡ã¯æžããªãã£ãœããâŠãRuby ã§æžããã»ããã¯ãªãŒãåŠçå°ãªããŠæžãããªã