gksudo
seeming to be somehow depreciated since 2017 as I see on the french forum documentation, is there an environment and version agnostic best practice allowing to use gedit
as root?
(excluding vim
, nano
or tee
: the use case being a GUI amendment of sources.list
for instance)
My researchs brought me these proposals, are they equivalent or to be rejected :
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit
gedit admin:///path/to/document
sudo -i gedit
sudo -H gedit
Any other ?
nautilus-admin
for file operations assudo
and to usegedit
as sudo: https://askubuntu.com/questions/156998/how-do-i-start-nautilus-as-root/868882#868882 – WinEunuuchs2Unix Feb 25 '18 at 17:55