Skip to content

Instantly share code, notes, and snippets.

@lduboeuf
Last active June 2, 2022 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lduboeuf/90f0f00a633555acf2f5126a55303546 to your computer and use it in GitHub Desktop.
Save lduboeuf/90f0f00a633555acf2f5126a55303546 to your computer and use it in GitHub Desktop.
Get/Set Account property via dbus
#SET
dbus-send --system --print-reply --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User`id -u` org.freedesktop.DBus.Properties.Set string:'com.ubuntu.AccountsService.SecurityPrivacy' string:PinCodePromptManager variant:string:ClockPinPrompt
#GET
dbus-send --system --print-reply --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User`id -u` org.freedesktop.DBus.Properties.Get string:'com.ubuntu.AccountsService.SecurityPrivacy' string:'PinCodePromptManager'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment