Thunar|Thunar 右键菜单等自定义

Thunar 右键菜单等自定义
可以使用图形界面或者直接编辑配置文件,二者是等价的。
图形界面:
Thunar|Thunar 右键菜单等自定义
文章图片

以给“zip,rar,7z”等文件添加“在此位置使用unar解压缩”的右键菜单为例:(unar可以很好地处理编码问题,但没有图形界面)

  1. 新建一个选项
    Thunar|Thunar 右键菜单等自定义
    文章图片
  2. 编辑启动命令
    Thunar|Thunar 右键菜单等自定义
    文章图片
  3. 编辑触发条件
    Thunar|Thunar 右键菜单等自定义
    文章图片
  4. 确定即OK
效果测试:
Thunar|Thunar 右键菜单等自定义
文章图片

Thunar|Thunar 右键菜单等自定义
文章图片

直接编辑配置文件:
$ cat ~/.config/Thunar/uca.xml
utilities-terminal 在此打开终端 1538777169027791-1 exo-open --working-directory %f --launch TerminalEmulator 自定义动作示例* 在此打开terminator 1540063484936906-1 terminator --working-directory=%f 在此打开terminator* 在此以root打开thunar 1539114419517939-1 pkexec thunar %f 在此以root打开thunar*

上述内容中 一行不是必须的, 一行是自动生成的。
更丰富的功能和配置选项:
https://docs.xfce.org/xfce/thunar/custom-actions
【Thunar|Thunar 右键菜单等自定义】转载于:https://www.cnblogs.com/dylanchu/p/9781463.html

    推荐阅读