Skip to content

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

2011 五月 28
by 荒野无灯

打开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

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=4513

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS