Skip to content

Preserve symlinked user configs in text-size, glass, Sunshine, and RetroArch commands - #20002

Merged
dhh merged 2 commits into
quattrofrom
extract/preserve-symlinked-user-configs
Nov 24, 2026
Merged

dhh merged 2 commits into
quattrofrom
extract/preserve-symlinked-user-configs

Conversation

@dhh

@dhh dhh commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Extracted from #14343 by @alive-zk and #7309 by @calebdw on top of #19969.

  • Use sed --follow-symlinks -i when editing user config files in bin/omarchy-display-text-size (Alacritty, Ghostty, Foot), bin/omarchy-theme-set-glass (gtk-4.0/gtk.css and theme files), bin/omarchy-remove-service-sunshine (~/.config/hypr/autostart.lua), and bin/omarchy-install-gaming-retroarch (~/.config/retroarch/retroarch.cfg) so dotfile symlinks stay linked and edits land in their targets.
  • Deliberately leaves frozen shipped migrations, privileged /etc/ edits, and source-grep lint tests out per AGENTS.md.
  • Extend test/shell.d/desktop-helpers-test.sh and test/shell.d/hyprland-window-transparency-test.sh to cover symlink preservation.

Verified by Codex and Claude

…troArch commands

Extracted from #14343 and #7309 on top of #19969.

Co-authored-by: Ali Yahya <[email protected]>
Co-authored-by: Caleb White <[email protected]>
@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Preserves symlinked user configs when changing text size, toggling glass, removing Sunshine, and setting up RetroArch.

  • Text-size changes keep linked shell and terminal configs intact.
  • Glassy mode keeps linked GTK and theme files intact.
  • RetroArch setup keeps its linked config file in place.
  • Sunshine removal keeps the linked Hyprland startup file intact.

Reviews (2) · Last reviewed commit: "Write through symlinked shell.toml in om..." · Reviewed by Greptile

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Nov 24, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Codex High reviewed 8df82e2fc18d66094b5c6428ba119ae713f386f2 and found no defect requiring changes. On a disposable Omarchy ISO worker, an independent reproduction failed in all eight relative/chained-symlink cases on base, passed all twelve regular-file and symlink cases on this head, and failed in the same eight cases with the fix reverted. It checked target contents, preserved links and modes, text-size set/reset, glass round trips, Sunshine removal, and RetroArch edits; package/service/UI side effects were stubbed. The full CLI suite and both changed shell tests passed.

Opus 5.5 High and muse-wonder via pi, thinking high, agreed; reviewer independence is not guaranteed. No code was pushed. Awaiting maintainer review.

@dhh
dhh merged commit eb12b54 into quattro Nov 24, 2026
3 checks passed
@dhh
dhh deleted the extract/preserve-symlinked-user-configs branch November 24, 2026 08:15
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 24, 2026
…troArch commands (omacom#20002)

* Preserve symlinked user configs in text-size, glass, Sunshine, and RetroArch commands

Extracted from omacom#14343 and omacom#7309 on top of omacom#19969.

Co-authored-by: Ali Yahya <[email protected]>
Co-authored-by: Caleb White <[email protected]>

* Write through symlinked shell.toml in omarchy-display-text-size

Co-authored-by: Ali Yahya <[email protected]>
Co-authored-by: Caleb White <[email protected]>

---------

Co-authored-by: Ali Yahya <[email protected]>
Co-authored-by: Caleb White <[email protected]>
@emirb emirb added this to the 4.6.0 milestone Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants