【系統調校】讓 Lubuntu 中的 PCManFM 更好用

Tiat
Tiat
Sep 7, 2018 · 2 min read

Lubuntu 在我使用的系統裡算是老牌但很穩定好用,跟 Manjaro 並列目前最信任。Lubuntu 的字首 L 代表的是所使用的桌面環境 LXDE,這是台灣人洪任諭(PCMan)開發的。

不過 Lubuntu 雖然好用,卻有一點不方便,就是基於安全的理由,內建的檔案管理程式 Pcmanfm 不開放直接「以 root 開啟資料夾」、「以 root 編輯檔案」的選單,必須要開終端機用指令操作。雖然不是很難的動作,不過對像我這種懶人來說,能夠少一個動作就想少一個,能夠少開終端機打指令就想省下來。所以我找到了給 Pcmanfm 加上這功能的方法,這要感謝這位菲律賓網路工程師的無私貢獻

備忘紀錄,所以就把原文簡化成三個動作:
一、把com.ubuntu.pkexec.leafpad.policycom.ubuntu.pkexec.pcmanfm.policy下載下來,放到/usr/share/polkit-1/actions裡面。

二、把leafpad-pkexecpcmanfm-pkexec下載下來,放到/usr/bin裡面。

三、把edit as root.desktopopen folder as root.desktop下載下來,放到~/.local/share/file-manager/actions裡面。

重開機,搞定。前後的改變看圖可知。

*使用系統:Lubuntu 18.04

Tiat

Written by

關於這個,我有意見...

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade