Skip to content

Keep desktop shortcuts out of home - #9562

Closed
rookepoole wants to merge 1 commit into
omacom:quattrofrom
rookepoole:fix/xdg-desktop-dir
Closed

rookepoole wants to merge 1 commit into
omacom:quattrofrom
rookepoole:fix/xdg-desktop-dir

Conversation

@rookepoole

@rookepoole rookepoole commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • redirect the XDG desktop from $HOME to ~/.local/share/desktop for new users and Omarchy 3 upgrades
  • migrate existing users only when their desktop directory still resolves exactly to $HOME
  • preserve customized desktop directories and keep the migration idempotent
  • document the hidden desktop target

Testing

  • bash test/shell.d/provision-user-test.sh
  • bash test/shell.d/xdg-desktop-dir-migration-test.sh
  • ./test/all (the changed tests pass; six unrelated environment-dependent tests fail because this checkout lacks omarchy-pkgs fixtures or the sandbox lacks the required terminal, network, or privilege state)

Closes #9556

reeseroyster added a commit to reeseroyster/omarchy that referenced this pull request Sep 18, 2026
1788129995.sh collides with six other open PRs (omacom#9276, omacom#9445, omacom#9446,
omacom#9478, omacom#9522, omacom#9562); same filename means the same completion marker,
so only the first merged migration would ever run. Renamed to the
fresh, currently-unused timestamp 1789739221.
@bjarneo

bjarneo commented Sep 21, 2026

Copy link
Copy Markdown
Member

Automated duplication check: this pull request looks similar to #9563, which covers the same XDG desktop dir move. I keep that one open and close this one to consolidate review.

If you feel this is the wrong decision, please open the PR again with a note on the difference.

@bjarneo bjarneo closed this Sep 21, 2026
@rookepoole

Copy link
Copy Markdown
Contributor Author

Rechecked on 2026-10-07 after updating the system.

At this PR's head c44920aea2a67a2cd4b2f332ee7029a46f74a6f6, the focused provisioning and desktop-directory migration tests pass (2 and 3 assertions respectively). A local integration attempt with current quattro (0a55a3c5544931bd314342e2a1f00bada577c574) has conflicts in the file-layout documentation, provisioning test, and migration.

In particular, migrations/1788129995.sh is now an existing upstream Omasnap migration, so this PR's desktop-directory migration cannot retain that filename if revived. Keeping review consolidated in #9563 makes sense; I have left this PR closed. The retest used isolated fixtures and did not change the live user's desktop directory.

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.

XDG_DESKTOP_DIR="$HOME" makes apps scatter .desktop shortcuts into the home directory

2 participants