Merge pull request #5 from rumanzo/linux_support

default flags for linux
This commit is contained in:
Alexey Kostin 2020-02-16 15:15:09 +03:00 committed by GitHub
commit 438bb360c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {