Fixed LD_PRELOAD bug by forcing the global symbol table load.
[python-purple] / nullclient.py
index 0438951..2dbbda0 100644 (file)
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-import ecore
 import getpass
+import sys, dl
+import time
+
+sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL)
+
 import purple
-import sys
 
 # The information below is needed by libpurple
 __NAME__ = "nullclient"
@@ -60,5 +63,6 @@ if __name__ == '__main__':
     # Enable account (connects automatically)
     account.set_enabled(True)
 
-    # Initializes ecore mainloop
-    ecore.main_loop_begin()
+    while True:
+        core.iterate_main_loop()
+        time.sleep(0.01)