Skip to content

Instantly share code, notes, and snippets.

@warmonkey
Last active May 25, 2023 08:47
Show Gist options
  • Save warmonkey/79f6bf40e4442f316f8dfad5ad00f0c7 to your computer and use it in GitHub Desktop.
Save warmonkey/79f6bf40e4442f316f8dfad5ad00f0c7 to your computer and use it in GitHub Desktop.
mysudo - GUI prompt to start a GUI application as root

Add this line to ~/.bashrc
alias mysudo='pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment