给Thunar添加自定义上下文菜单
2011 五月 28
打开Thunar ,选择“ Edit ” -> “Confiure Custom Actions” ,
这里我给它添加了这个”解压到当前文件夹“ 的菜单:
命令那里填写的是:
1 | xarchiver -x %d %f |
File Pattern 那里填写文档后缀:
1 | *.tar.bz2;*.tbz2,*.zip,*.tar.gz,*.tgz,*.rar,*,7z |
xarchiver 是Xfce4 默认的压缩文档管理器。
1 2 3 4 5 6 | %f — The path to the first selected file. %F — The paths to all selected files. %d — Directory containing the file passed in %f. %D — Directories containing the files passed in %F. %n — The first selected file name (no path.) %N — the selected file names (without paths.) |
参考:
http://thunar.xfce.org/pwiki/documentation/custom_actions#examples
http://www.linux.com/learn/tutorials/440846:extend-xfces-thunar-file-manager-with-custom-actions





