Created
January 13, 2019 16:32
-
-
Save ikbelkirasan/5547b339dd90663e86c91b4efcdfb2f5 to your computer and use it in GitHub Desktop.
Create gksudo in Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p ~/.local/bin | |
echo -e '#!/bin/sh\n/usr/bin/pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY HOME=$HOME "$@"' > ~/.local/bin/gksudo | |
chmod u+x ~/.local/bin/gksudo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credits:
https://forums.linuxmint.com/viewtopic.php?t=283225
https://forums.linuxmint.com/memberlist.php?mode=viewprofile&u=235149&sid=a88f94318fb4e09bdf16af3dc16bc7f0