Commit graph

11 commits

Author SHA1 Message Date
Eberhard Beilharz
3cc016fc8a
fix(linux): Fix uninstallation of shared keyboard
This fixes the uninstallation of shared keyboards if the
`additional-keyboards` settings doesn't exist yet.

Closes #9879.
2023-10-27 19:26:35 +02:00
Eberhard Beilharz
23cc98a690
feat(linux): Allow installing keyboards with arbitrary language 🏘️
- during installation add to the list of custom keyboards if necessary
- during uninstallation remove from the list of custom keyboards
- if list of custom keyboards has invalid values, remove those before
  saving the list

Closes #8598.
2023-10-13 16:57:57 +02:00
Eberhard Beilharz
ad1919da29
refactor(linux): Revert type hints
Turns out `list[str] | None` doesn't work with Python < 3.9 which
comes with Ubuntu 20.04 Focal, so we revert that change.
2023-07-05 11:39:33 +02:00
Eberhard Beilharz
481cb4a281
refactor(linux): Code refactoring 2023-07-05 11:39:33 +02:00
Eberhard Beilharz
e9d12bd7f2
fix(linux): Fix previous commit 2022-07-18 17:40:05 +02:00
Eberhard Beilharz
d9d6e6de11
chore(linux): More import sorting 2022-07-18 17:10:01 +02:00
Eberhard Beilharz
0944d83f97
chore(linux): Code cleanup
Some reformatting.
2022-07-15 20:44:47 +02:00
Eberhard Beilharz
2d09619d51
fix(linux): Fix shared keyboard (un-)installation in Bionic
Ubuntu 18.04 Bionic comes with an older Python version (3.6) that
doesn't support the `capture_output` parameter on `subprocess.run`
which leads to a crash when installing or uninstalling keyboads to
the shared area. This change works around the problem by calling
a different method on Bionic.

Fixes #6564.
2022-04-25 18:04:30 +02:00
Eberhard Beilharz
c42a623f38
fix(linux): Don't crash when installing keyboards in Wasta
Fixes #6158. This bug got introduced in #6015.
2022-01-27 17:22:02 +01:00
Eberhard Beilharz
2ec64ac521 fix(linux): Fix unit tests 2021-12-09 14:44:33 +01:00
Eberhard Beilharz
b57699b06b refactor(linux): Move GSettings code to separate class 2021-12-08 19:05:23 +01:00