Saturday, November 7, 2009

I Cannot Click On Flash In Ubuntu : Solved

If you're experiencing the current annoying bug with Adobe Flash not registering mouse clicks (e.g. on YouTube, etc) then you'll be pleased to hear that there is a relatively easy fix (for now).



I must thank MrPantucci for making me aware of this. The solution comes from the official bug report for this issue.

Ready?
  • Hit ALT+F2 and enter
  • gksudo gedit /usr/lib/nspluginwrapper/i386/linux/npviewer
  • add the following line BEFORE the last line of text
  • export GDK_NATIVE_WINDOWS=1
  • Save.
  • Restart any applications using flash
Originally Posted at OMG Uuntu

45 comments:

  1. it doesn't work, the gedit opened an empty file, there not text there.

    anyway after i paste
    "export GDK_NATIVE_WINDOWS=1"

    and click save

    this message appeared.

    "Could not find the file /usr/lib/nspluginwrapper/i386/linux/npviewer."

    please help...
    strange thing is, flash always seem to work in firefox, but not in chrome. why is this?

    ReplyDelete
  2. hey try just running it from the terminal...

    sudo nano /usr/lib/nspluginwrapper/i386/linux/npviewer

    this is what mine looks like (works GREAT)

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

    ReplyDelete
  3. R@YMOŊÐ, the path is different in 64 bit ubuntu. I got that too - its what happens when you try to edit a file that doesn't exist (yet).

    Try instead sudo gedit /usr/lib64/nspluginwrapper/i386/linux/npviewer.

    ReplyDelete
  4. wow, thanks for the quick responce :-)

    Haze: after i type that in the terminal, it kindda hang. some weird symbols came out and it stop responding. I can still type stuff in the terminal but nothing happens

    Chris: i installed 32bit ubuntu 9.10. but to be sure i went to check. in "system monitor", under the system tab, it says my system is running Linux Mint 8 helena. I feel strange, is it because i installed the mint menu? is this why the sudo stuff above dont work?

    ReplyDelete
  5. Thanks, it also works on Kubuntu x64

    ReplyDelete
  6. I'm also on 32-bit 9.10 and that file doesn't exist for me either.

    ReplyDelete
  7. Works awesome on ubuntu 9.10 64 bit edition. Now i can play games that require clicks and watch youtube videos

    ReplyDelete
  8. Not everyone has nspluginwrapper, in fact, most probably don't.

    Try adding it to /etc/environment.

    ReplyDelete
  9. WOW!
    very wonderful. Thanks for sharing this!

    BR
    Husain

    ReplyDelete
  10. Thanks man. Works great. This was really bugging me to.

    ReplyDelete
  11. Very helpful - thanks!

    One note: I couldn't get it to work after restarting Firefox several times. I had to restart Ubuntu itself. Now it works like a charm!

    ReplyDelete
  12. wow, thanks alot.. i was about to give up on linux lol

    ReplyDelete
  13. Thanks a lot!
    This works on my 64-bit PC too! (Flash must be calling the i386 script then even though the machine is 64-bit Ubuntu 9.10)

    ReplyDelete
  14. thanks
    it works on my Mandriva 2010
    but this should be included by default
    hope they fix this in new releases

    ReplyDelete
  15. awesome awesome awesome, I've converted so many friends to Ubuntu, but one thing they always moan about is flash (with compiz). Now I can fix it for them :D Thank you!

    ReplyDelete
  16. you are such a star!
    Thank you!

    ReplyDelete
  17. Thanks ubuntu 10.04 x64 Beta 1

    A-ok!

    ReplyDelete
  18. Thumbs up!
    It works on Google Chrome/Chromium on Ubuntu 10.04 Beta 64-bit.

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete
  20. i did the command from te console and on Ubuntu 10.04 64bit it works!! YES you make my day.

    Why is this bug not solved on 10.04???? itś more than a 6 months now for me and the solution is not that difficult.

    anyway thanks

    ReplyDelete
  21. Thanks this solved the problem perfectly

    ReplyDelete
  22. This worked great for me too! Thanks a ton!

    ReplyDelete
  23. Here here. I have the 64b version, and /usr/lib64/nspluginwrapper/i386/linux/npviewer
    already had the line you suggested. I added it also to /usr/lib/nspluginwrapper/i386/linux/npviewer and now flash buttons finally work.
    One thing though, why do people still use the 32b version of Ubuntu? I'm thinking most people have a 64b processor by now.

    ReplyDelete
  24. Hey thanks for the great work. It workes very good. :D
    Thumbs up

    ReplyDelete
  25. You saved my mental health, I was becoming crazy!!! Thanks

    ReplyDelete
  26. Works perfectly! First I also got just an empty gedit but i just installed nspluginwrapper from Synaptic and then we are making magic! :)

    ReplyDelete
  27. Works great on Ubuntu 10.04 LTS 64 bit

    Thanks

    ReplyDelete
  28. works on Mandriva 2010 64-bit. Thanks! - it was a headache...

    ReplyDelete
  29. Works on Mandriva 2010.1! Thanks!!!

    ReplyDelete
  30. I love you xD I have had this problem for months and now it's solved, your fix works great!!!
    (Ubuntu 9.10 64bit)

    ReplyDelete
  31. works like a charm here, thats the solution i was looking for...
    Ubuntu 10.04 64bit here(installed the plugin adobe flash with the manage plugin)...

    ReplyDelete
  32. thx a lot
    works on lucid lynx
    easy

    ReplyDelete
  33. this solution doesn't work on 32bit versions, i'm using Ubuntu 9.10 32bit and Chrome Browser. I've latest flash player plugin installed 10.1.102

    any ideas?

    ReplyDelete
  34. @Fido I think it doesn't work because chrome now has native support for flash, it doesn't use the system flash plugin

    ReplyDelete

Note: Only a member of this blog may post a comment.

Related Content

Related Posts with Thumbnails