12/05/2011 - Patch linux flash to leave viewed videos on /tmp Por: killabyte

A lot of people would have discovered that last updates of linux flash remove temporary videos from /tmp, forcing to install sucky firefox plugins to save your most beloved videos.

Following code snippet will patch your libflashplayer.so plugin to not remove the temporary files in /tmp, making possible again to save viewed videos only copying (or moving) them from the tempoary folder.

# ^^^ in Ubuntu 11.04 in /usr/lib/flashplugin-installer/libflashplayer.so
perl -ne "s/unlink\0/atoi\0\0\0/g;print" < "$F" > "$F.xxx"

Please note that you will find, in the same directory of your plugin, a patched version with .xxx extension. If you want to use the patched version, make a copy of the original plugin, and then substitute it. Example:

# ^^^ in Ubuntu 11.04 in /usr/lib/flashplugin-installer/libflashplayer.so
mv "$F" "$F-original"
cp "$F.xxx" "$F"
Go back to main page...
Valid XHTML 1.1! Valid CSS!
Esta obra está bajo una Licencia de Creative Commons | rss Noticias | rss Lol