Skip to content

Instantly share code, notes, and snippets.

@minlexx
Created January 20, 2019 20:34
Show Gist options
  • Save minlexx/e6d7d381a7e564ed48974cb496646a7e to your computer and use it in GitHub Desktop.
Save minlexx/e6d7d381a7e564ed48974cb496646a7e to your computer and use it in GitHub Desktop.
Unlock user session using ConsoleKit
#!/bin/bash
#SESSION=$1
SESSION=Session1
dbus-send --system --dest=org.freedesktop.ConsoleKit \
--print-reply \
/org/freedesktop/ConsoleKit/$SESSION \
org.freedesktop.ConsoleKit.Session.Unlock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment