Wow. You are my hero! I've been trying to get this to work *literally* for months THANKS!
Wow. You are my hero! I've been trying to get this to work *literally* for months THANKS!
Oh Wow
For some reason my whole post was wiped before it was published, probably a combo of a script blocker and 3:45 AM.
I take no credit for this....a fix to allow one to open ANY file with your fav wine-dozed applications...
Well the tutorial is for uTorrent, but the rest follows quite simply and logically.
In 3 Steps then:
1) sudo gedit /usr/local/bin/uTorrent
2) Copy and paste this:
#!/bin/bash
cd ~/.wine/drive_c/Program\ Files/uTorrent
echo ""
if [ "$1" != "" ]; then
dt=`date +%s%N`
cp "$1" /tmp/$dt.torrent
var="Z:\\tmp\\"$dt".torrent"
wine "uTorrent.exe" "$var"
else
wine "uTorrent.exe"
fi
3) Make the script executable with : sudo chmod +x /usr/local/bin/uTorrent
Then in Firefox try to open a torrent file, choose "Open with"
Browse to /usr/local/bin and choose the script you made...click on "Do this automatically from now on"
The same for ANY torrent file in Nautilus Dolphin or whatever.
OK...so I'm partial to Irfanview...so:
1) sudo gedit /usr/local/bin/IrfanView
2) Copy and paste this:
#!/bin/bash
cd ~/.wine/drive_c/Program\ Files/Irfanview
echo ""
if [ "$1" != "" ]; then
dt=`date +%s%N`
cp "$1" /tmp/$dt.jpg
var="Z:\\tmp\\"$dt".jpg"
wine "i_view32" "$var"
else
wine "i_view32.exe"
fi
3) Make the script executable with : sudo chmod +x /usr/local/bin/IrfanView
ETC
OK the one problem is the programs in question make a copy of the file (/tmp) and reference THAT copy.
Makes it a bit annoying for when you want to save an edited version of say a picture or text file. Anyone has a fix for this, I'd be interested.
Anyways....mostly I do music, and my great dream has been to dump Windohs and have a recording DAW (Digital Audio Workstation) in Linux. While I haven't quite totally kicked the Microsoftheaded habit...I now do most of my recording in my UbuntuStudio DAW. Anyone passionate or interested in this....well I'll be glad to help, or accept some.
Peace
Bookmarks