November 3, 2009 · General · Email This Post

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

export GDK_NATIVE_WINDOWS=1

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 flashclickfix.sh and script credit goes here

gedit flashclickfix.sh

Add the following script

#!/bin/bash
# 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 http://labs.adobe.com/downloads/flashplayer10.html
sudo wget `cat flashplayer10.html | egrep -o "http:.*"|cut -d\" -f1|grep linux-x86_64.so.tar.gz`
ARCHIVE=`ls libflashplayer-*.linux-x86_64.so.tar.gz`
echo "Version is $ARCHIVE."
sudo tar zxvf $ARCHIVE
sudo cp libflashplayer.so /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/libflashplayer.so /usr/lib/firefox-addons/plugins/
sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so  /usr/lib/xulrunner-addons/plugins/
# now doing some cleaning up:
sudo rm -rf flashplayer10.html
sudo rm -rf libflashplayer.so
sudo rm -rf $ARCHIVE

Save and exit the file

Now you need to change the permissions on the script

sudo chmod 755 flashclickfix.sh

Run the script with the following command

sh flashclickfix.sh

Sponsored Link

Incoming search terms:

Related posts

24 Comments to “Fix for Flash is not recognizing mouse clicks”

  1. Paul B says:

    Thanks,
    Is this x86 or 64 or both?

    Cheers
    Paul

    [Reply]

    admin Reply:

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

    [Reply]

  2. Fr33d0m says:

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

    [Reply]

  3. 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.

    [Reply]

  4. 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!

    [Reply]

  5. 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?

    [Reply]

  6. Neojames says:

    The npviewer file is empty with me

    [Reply]

  7. seb says:

    It worked on x64, thanks!

    [Reply]

  8. BMJ says:

    For me didnt work, dont have the folder:
    ../i386/linux/npviewer

    [Reply]

  9. Dangger says:

    Not working for me, npviewer is empty :(

    [Reply]

  10. 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 adobe.com and my browser crashed when I openes gmail or other pages with flash movies… I think method 2 is just the same

    regards

    [Reply]

  11. ricardo says:

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

    #!/bin/sh
    TARGET_OS=linux
    TARGET_ARCH=i386
    export GDK_NATIVE_WINDOWS=1
    . /usr/lib/nspluginwrapper/noarch/npviewer

    [Reply]

  12. nightman says:

    It worked, thanks!

    [Reply]

  13. rJack says:

    i just used the flash 64bit version from the ppa here https://launchpad.net/~sevenmachines/+archive/flash easy fix for 64-bit pc’s. works perfectly now =)

    [Reply]

  14. 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

    [Reply]

  15. Rob says:

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

    [Reply]

  16. 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.

    [Reply]

  17. grafab says:

    thx, worked after rebooting system!

    [Reply]

  18. 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!

    [Reply]

  19. Jezz says:

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

    [Reply]

  20. 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!!!!!!!!!!!!

    [Reply]

  21. septer says:

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

    [Reply]

  22. 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.

    [Reply]

  23. 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

    [Reply]

Leave a Reply