There are various tools for various desktops that aim to run a graphical application as root. gksudo
, kdesudo
, empower
, etc...
But what if I'm writing a script that could be used on any Linux desktop? Is there an xdg-sudo
of some sort..? A standard for getting sudo access in a desktop environment?
pkexec filelight /
makes FileLight die due toDISPLAY
being unset. I had to explicitly launch it aspkexec env DISPLAY=$DISPLAY filelight
, in which case it ran successfully. – Ruslan Mar 20 '20 at 19:42