Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opentrons-systemd-units: add a systemd service to clear the fontconfig cache. #186

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

vegano1
Copy link
Collaborator

@vegano1 vegano1 commented Jan 10, 2025

Overview

The ODD did not recognize the simplified Chinese font when the system was updated from 8.2 or lower to 8.3.0, seems like something with Fontconfig caching the fonts from the previous installation was causing a problem. Clearing the Fontconfig cache fixes the issue, so let's add a oneshot systemd service that runs on startup and deletes all fontconfig cache in /var/cache/fontconfig and then rebuilds the fontcache with fc-cache -rf .

Closes: RQA-3815

Testing

  • update from 8.2 or lower to this build and make sure that Chinese characters are displayed correctly on the ODD.

Unverified

No user is associated with the committer email.
…g cache.
@vegano1 vegano1 requested a review from sfoster1 January 10, 2025 19:56

Unverified

No user is associated with the committer email.
Copy link
Contributor

@SyntaxColoring SyntaxColoring left a comment

Choose a reason for hiding this comment

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

Sounds good if it works and if this isn't something that takes, like, minutes to rebuild every boot.

Weird that this would be required. If you have an idea of why this is the case, it might be worth an explanatory comment in the script or the service file.

@vegano1
Copy link
Collaborator Author

vegano1 commented Jan 10, 2025

Sounds good if it works and if this isn't something that takes, like, minutes to rebuild every boot.

Weird that this would be required. If you have an idea of why this is the case, it might be worth an explanatory comment in the script or the service file.

Naw it takes like 5 seconds to rebuild.

Unfortunately, I've not found out why this is happening, but the standard practice seems to be to run fc-cache when a new font is installed. Just running that without removing everything with rm first does not fix the issue.

Maybe @sfoster1 has some ideas.

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

Nice!

@vegano1
Copy link
Collaborator Author

vegano1 commented Jan 13, 2025

Successfully tested on Flex 8.2 -> 8.3 build.

@vegano1 vegano1 merged commit 525434b into main Jan 13, 2025
3 checks passed
@vegano1 vegano1 deleted the RQA-3815-clear-fontconfig-cache branch January 13, 2025 15:52
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.

None yet

3 participants