SHARE
TWEET

Untitled

a guest Jul 17th, 2012 23 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!bin/bash
  2. PROCESS_PID=`pidof gnome-session`
  3. CURRENT_USER=`ps up $PROCESS_PID | awk '{if ($1 != "USER") { print $1 }}'`
  4. DBUS_SESSION_BUS_ADDRESS=`grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PROCESS_PID/environ | sed -e 's/DBUS_SESSION_BUS_ADDRESS=//'`
  5. export DBUS_SESSION_BUS_ADDRESS
  6.  
  7. gnome-screensaver-command -l
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top