Setting Up
-
2. Running Program
Hence to Run GUI App as another User on Linux
The General Command is:sudo pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY [MYPROGRAM]
Like:
sudo pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/local/bin/hardinfo
Contents