Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

fix(client): show warning/error when app is using Rosetta 2 translation (running wrong arch) #2281

Merged
merged 15 commits into from
Jun 12, 2025

Conversation

perfectra1n
Copy link
Member

No description provided.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 11, 2025
@perfectra1n perfectra1n changed the title Fix/show warning when rosetta 2 fix(client): show warning/error when app is using Rosetta 2 translation (running wrong arch) Jun 11, 2025
this.$widget.find(".rosetta-warning-recommendation").text(t("rosetta_warning.recommendation"));
this.$widget.find(".rosetta-warning-download-link").text(t("rosetta_warning.download_link"));
this.$widget.find(".rosetta-warning-continue-anyway").text(t("rosetta_warning.continue_anyway"));
this.$widget.find(".rosetta-warning-dont-show-again").text(t("rosetta_warning.dont_show_again"));
Copy link
Contributor

@eliandoran eliandoran Jun 11, 2025

Choose a reason for hiding this comment

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

Does this checkbox do anything?

Copy link
Member Author

Choose a reason for hiding this comment

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

To not show the warning again?

import { t } from "../../services/i18n.js";

const TPL = /*html*/`
<div class="rosetta-warning-dialog modal mx-auto" tabindex="-1" role="dialog" style="z-index: 2000;">
Copy link
Contributor

Choose a reason for hiding this comment

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

image

Under dark mode, the contrast for the title is not great. I suggest we remove the red background.

@eliandoran eliandoran marked this pull request as draft June 11, 2025 19:54
@eliandoran eliandoran marked this pull request as ready for review June 12, 2025 19:50
@eliandoran eliandoran added this to the v0.95.0 milestone Jun 12, 2025
@eliandoran eliandoran merged commit f0c696d into develop Jun 12, 2025
10 of 11 checks passed
@eliandoran eliandoran deleted the fix/show-warning-when-rosetta-2 branch June 12, 2025 20:05
@rom1dep
Copy link
Contributor

rom1dep commented Jun 14, 2025

This, to me, looks like a lot of code for not much gain (it is platform-specific and time-bound, considering that rosetta2 is going to be phased-out very soon. Is there a way we could annotate this code for removal, so we don't carry it needlessly into the future as a debt?

@perfectra1n
Copy link
Member Author

The document also reiterates that macOS Tahoe (released in 2027) will be the final macOS release that supports Intel-based Macs. However, Apple said that Intel-based Macs will continue to receive security updates for an additional three years.

It’ll be completely phased out in 2029 (official support), and users will still be able to use Rosetta 2 compatible Macs for even longer after (since they won’t be on the latest MacOS anymore), so I’d say it won’t be going away anytime soon.

and thankfully with GitHub and git, we can just reference this PR and remove the code! 😄

@rom1dep
Copy link
Contributor

rom1dep commented Jun 14, 2025

and thankfully with GitHub and git, we can just reference this PR and remove the code! 😄

I mean, it's probably good code hygiene to mark this type of code in a specific manner (using PR labels, or code annotations/comments, or whatever… suggestions welcome!) so it's not eventually forgotten about.

I'm not making the case that it is impossible for a superhuman with git chops and a complete memory of the code and its full history not to forget about it, I'm making the case that it should be easy for future contributors (and/or our busy future selves) to periodically review those annotated bits for retention or removal.

@eliandoran
Copy link
Contributor

@rom1dep , the feature was added as a real need since it seems some people are running on the wrong arch.

Please note it's not only for macOS, but also for Windows on ARM.

@rom1dep
Copy link
Contributor

rom1dep commented Jun 15, 2025

Please note it's not only for macOS, but also for Windows on ARM.

yup, saw that you enhanced the PR and made it immensely more generic, thanks for that! The point still stands, I suppose, about annotating this type of code for future removal.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants