daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Jul 17th, 2012 18 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
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top