Skip to content

fix: windows config path - #130

Open
rawnly wants to merge 2 commits into
mainfrom
fix/windows-config-path
Open

rawnly wants to merge 2 commits into
mainfrom
fix/windows-config-path

Conversation

@rawnly

@rawnly rawnly commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

fixes #120

Also guard against empty photo results and drop a duplicate config write.
Copilot AI balanced review requested due to automatic review settings October 21, 2026 15:09
@rawnly rawnly changed the title fix/windows config path fix: windows config path Oct 21, 2026
@rawnly
rawnly enabled auto-merge (squash) October 21, 2026 15:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Login persistence failures now report success, and the download-fallback notification is unreachable.

2 open issues
What changed in this PR

Fixes Windows configuration-path handling for issue #120 and adds terminal status reporting around user interaction.

Changes:

  • Resolves configuration paths from the platform-specific home directory and creates .config.
  • Adds blocked/resume terminal notifications and helper tests.
  • Removes redundant config writes and handles missing photos.
File Description
main.go Uses cross-platform home paths and creates the config directory.
lib/​terminal/​status.go Adds terminal status notifications and message truncation.
lib/​terminal/​status_test.go Tests truncation and base64 encoding.
cmd/​root.go Adds prompt notifications, guards missing photos, and removes a config write.
cmd/​auth/​login.go Adds authentication notifications and removes a duplicate config write.

Review effort: Balanced

Comment thread cmd/auth/login.go
logrus.Debug("writing config")
cobra.CheckErr(viper.WriteConfig())

if err := viper.WriteConfig(); err != nil {
Comment thread cmd/root.go
fmt.Println("")

var key keyboard.Key
resume := terminal.Blocked("permission", "Download failed. Set wallpaper from the URL?")

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows Problems

2 participants