Skip to content

Instantly share code, notes, and snippets.

@lcuevastodoit
Created November 13, 2022 04:57
Show Gist options
  • Save lcuevastodoit/f27eeadfd8bf368775267ccc15db1441 to your computer and use it in GitHub Desktop.
Save lcuevastodoit/f27eeadfd8bf368775267ccc15db1441 to your computer and use it in GitHub Desktop.
Ubuntu Password Protect an App
# Edit the .desktop
# replace Exec=/usr/bin/myapp
# with Exec=sh -c "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/myapp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment