Closed svvac closed 3 months ago
The following patch works around the issue:
diff --git i/uwsm/main.py w/uwsm/main.py
index 85533a4..c9c1dd1 100644
--- i/uwsm/main.py
+++ w/uwsm/main.py
@@ -146,6 +146,9 @@ class Val:
sh_varname = re.compile(
r"\A([a-zA-Z_][a-zA-Z0-9_]+|[a-zA-Z][a-zA-Z0-9_]*)\Z", re.MULTILINE
)
+ invalid_locale_key_error = re.compile(
+ r"^Invalid key: \w+\[.+\]$"
+ )
def dedent(data: str) -> str:
@@ -481,6 +484,8 @@ def check_entry_basic(entry, entry_action=None):
"Invalid key: TargetEnvironment",
]:
continue
+ if Val.invalid_locale_key_error.match(error):
+ continue
errors.add(error)
if errors:
raise RuntimeError(
Thanks! d2003e9c
The
.validate()
method ofxdg.DesktopEntry.DesktopEntry
performs (very) strict validation of XDG desktop files.Because of this, many stock KDE applications, such as Dolphin, cannot be started, because they contain localized keys using an invalid locale identifier
x-test
.