save files in ~/.config/forge by default

This commit is contained in:
Jeff Carr 2025-01-31 08:49:19 -06:00
parent 8329c71b08
commit 7c4feea366
2 changed files with 2 additions and 8 deletions

View File

@ -74,9 +74,7 @@ func drawWindow(win *gadgets.BasicWindow) {
grid := group1.NewGrid("buildOptions", 0, 0) grid := group1.NewGrid("buildOptions", 0, 0)
// me.autoWorkingPwd = gadgets.NewOneLiner(grid, "working directory (pwd)") // me.autoWorkingPwd = gadgets.NewOneLiner(grid, "working directory (pwd)")
me.userHomePwd = gadgets.NewOneLiner(grid, "user home") me.goSrcPwd = gadgets.NewOneLiner(grid, "repo src home")
grid.NextRow()
me.goSrcPwd = gadgets.NewOneLiner(grid, "go src home")
grid.NextRow() grid.NextRow()
usr, _ := user.Current() usr, _ := user.Current()
@ -85,7 +83,6 @@ func drawWindow(win *gadgets.BasicWindow) {
log.Warn("Error getting home directory:", err) log.Warn("Error getting home directory:", err)
homeDir = "/home/autotypist" homeDir = "/home/autotypist"
} }
me.userHomePwd.SetText(homeDir)
srcDir := filepath.Join(homeDir, "go/src") srcDir := filepath.Join(homeDir, "go/src")
me.goSrcPwd.SetText(srcDir) me.goSrcPwd.SetText(srcDir)

View File

@ -51,10 +51,7 @@ type mainType struct {
// if checked, it will check all your repos for changes // if checked, it will check all your repos for changes
autoScanReposCB *gui.Node autoScanReposCB *gui.Node
// what is being used as your home dir // what is being used as primary directory for your work
userHomePwd *gadgets.OneLiner
// what is being used as ~/go/src
goSrcPwd *gadgets.OneLiner goSrcPwd *gadgets.OneLiner
// ENV GIT_AUTHOR NAME and EMAIL // ENV GIT_AUTHOR NAME and EMAIL