I have both Windows XP and Linux Mint 8. I cannot refuse from any of these OS cause some tasks are cosy to execute under Win, others - under Linux.
So, I really need to edit Deluge confs such way to make all my seedings working under both OS. I studied Deluge confs and found out that only 3 files contain pathes, that should be edited:
\deluge\state\torrents.state
\deluge\core.conf
\deluge\gtkui.conf
so, i wrote such script for linux:
Code: Select all
#!/bin/bash
TORRENTSTATE="/home/maxim/.config/deluge/state/torrents.state"
CORECONF="/home/maxim/.config/deluge/core.conf"
GTKUICONF="/home/maxim/.config/deluge/gtkui.conf"
sed -r "s/(\\\){2}/\//g" -i "$TORRENTSTATE" "$CORECONF" "$GTKUICONF"
sed -r "s/C\:/\/media\/ntfs\/c/g" -i "$TORRENTSTATE" "$CORECONF" "$GTKUICONF"
sed -r "s/D\:/\/media\/ntfs\/d/g" -i "$TORRENTSTATE" "$CORECONF" "$GTKUICONF"
sed -r "s/E\:/\/media\/ntfs\/e/g" -i "$TORRENTSTATE" "$CORECONF" "$GTKUICONF"
Code: Select all
@echo off
set TORRENTSTATE="%APPDATA%\deluge\state\torrents.state"
set CORECONF="%APPDATA%\deluge\core.conf"
set GTKUICONF="%APPDATA%\deluge\gtkui.conf"
sed -r "s/\/media\/ntfs\/c/C\:/g" -i "%TORRENTSTATE%" "%CORECONF%" "%GTKUICONF%"
sed -r "s/\/media\/ntfs\/d/D\:/g" -i "%TORRENTSTATE%" "%CORECONF%" "%GTKUICONF%"
sed -r "s/\/media\/ntfs\/e/E\:/g" -i "%TORRENTSTATE%" "%CORECONF%" "%GTKUICONF%"
sed -r "/(C|D|E)\:/s/\//\\\\/g" -i "%TORRENTSTATE%" "%CORECONF%" "%GTKUICONF%"
These scripts are placed into autoload in both OS and work fine - edit the pathes in that files.
That works nice for Mint - any seedings created in Windows are picked up in Linux with no problems
But, when i start Windows, Deluge doesn't pick up seeding created in Linux
Deluge version - 1.2.3 in both OS
Can you help me with this?
Sorry if any lack of understanding occur - English is not my native