Thursday, October 13, 2011

Firefox always hang/stuck after close flash video ( youtube ) in ubuntu

In fact the problem is caused by the flashplugin in firefox that is not working properly.

to solve the problem, you can just kill the flashplugin process, the firefox will work fine again.


if  you to automatically kill the flashplugin process copy my script below and save as killflash.pl

#!/usr/bin/perl
$findpid = `ps aux | grep -i flash`;
@flashpid = split(/ +/,$findpid);
for $pid (@flashpid)
{

     $killpid[$i] = $pid;
     $i++;
}
system("kill $killpid[1]");


- then copy the killflash.pl to /bin
- after that make it executable by
#chmod 777 /bin/killflash.pl
- when the firefox hang, you just type killflash.pl then the firefox will be back to normal
#killflash


No comments:

Post a Comment