Not scripting related however:
I am using x2go to access my linux (ubuntu) system remotely, using the kdeWM. If I use firefox though, the moment I right click anywhere on a web page (say to open a link in a new tab or window), firefox freezes.
Turns out it's an issue with the pulse audio daemon, and at least if you're using x2go like me, it's easy to fix once you know what the problem is.
When disconnected from your linux server, in the x2go client, go into the session preferences, click on the Media tab -> and uncheck "Enable sound support". Selecting esd might also fix it, but I haven't tried that.
Many thanks to the comment by oms-ubun at: https://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+bug/528798 for directing me to the issue.