Enable / disable accounts from command line

Tres Finocchiaro tres.finocchiaro at gmail.com
Wed Aug 21 15:42:28 EDT 2013


Divan,

I'm not aware of a way to do what you're requesting via Pidgin.

Here's a small script I created to disable a pidgin account programatically.

It only works on Windows and can must run while the user is signed out of
the application.

It iterates through the accounts.xml DOM and sets the "auto-login"
parameter to "0" or "1" depending.

http://jsfiddle.net/QDj9t/1/

Please take caution before running. To be safe, it does create one backup
of your accounts.xml called accounts.xml.bak before saving changes.

-Tres


On Wed, Aug 21, 2013 at 11:25 AM, Divan Santana <divan at s-tainment.co.za>wrote:

> Hi All,
>
> Firstly I must say pidgin is really great software!
>
> I was just wondering if there is a way to enable / disable accounts from
> command line?
>
> I want to try put in a script that runs different actions depending on
> location (home or work) etc.
>
> Greetings,
> Divan
>
> _______________________________________________
> Support at pidgin.im mailing list
> Want to unsubscribe?  Use this link:
> http://pidgin.im/cgi-bin/mailman/listinfo/support
>



-- 
- Tres.Finocchiaro at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/support/attachments/20130821/c03b6f65/attachment.html>


More information about the Support mailing list