Fix for Flash is not recognizing mouse clicks

This is work around for Bug#410407

Procedure to follow

Method 1

First you need to edit /usr/lib/nspluginwrapper/i386/linux/npviewer file from terminal

gksudo gedit /usr/lib/nspluginwrapper/i386/linux/npviewer

Add the following line before the last line of text


Save and exit the file

Note:- when you try to upgrading your system next time you need to revert back the changes

Method 2

Note:-- Using this script might break your system

Create a file called and script credit goes here


Add the following script

# Script  created by
# Romeo-Adrian Cioaba [email protected]
# Jaša Bartelj [email protected]

echo "Stopping any Firefox that might be running."
sudo killall -9 firefox

echo "Removing any other flash plugin previously installed."
sudo apt-get remove -y --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
sudo rm -f /usr/lib/mozilla/plugins/*flash*
sudo rm -f ~/.mozilla/plugins/*flash*
sudo rm -f /usr/lib/firefox/plugins/*flash*
sudo rm -f /usr/lib/firefox-addons/plugins/*flash*
sudo rm -rfd /usr/lib/nspluginwrapper

echo "Installing Flash Player 10."
sudo cd /tmp
sudo wget
sudo wget `cat flashplayer10.html | egrep -o "http:.*"|cut -d\" -f1|grep`
ARCHIVE=`ls libflashplayer-*`
echo "Version is $ARCHIVE."
sudo tar zxvf $ARCHIVE
sudo cp /usr/lib/mozilla/plugins/
echo "Linking the libraries so Firefox and apps built on XULRunner can find it."
sudo ln -sf /usr/lib/mozilla/plugins/ /usr/lib/firefox-addons/plugins/
sudo ln -sf /usr/lib/mozilla/plugins/  /usr/lib/xulrunner-addons/plugins/
# now doing some cleaning up:
sudo rm -rf flashplayer10.html
sudo rm -rf
sudo rm -rf $ARCHIVE

Save and exit the file

Now you need to change the permissions on the script

sudo chmod 755

Run the script with the following command


Sponsored Link

You may also like...

24 Responses

  1. Paul B says:

    Is this x86 or 64 or both?


  2. admin says:

    I have tried under x86 it worked and i didn’t try on 64

  3. Fr33d0m says:

    I’m using the 64 bit versin and I don’t have a /usr/lib/nspluginwrapper/i386/linux/npviewer file.

  4. Jan K. says:

    I have now implemented the script into file and it works flawlessly. Simple & easy short tutorial that fixed the bug with flash.

    Ubuntu 9.10, Shiretoko 3.5.5, x64 works OK.

    (if there will appear some errors, I will let you know)

    Thanks Ubuntu Geek for the nice amount of fixes to the great Ubuntu 9.10.

  5. Martyn Parker says:

    I had this working under Wubi install but under standard install there is no i386 directory or npviewer file.

    Unistalled Wubi version and fresh installed purely because of this fix.

    Fix would be appreciated!

  6. Ben says:

    Thanks for this.

    I still have an issue where npviewer.bin dies and I have to kill and restart firefox to enjoy youtubage sometimes. does anyone know how to resolve this bad boy?

  7. Neojames says:

    The npviewer file is empty with me

  8. seb says:

    It worked on x64, thanks!

  9. BMJ says:

    For me didnt work, dont have the folder:

  10. Dangger says:

    Not working for me, npviewer is empty 🙁

  11. ricardo says:

    method 1 worked great for me!
    i’m using Ubuntu 9.10 64 bits

    by the way, I didnt try method 2 but I tried downloading the unstable version of flasplayer plugin for linux 64 bits from and my browser crashed when I openes gmail or other pages with flash movies… I think method 2 is just the same


  12. ricardo says:

    this is the contents of my npviewer file after I implemented method 1

    . /usr/lib/nspluginwrapper/noarch/npviewer

  13. nightman says:

    It worked, thanks!

  14. rJack says:

    i just used the flash 64bit version from the ppa here easy fix for 64-bit pc’s. works perfectly now =)

  15. Edson says:

    after execution of the script, flash do recognize mouse clicks, however, youtube videoa were gone. The flash player does not appear to work now, all other flash apps are working. please help

  16. Rob says:

    Thanks, method 1 works great! However I also tried method 2 and that ended up making Firefox crash every time Flash loaded!

  17. jason says:

    I tried method 1, and it did not work. I wanna try method 2, but I am afraid it will break my system. What exactly is the risk of method 2. To me it just looks like it removes a buncha plugins downloads flash player, and makes some symbolic links. Yet I am kind of a beginner so I am not sure and dont wanna risk anything.

  18. grafab says:

    thx, worked after rebooting system!

  19. Mark says:

    Used method 1. Running Ubuntu 9.10 64-bit. Using 32-bit flash with Chromium. Worked great! This has been bugging me for so long. Thanks a ton!

  20. Jezz says:

    That is Fantastic. THANKYOU. This has been pissing me off for time! Method 1 is the 1!

  21. chance says:

    cant believe it thanks so much i have tried everything been looking and trying for 2 days was about to install a different linux THANKSABUNCH!!!!!!!!!!!!

  22. septer says:

    Used method 1 on Ubuntu 10.04 64-bit, using 64bit flash. Works perfectly

  23. The Doctor says:

    Using Method 1, but a little quicker technique. Execute fr Terminal:

    sudo echo “export GDK_NATIVE_WINDOWS=1” >> /usr/lib/nspluginwrapper/i386/linux/npviewer

    Method 1 works on 10.04/amd64 (64-bit), with “flashplugin-nonfree” fr Synaptic Package Manager already installed.

  24. Samuel says:

    I tried to do this: Using Method 1, but a little quicker technique. Execute fr Terminal:

    sudo echo “export GDK_NATIVE_WINDOWS=1? >> /usr/lib/nspluginwrapper/i386/linux/npviewer

    Method 1 works on 10.04/amd64 (64-bit), with “flashplugin-nonfree” fr Synaptic Package Manager already installed.

    But I get message that I dont have permission to do that:(

    T. New To Linux

Leave a Reply

Your email address will not be published. Required fields are marked *