给Thunar添加自定义上下文菜单 » 荒野无灯weblog

Keep It Simple, Stupid.

荒野无灯weblog

给Thunar添加自定义上下文菜单

打开Thunar ,选择“ Edit ” -> “Confiure Custom Actions” ,
这里我给它添加了这个”解压到当前文件夹“ 的菜单:

命令那里填写的是:

xarchiver -x %d %f

File Pattern 那里填写文档后缀:

*.tar.bz2;*.tbz2,*.zip,*.tar.gz,*.tgz,*.rar,*,7z

xarchiver 是Xfce4 默认的压缩文档管理器。

%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

Tagged in :

All Comments (0)
Gravatar image
No Comments