Skip to content

auto_update: Persist custom icons across app updates on macOS#49727

Merged
ConradIrwin merged 1 commit intozed-industries:mainfrom
amtoaer:keep_custom_icon
Feb 24, 2026
Merged

auto_update: Persist custom icons across app updates on macOS#49727
ConradIrwin merged 1 commit intozed-industries:mainfrom
amtoaer:keep_custom_icon

Conversation

@amtoaer
Copy link
Copy Markdown
Contributor

@amtoaer amtoaer commented Feb 20, 2026

After setting a custom icon on macOS, an Icon\r file is generated in the application's root directory to store the custom icon metadata. Currently, the update process uses rsync -av --delete, which removes this Icon\r file and causes the custom icon to revert to the default blue folder.

This PR adds the --exclude 'Icon?' parameter to ensure the file is preserved during updates.

Closes #26639 , Closes #29900.

Since I cannot trigger the auto-update mechanism manually, I mounted the latest Zed disk image and simulated the update by executing the rsync command in the terminal to verify the fix.

图片

Before you mark this PR as ready for review, make sure that you have:

  • Added a solid test coverage and/or screenshots from doing manual testing
  • Done a self-review taking into account security and performance aspects
  • Aligned any UI changes with the UI checklist

Release Notes:

  • Fixed an issue where custom macOS app icons would revert to default blue folders after an update.

This change adds `--exclude "Icon?"` to the rsync command arguments when
installing updates on macOS, preventing the hidden Icon? files from
being copied or deleted during the update process.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 20, 2026
@github-actions github-actions bot added the community champion Issues filed by our amazing community champions! 🫶 label Feb 20, 2026
@maxdeviant maxdeviant changed the title auto-update: Persist custom icons across macOS updates auto_update: Persist custom icons across macOS updates Feb 20, 2026
@amtoaer amtoaer changed the title auto_update: Persist custom icons across macOS updates auto_update: Persist custom icons across app updates on macOS Feb 20, 2026
@ConradIrwin ConradIrwin enabled auto-merge (squash) February 24, 2026 22:11
@ConradIrwin
Copy link
Copy Markdown
Member

Thanks for this!

@ConradIrwin ConradIrwin merged commit 67b52f3 into zed-industries:main Feb 24, 2026
31 checks passed
pull bot pushed a commit to FlorianDevP/zed that referenced this pull request Feb 24, 2026
…dustries#49727)

After setting a custom icon on macOS, an `Icon\r` file is generated in
the application's root directory to store the custom icon metadata.
Currently, the update process uses `rsync -av --delete`, which removes
this `Icon\r` file and causes the custom icon to revert to the default
blue folder.

This PR adds the `--exclude 'Icon?'` parameter to ensure the file is
preserved during updates.

Closes zed-industries#26639 , Closes zed-industries#29900.

Since I cannot trigger the auto-update mechanism manually, I mounted the
latest Zed disk image and simulated the update by executing the rsync
command in the terminal to verify the fix.

<img width="2254" height="1596" alt="图片"
src="https://github.com/user-attachments/assets/26660fa4-447f-427a-b2dd-e6280ce3d42d"
/>


Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Fixed an issue where custom macOS app icons would revert to default
blue folders after an update.
pull bot pushed a commit to FlorianDevP/zed that referenced this pull request Feb 25, 2026
…dustries#49727)

After setting a custom icon on macOS, an `Icon\r` file is generated in
the application's root directory to store the custom icon metadata.
Currently, the update process uses `rsync -av --delete`, which removes
this `Icon\r` file and causes the custom icon to revert to the default
blue folder.

This PR adds the `--exclude 'Icon?'` parameter to ensure the file is
preserved during updates.

Closes zed-industries#26639 , Closes zed-industries#29900.

Since I cannot trigger the auto-update mechanism manually, I mounted the
latest Zed disk image and simulated the update by executing the rsync
command in the terminal to verify the fix.

<img width="2254" height="1596" alt="图片"
src="https://github.com/user-attachments/assets/26660fa4-447f-427a-b2dd-e6280ce3d42d"
/>


Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Fixed an issue where custom macOS app icons would revert to default
blue folders after an update.
pull bot pushed a commit to FlorianDevP/zed that referenced this pull request Feb 25, 2026
…dustries#49727)

After setting a custom icon on macOS, an `Icon\r` file is generated in
the application's root directory to store the custom icon metadata.
Currently, the update process uses `rsync -av --delete`, which removes
this `Icon\r` file and causes the custom icon to revert to the default
blue folder.

This PR adds the `--exclude 'Icon?'` parameter to ensure the file is
preserved during updates.

Closes zed-industries#26639 , Closes zed-industries#29900.

Since I cannot trigger the auto-update mechanism manually, I mounted the
latest Zed disk image and simulated the update by executing the rsync
command in the terminal to verify the fix.

<img width="2254" height="1596" alt="图片"
src="https://github.com/user-attachments/assets/26660fa4-447f-427a-b2dd-e6280ce3d42d"
/>


Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Fixed an issue where custom macOS app icons would revert to default
blue folders after an update.
tahayvr pushed a commit to tahayvr/zed that referenced this pull request Mar 4, 2026
…dustries#49727)

After setting a custom icon on macOS, an `Icon\r` file is generated in
the application's root directory to store the custom icon metadata.
Currently, the update process uses `rsync -av --delete`, which removes
this `Icon\r` file and causes the custom icon to revert to the default
blue folder.

This PR adds the `--exclude 'Icon?'` parameter to ensure the file is
preserved during updates.

Closes zed-industries#26639 , Closes zed-industries#29900.

Since I cannot trigger the auto-update mechanism manually, I mounted the
latest Zed disk image and simulated the update by executing the rsync
command in the terminal to verify the fix.

<img width="2254" height="1596" alt="图片"
src="https://github.com/user-attachments/assets/26660fa4-447f-427a-b2dd-e6280ce3d42d"
/>


Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Fixed an issue where custom macOS app icons would revert to default
blue folders after an update.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement community champion Issues filed by our amazing community champions! 🫶

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Icon Randomly Reverts to Folder Icon Under macOS, ZED is updated automatically and the icon changes to a folder icon

3 participants