mirror of
https://github.com/rumanzo/bt2qbt.git
synced 2024-11-13 22:24:16 +01:00
Merge pull request #5 from rumanzo/linux_support
default flags for linux
This commit is contained in:
commit
438bb360c0
@ -505,6 +505,14 @@ func main() {
|
||||
flags.bitDir = os.Getenv("APPDATA") + sep + "uTorrent" + sep
|
||||
flags.config = os.Getenv("APPDATA") + sep + "qBittorrent" + sep + "qBittorrent.ini"
|
||||
flags.qBitDir = os.Getenv("LOCALAPPDATA") + sep + "qBittorrent" + sep + "BT_backup" + sep
|
||||
case "linux":
|
||||
usr, err := user.Current()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
flags.bitDir = "/mnt/uTorrent/"
|
||||
flags.config = usr.HomeDir + sep + ".config" + sep + "qBittorrent" + sep + "qBittorrent.conf"
|
||||
flags.qBitDir = usr.HomeDir + sep + ".local" + sep + "share" + sep + "data" + sep + "qBittorrent" + sep + "BT_backup" + sep
|
||||
case "darwin":
|
||||
usr, err := user.Current()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user