I've tried
/opt/sublime_text/sublime_text admin:///etc/fstab
but it opens up a blank file called ~/admin
.Tried
pkexec /opt/sublime_text/sublime_text /etc/fstab
, it asks for my password, then nothing happens after I enter it./opt/sublime_text/sublime_text admin:///etc/fstab
but it opens up a blank file called ~/admin
.pkexec /opt/sublime_text/sublime_text /etc/fstab
, it asks for my password, then nothing happens after I enter it.export SUDO_EDITOR="/opt/sublime_text/sublime_text -w"
sudoedit /etc/fstab
export SUDO_EDITOR="/opt/sublime_text/sublime_text -w"