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

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 thoughts on “Fix for Flash is not recognizing mouse clicks

  1. 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. 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]

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

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

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

  6. 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]

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

  8. 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]

  9. 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]

  10. 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]

  11. 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]

  12. 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 comment

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