diff -u pidgin-2.5.5/debian/changelog pidgin-2.5.5/debian/changelog --- pidgin-2.5.5/debian/changelog +++ pidgin-2.5.5/debian/changelog @@ -1,3 +1,14 @@ +pidgin (1:2.5.5-1ubuntu6) jaunty; urgency=low + + * debian/pidgin-wrapper.sh + - Wrapper script for launching pidgin if it isn't running yet or + raising the buddy list window if it already is running (LP: #354298) + * debian/rules + - Move /usr/bin/pidgin to /usr/bin/pidgin.real and install the wrapper + script at /usr/bin/pidgin + + -- Ken VanDine Thu, 02 Apr 2009 14:58:23 -0400 + pidgin (1:2.5.5-1ubuntu5) jaunty; urgency=low * debian/patches/61_crash_on_close_349009.patch diff -u pidgin-2.5.5/debian/rules pidgin-2.5.5/debian/rules --- pidgin-2.5.5/debian/rules +++ pidgin-2.5.5/debian/rules @@ -37,6 +37,9 @@ rm -f debian/tmp/usr/lib/pidgin/relnot.so # release notification plugin rm -f debian/tmp/usr/bin/nullclient # examples rm -f debian/tmp/usr/bin/purple-client-example # examples + mv debian/tmp/usr/bin/pidgin debian/tmp/usr/bin/pidgin.real + cp debian/pidgin-wrapper.sh debian/tmp/usr/bin/pidgin + chmod 755 debian/tmp/usr/bin/pidgin find debian/tmp/usr/lib -name '*.la' -print0 | xargs -0 rm # Include author lists in copyright file sed -e '/@PIDGIN_COPYRIGHT@/r COPYRIGHT' \ diff -u pidgin-2.5.5/debian/pidgin.install pidgin-2.5.5/debian/pidgin.install --- pidgin-2.5.5/debian/pidgin.install +++ pidgin-2.5.5/debian/pidgin.install @@ -1,5 +1,6 @@ debian/tmp/etc/gconf debian/tmp/usr/bin/pidgin +debian/tmp/usr/bin/pidgin.real debian/tmp/usr/lib/perl5/Pidgin.pm debian/tmp/usr/lib/perl5/auto/Pidgin debian/tmp/usr/lib/pidgin only in patch2: unchanged: --- pidgin-2.5.5.orig/debian/pidgin-wrapper.sh +++ pidgin-2.5.5/debian/pidgin-wrapper.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# +# Script to check if pidgin is already running, and if so raise the buddy list +# window instead of exiting. Any arguments passed will cause the script to +# skip the check and just pass them on to pidgin + + +if /usr/bin/pgrep -u $USER pidgin.real > /dev/null && [ $# -eq 0 ]; +then + /usr/bin/dbus-send --print-reply --session \ + --dest="im.pidgin.purple.PurpleService" \ + /im/pidgin/purple/PurpleObject \ + im.pidgin.purple.PurpleInterface.PurpleBlistSetVisible int32:1 > /dev/null +else + /usr/bin/pidgin.real $@ & +fi