Page 5 of 5 FirstFirst ... 345
Results 41 to 42 of 42

Thread: HOWTO: wine + uTorrent with native Tray icon

  1. #41
    Join Date
    Jun 2007
    Beans
    46

    Re: HOWTO: wine + uTorrent with native Tray icon

    Wow. You are my hero! I've been trying to get this to work *literally* for months THANKS!

  2. #42
    Join Date
    Mar 2010
    Beans
    2

    Thumbs down Re: HOWTO: wine + uTorrent with native Tray icon

    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

Page 5 of 5 FirstFirst ... 345

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •