[Pidgin] #1997: Feature Suggestion: Go away on screen saver away

Pidgin trac at pidgin.im
Tue Nov 16 12:12:33 EST 2010


#1997: Feature Suggestion: Go away on screen saver away
----------------------------------------+-----------------------------------
 Reporter:  frimjon                     |        Owner:              
     Type:  plugin request              |       Status:  closed      
Milestone:  Plugin Suggested            |    Component:  pidgin (gtk)
  Version:  2.0.2                       |   Resolution:  fixed       
 Keywords:  away screensaver auto lock  |  
----------------------------------------+-----------------------------------

Comment(by gebeleysis):

 In case anyone wonders, it is possible to have away on lock on Mac
 OS.[[BR]]
 Here's how I did it:[[BR]]
 1. Install MacPorts: http://www.macports.org/ [[BR]]
 2. Install Pidgin from MacPorts. Something like:[[BR]]
 {{{
 $ sudo port install pidgin
 }}}
 It will take a lot of time since it compiles everything.[[BR]]
 3. Install Python2.7:[[BR]]
 {{{
 $ sudo port install python27
 }}}
 The native Python is 2.6, and doesn't have support for dbus.[[BR]]
 4. Install ScriptSaver:
 http://swannman.wordpress.com/projects/scriptsaver/ [[BR]]
 It's a screensaver that lets us run a script before starting the
 screensaver and after screensaver exits[[BR]]
 5. Download the pidgin_go_away.py script to "~/Documents". Or wherever,
 but will have to modify the following lines.[[BR]]
 6. Create in Apple Script Editor a script named "go_away" containing the
 following:[[BR]]
 {{{
 do shell script "cd ~/Documents/; /opt/local/bin/python2.7
 pidgin_go_away.py -a"
 }}}
 7. Create in Apple Script Editor a script named "come_back" containing the
 following:[[BR]]
 {{{
 do shell script "cd ~/Documents/; /opt/local/bin/python2.7
 pidgin_go_away.py -b"
 }}}
 8. Configure the ScriptSaver so as to run the go_away script upon starting
 screensaver, come_back script upon returning.[[BR]]
 [[BR]]
 The pidgin_go_away.py script draws heavily from costela's away-on-lock and
 pidgin_statu.py ( http://www.miljan.org/main/2008/03/09/setting-pidgin-
 status-with-python-or-how-to-waste-perfectly-good-saturday/ ).[[BR]]
 I'm very new to this tracker and to Python also. Sorry. Also I know I used
 absolute paths and this is BAD, but it's a custom solution for a custom
 system and it works. I hope this this is still clear enough to be useful
 and saves someone 4-8 hours.[[BR]]
 Cheers.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/1997#comment:14>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list