It looks like the app currently doesn't allow you to set the data directory:
|
func main() { |
|
utl.CreateFolder(app.DataPath) |
|
app.Process = utl.PathJoin(app.AppPath, "brave.exe") |
|
app.Args = []string{ |
|
"--user-data-dir=" + app.DataPath, |
|
"--disable-brave-update", |
|
"--no-default-browser-check", |
|
"--disable-logging", |
|
"--disable-breakpad", |
|
"--disable-machine-id", |
|
"--disable-encryption-win", |
|
} |
|
|
|
// Cleanup on exit |
|
if cfg.Cleanup { |
|
defer func() { |
|
utl.Cleanup([]string{ |
|
path.Join(os.Getenv("APPDATA"), "BraveSoftware"), |
|
path.Join(os.Getenv("LOCALAPPDATA"), "BraveSoftware"), |
|
}) |
|
}() |
|
} |
It'd be nice if we could choose where that data is stored, including in the install directory of the portable app itself. This seems like a good candidate for a config item perhaps? Example:
app:
cleanup: false
user_data_dir: 'C:\portapps\brave-portable\data\user'
This is somewhat related to an existing issue, but I wanted to phrase this as more of a feature request than an inquiry. 😄
It looks like the app currently doesn't allow you to set the data directory:
brave-portable/main.go
Lines 42 to 63 in 2f22c0c
It'd be nice if we could choose where that data is stored, including in the install directory of the portable app itself. This seems like a good candidate for a config item perhaps? Example:
This is somewhat related to an existing issue, but I wanted to phrase this as more of a feature request than an inquiry. 😄