You must need administrator privileges for this but just open a text editor (such as vim) paste the above code, save it as redeluge in /usr/bin and then give it executable permissions ( sudo chmod +x redeluge) so instead of launching deluge you type in the terminal redeluge and it's done.
Another option is to replace the deluge launcher so you open a terminal and type:
Code: Select all
#This will give you the directory where deluge is launched from
which deluge
# In my case is /usr/bin so go there and backup the old launcher
cd /usr/bin
sudo cp deluge deluge.bak
sudo rm deluge
# Make a soft link to the script
ln -s /usr/bin/redeluge deluge
Now each time you type deluge in the terminal it will execute the script.
I personally always use the terminal to launch programs, but if you don't and use the Dash or some Docky just create a soft link there to the saved script.
In case something goes wrong just restore the old deluge file
If you need further assistance tell me!