Skip to content

Feature request: Config for user data directoryΒ #154

@Nezteb

Description

@Nezteb

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

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. πŸ˜„

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions