Okay…slight problem with Chrisk’s solution…but now fixed!..
The problem:
After installing wine, installing the Win7 version of Firefox and installing Windows Flash and then opening Wine’s Firefox and navigating to Channel 4 and trying out the various Channel 4 streams, all is working well and as it should. So far so good.
However, after closing Wine’s Firefox and then re-opening it, Flash is no longer working. The only solution is to close Wine’s Firefox and re-install Windows Flash. Then re-opening Wine’s Firefox. At which point, Channel 4 streams work again. so, somehow, after using once, flash somehow became corrupted. Obviously reinstalling flash works as a “solution” each time I want to watch channel 4, it is a bit messy and I wanted a fully automatic and invisible solution. This is the one I came up with:
Installed Windows Flash to be sure that that Wine had a fully working version of it.
Took a copy of the “.wine” folder and placed it a folder called “backupwine” in my “home” folder
Wrote the following script:
sudo rm -rf /home/stephen/.wine
cd /home/stephen/Documents/backupwine
sudo cp -R .wine /home/stephen/.wine
sudo chown -R stephen /home/stephen/.wine
env WINEPREFIX="/home/stephen/.wine" wine C:\\windows\\command\\start.exe /Unix /home/stephen/.wine/dosdevices/c:/users/Public/Desktop/Mozilla\ Firefox.lnk http://www.channel4.com/now/c4
The first line delete the “.wine” folder.
The second line goes to where I have the working backup “.wine” folder stored.
The third line copies the backup “.wine” folder to its proper location for Wine to operate.
The fourth line set the correct permissions for the replaced “.wine” folder
The fifth line Starts Wine’s Firefox and the Channel 4 homepage.
At which point Channel 4 streams work as they should. furthermore, this script can be used a second and subsequent times and, every time it is used, it re-copies over the good working version of Firefox and flash. So, no need to re-install flash every time.
The time it adds to the loading of the webpage is abut 10 seconds, so no big deal.
Ypou may notice at the end of the last line of the script is the channel 4 web address. Obviously, if this web address is changed to 4oD or E4 etc, the script can be re-used for these other webpages. Which is precisely what I have done.
finally, to finish all off neatly, I have made launchers in my usual Streaming video folder for channel 4 and all of it’s sub sites, using these scripts as the underlying commands in the launchers.
So, form a user’s perspective, all they need to do is double click the Firefox channel 4 launcher and it loads, every time. No mess no hassle.
Where there is a will there is a way.
Or, rather, where there is a shell, there is a way…