-------
20261026 0745 依照 AI 的建議指令,順利成功。
----------
前言:請見另一篇。阿原的電腦會開數個使用者(一個出問題,登入其他帳號,也許還有救),
搜尋:使用 caja-action-configuration-tool 設定 可以用在每個 user
AI:
要讓使用 caja-action-configuration-tool(Caja Actions)建立的右鍵選單設定套用到系統中的每一個使用者,核心方法是將產生的 .desktop 設定檔移至系統全域的目錄中。
以下是具體的實作步驟:
1. 導出或尋找設定檔
當您在圖形介面(
caja-action-configuration-tool)中建立好動作後,這些設定預設會儲存在目前使用者的個人目錄中:- 路徑:
~/.local/share/file-manager/actions/
2. 將設定檔移至全域目錄
若要讓所有使用者都能使用,必須將這些
.desktop 檔案複製到系統全域的 Caja Actions 目錄。- 打開終端機(Terminal)。
- 建立全域的動作目錄(如果不存在的話):bash
sudo mkdir -p /usr/share/file-manager/actions/Use code with caution. - 將您個人目錄下的所有設定檔複製過去:bash
sudo cp ~/.local/share/file-manager/actions/*.desktop /usr/share/file-manager/actions/Use code with caution.
3. 設定正確的檔案權限
為了確保其他使用者有權限讀取這些設定,請調整該目錄與檔案的權限:
bash
sudo chmod 644 /usr/share/file-manager/actions/*.desktop
sudo chmod 755 /usr/share/file-manager/actions/
Use code with caution.
4. 驗證與重啟
完成上述步驟後,請讓其他使用者登入,或者在其他使用者的帳號下重啟 Caja 檔案管理器來載入新選單:
bash
caja -q
Use code with caution.
