Nautilus-actions

What is it ?
Nautilus-Actions is a Nautilus extension whose principal function is to allow the user to add arbitrary actions to the file manager context menus. These actions may be organized in menus and submenus, exported and shared with other desktop environments.

 nautilus-actions

* 設定工具
nautilus-actions-config-tool
或者是Menu -> 控制台 -> Nautilus-Actions Configuration

-Action標籤頁:
這裡比較重要的是設定
  • context label (設定選單名稱)
  • Icon 可設可不設, 若沒有設定的話會用gtk-execute當預設的icon
  • Tooltip 設定提示說明

-Command標籤頁:
  • Path: 設定執行檔路徑
  • Parameters: 設定執行檔參數
  • Working directory: 設定工作目錄 
需要把結果輸出的時候,卻因為在command path不能這樣寫md5sum .. | zenity ....
所以只好用變通的方式,透過bash -c 來執行指令
  • Path: bash
  • Parameters: -c "md5sum %F | zenity --text-info --title='MD5 digest for selected files' --width=640"


-Basenmae標籤頁:
設定匹配的檔名
  • *.* 匹配 abc.def
  • * 匹配 abc(沒有副檔名)

-Mimetype標籤頁:
設定匹配的檔案MIME類型
  • */* for all MIME types
  • image/* 匹配所有圖檔

-Folder標籤頁
設定執行的目錄
  • * for any directory

-Schemes標籤頁
  • file 套用在檔案上
  • folder 套用在目錄上

-Capabilities標籤頁
設定匹配檔案的權限

-Enviroment標籤頁
這邊最重要的是設定是設定count,當選取的item數目到達指定的條件的時候就會出現選單

-Properties標籤頁
這邊可以設定Enable/Disable Action

Reference:

沒有留言:

張貼留言