Summary: | keyboard layout switching fails after a while | ||
---|---|---|---|
Product: | kxkb | Reporter: | Toby Dickenson <toby> |
Component: | general | Assignee: | Andriy Rysin <arysin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | patch to kxkb.cpp to recover gracefully if precompiled layout cache file does not work |
Description
Toby Dickenson
2004-09-05 13:36:34 UTC
Created attachment 7417 [details]
patch to kxkb.cpp to recover gracefully if precompiled layout cache file does not work
Patch to change the behaviour for setting layouts. If using a precompiled
layout fails for any reason, it falls back to using the original method as if
there are no precompiled layouts. It then updates the precompiled layout file
ready for next time.
This certainly fixes the symptoms if I manually delete the cache files from
/tmp/..... I will report back in a few weeks whether it fixes the original
symptoms too.
Thinking aloud: Does it make sense to still precompute all layouts? or would it
be better to use this same mechanism to store them lazily on first use?
This patch is working great so far thanks for the patch, I've applied it with some tweaks so kxkb now also have lazy layouts compilation |