1) Создать текстовый файл /usr/share/polkit-1/actions/org.gnome.xed.policy (подробнее - Запуск привилегированных приложений с pkexec (PolicyKit))
2) Привести файл /usr/share/nemo/actions/open_xed_root.nemo_action к виду:
Код: Выделить всё
[Nemo Action]
Name=Open the file xed as a root
Name[ru]=Открыть файл в xed как root
Comment=Open "%f" using xed as a root
Comment[ru]=Открыть "%f" в xed как root
Exec=<open_xed_root.sh %F>
Selection=s
Mimetypes= text/plain;
Icon-Name=accessories-text-editor
Quote=single
Dependencies=xed;
Код: Выделить всё
#!/bin/bash
pkexec xed "$1"