Root 权限打开 nautilus

出自Guoshuang Wiki

跳转到: 导航, 搜索

类似 linuxmint 右键菜单中的 open as root

1.Open a new file to edit in the relevant directory:

gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ Administrator

2.Insert the following lines into the new file:

for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo "gnome-open $uri" &
done

3.Save the edited file (an example)

4.Make the edited file executable:

chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ Administrator

5.You can now open files as root by right clicking on the file and selecting Scripts->Open as Administrator

个人工具
留言