##
#   File: /patches/010-change-default-config-path.patch
#   Project: rclone
#   File Created: Friday, 1st May 2020 10:54:31 pm
#   Author: ElonH[EH](elonhhuang@gmail.com)
#   License: GNU General Public License v3.0 or later(http://www.gnu.org/licenses/gpl-3.0-standalone.html)
#   Copyright (C) 2020 [ElonH]
##
# set /etc/rclone/rclone.conf as default configuration path
diff --git a/fs/config/config.go b/fs/config/config.go
index 53d67ef03..cc5d6436b 100644
--- a/fs/config/config.go
+++ b/fs/config/config.go
@@ -25,7 +25,6 @@ import (
 	"unicode/utf8"
 
 	"github.com/Unknwon/goconfig"
-	homedir "github.com/mitchellh/go-homedir"
 	"github.com/pkg/errors"
 	"github.com/rclone/rclone/fs"
 	"github.com/rclone/rclone/fs/accounting"
@@ -133,21 +132,10 @@ func makeConfigPath() string {
 	}
 
 	// Find user's home directory
-	homeDir, err := homedir.Dir()
+	homeDir := "/etc"
 
-	// Find user's configuration directory.
-	// Prefer XDG config path, with fallback to $HOME/.config.
-	// See XDG Base Directory specification
-	// https://specifications.freedesktop.org/basedir-spec/latest/),
-	xdgdir := os.Getenv("XDG_CONFIG_HOME")
 	var cfgdir string
-	if xdgdir != "" {
-		// User's configuration directory for rclone is $XDG_CONFIG_HOME/rclone
-		cfgdir = filepath.Join(xdgdir, "rclone")
-	} else if homeDir != "" {
-		// User's configuration directory for rclone is $HOME/.config/rclone
-		cfgdir = filepath.Join(homeDir, ".config", "rclone")
-	}
+	cfgdir = filepath.Join(homeDir, "rclone")
 
 	// Use rclone.conf from user's configuration directory if already existing
 	var cfgpath string
