Commit graph

1152 commits

Author SHA1 Message Date
Darcy Wong
2d52719a00 chore(common): Update Hausa strings 2022-03-18 08:24:55 +07:00
Eberhard Beilharz
1410b5f634
Merge pull request #6378 from keymanapp/chore/linux/lintian
chore(linux): Address a few more lintian warnings 🐧
2022-03-16 06:28:24 +01:00
Eberhard Beilharz
27c7ed025f
Merge pull request #6283 from keymanapp/fix/linux/6237-ibus
fix(linux): Don't start ibus-daemon multiple times 🚌
2022-03-15 18:55:28 +01:00
Eberhard Beilharz
0c78e44eda
chore(linux): Remove debug output 2022-03-15 17:53:46 +01:00
Eberhard Beilharz
2c1b155570
chore(linux): Address a few more lintian warnings 2022-03-15 15:32:10 +01:00
Eberhard Beilharz
4d0dfbe3a5
chore(linux): Update Standards-Version 2022-03-14 12:08:10 +01:00
Eberhard Beilharz
cab9ced56d
chore(linux): Update copyright 2022-03-14 12:08:09 +01:00
Eberhard Beilharz
893e088c8e
chore(linux): Update changelogs for 14.0.287 2022-03-14 10:27:55 +01:00
Eberhard Beilharz
cc0317af2c
fix(linux): Don't use restart option of exit()
Instead of trying to restart ibus by passing True to bus.exit()
we now exit ibus and then let verify_ibus_daemon() start it again.
Also added additional checks to verify that we're not running
multiple ibus-daemons at the start of km-config and before
restarting.
2022-03-11 18:14:02 +01:00
Eberhard Beilharz
412a9ea2fc
chore(linux): Fix another lintian warning 2022-03-11 09:24:38 +01:00
Eberhard Beilharz
2133e7f6ea
chore(linux): Fix previous commit 2022-03-11 09:10:10 +01:00
Eberhard Beilharz
4cad24cac3
chore(linux): Fix lintian warnings 2022-03-10 20:30:44 +01:00
Eberhard Beilharz
e6cf0327b7
chore(linux): Small improvements
- output error if more than one ibus-daemon is running
- log Keyman version after starting km-config
2022-03-09 18:37:59 +01:00
Eberhard Beilharz
92395ec1f6
fix(linux): Add some debug output 2022-03-08 17:43:19 +01:00
Eberhard Beilharz
e30c00733a
fix(linux): Don't start ibus-daemon multiple times
This change adds a 1s sleep after restarting ibus before checking
that it actually runs. Hopefully this will solve the problem. Since
this bug is hard to reproduce, we also log a critical error for the
other code path this could happen.

Fixes #6237.
2022-03-07 18:22:06 +01:00
Marc Durdin
19d8faa077
Merge pull request #6287 from keymanapp/fix/linux/6285-makedirs
fix(linux): Gracefully handle makedirs failures
2022-03-02 09:02:09 +11:00
Marc Durdin
3df951a530
Merge pull request #6285 from keymanapp/fix/linux/6284-download
fix(linux): Gracefully handle keyboard download failure
2022-03-02 09:01:38 +11:00
Steven R. Loomis
3658efa5f1 chore(common): remove rust (for now!) 🦀
Fixes #6290
2022-02-24 17:34:23 -06:00
Eberhard Beilharz
e5b9b81806
fix(linux): Gracefully handle makedirs failures
This change catches the exception we're getting if we try to create
a directory but e.g. there is already a file with that name. In this
case we now output an error message. This change also gracefully
handles failures when linking files.

Fixes #6285.
2022-02-24 18:13:03 +01:00
Eberhard Beilharz
3c8983037d
fix(linux): Gracefully handle keyboard download failure
In the past we already gracefully handled keyboard download failures
when the user triggered the download from the km-config UI. This
change deals with the command line side of things, most often when
the user clicks on the "Install keyboard" button on keyman.com. If
the download fails we already output an error message and now don't
try to install the non-existing .kmp file.

Fixes #6284.
2022-02-24 17:38:23 +01:00
Eberhard Beilharz
e47ff34587
chore(linux): Improve message when updating to a newer version
When trying to install a keyboard with `km-package-install` and
the same version was already installed or a newer version was
available and would be installed we now output a simple message
instead of an error.
2022-02-23 17:03:00 +01:00
Eberhard Beilharz
96ae4387ef
fix(linux): Properly compare versions in km-package-install
This change will fix a bug with comparing version numbers with more
than two sections (e.g. '1.2.3').

Fixes #6182.
2022-02-22 20:03:49 +01:00
Eberhard Beilharz
f22dfe608b
Merge pull request #6241 from keymanapp/fix/linux/6240-man
fix(linux): Fix stray `[-vv]` in man pages
2022-02-21 15:46:20 +07:00
Eberhard Beilharz
31170e8f94 fix(linux): Fix stray [-vv] in man pages
Additionally, don't print the date in the footer. This often overlaps
with the program name and version.

Also print usage in addition to error if wrong arguments are given.

Fixes #6240.
2022-02-18 14:15:17 +07:00
Darcy Wong
3237a4c6ae chore(common): Update French strings 2022-02-18 10:06:33 +07:00
Eberhard Beilharz
0040373d21
feat(linux): Try to start ibus after installation
This change deals with restarting ibus in the post-install script.

Also, on Ubuntu 21.10 Impish there are two `ibus-daemon` processes
running for the current user. One of them has the `--xim` flag
and is the one we care about. This change improves the detection
that ibus is running in the post installation script.
2022-02-07 20:07:55 +01:00
Eberhard Beilharz
6cac869d0b
feat(linux): Try to start ibus if not running
When we try to restart ibus and that fails and ibus isn't running
afterwards we directly try to start ibus-daemon.

On Ubuntu 21.10 Impish there are two `ibus-daemon` processes
running for the current user. One of them has the `--xim` flag
and is the one we care about. This change improves the detection
that ibus is running after installing a keyboard.
2022-02-07 16:44:26 +01:00
Eberhard Beilharz
241eb6e79b
Merge pull request #6199 from keymanapp/chore/linux/hirsute
chore(linux): Remove obsolete Ubuntu 21.04 Hirsute
2022-02-04 08:22:04 +01:00
Eberhard Beilharz
05ffe7ebf4
chore(linux): Remove obsolete Ubuntu 21.04 Hirsute
We no longer build for Hirsute which is EOL and so no longer
available for building on ppa.
2022-02-03 10:35:06 +01:00
Eberhard Beilharz
1c9f9e9cb2
chore(linux): Improve dependencies in Linux package
This will make it easier to upgrade or downgrade since all
packages will be the same version.
2022-02-03 10:09:10 +01:00
Eberhard Beilharz
9cae5a4ab4
Merge pull request #6159 from keymanapp/fix/linux/6158-install-in-wasta
fix(linux): Don't crash when installing keyboards in Wasta
2022-02-02 09:27:56 +01:00
Eberhard Beilharz
10be681202
Merge pull request #6184 from keymanapp/chore/linux/kmfl
chore(linux): stop releasing KMFL together with Keyman
2022-02-01 16:52:21 +01:00
Eberhard Beilharz
f19cd3f513
chore(linux): stop releasing KMFL together with Keyman
Fixes #6163.
2022-01-31 19:08:14 +01:00
Eberhard Beilharz
85d33cefcf
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-01-31 16:21:49 +01:00
Eberhard Beilharz
0b8e628812
chore(linux): Improve robustness
Don't crash if we encounter a corrupt file.
2022-01-28 18:37:55 +01:00
Eberhard Beilharz
685eaa6ffc
fix(linux): Don't crash if we lack permissions
Also deal with other file I/O related exceptions and report them
as warnings.

This fixes #6171.
2022-01-28 18:37:54 +01: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
0d0c5b7967
Merge pull request #6135 from keymanapp/feat/linux/4273-wayland
feat(linux): add support for Wayland
2022-01-27 15:31:38 +01:00
Eberhard Beilharz
5d76e75a1b
feat(linux): Replace hirsute with impish 2022-01-26 08:50:54 +01:00
Eberhard Beilharz
b2b40b9987
feat(linux): Replace hirsute with impish 2022-01-26 08:46:47 +01:00
Eberhard Beilharz
072481198e
chore(linux): Add comment for clarification of code behaviour 2022-01-24 11:55:45 +01:00
Eberhard Beilharz
50a0c0a659
Merge pull request #6133 from keymanapp/fix/linux/6119-pythonbug
chore(linux): Revert workaround for Python bug
2022-01-21 08:24:42 +01:00
Eberhard Beilharz
d9e4ad7899
feat(linux): add support for Wayland
This allows to use Keyman with the Wayland display server.
One thing that doesn't yet work completely with this change is
caps-lock.

Partially implements #4273.
2022-01-20 19:21:57 +01:00
Eberhard Beilharz
c04fa525fc
chore(linux): Revert workaround for Python bug
A new version of python3-requests-cache is now available in
Debian and Ubuntu that fixes the bug, so we can revert the
workaround.

This reverts commit 10e169739d.
2022-01-20 11:54:52 +01:00
Eberhard Beilharz
d52d2f2825
chore(linux): Update changelogs for 14.0.284 2022-01-20 10:15:17 +01:00
Eberhard Beilharz
bcf519c1b1
chore(linux): Add metadata file for packaging 2022-01-19 12:15:55 +01:00
Eberhard Beilharz
edbf018361
Merge pull request #6118 from keymanapp/docs/setup
docs(linux): Add missing dependency
2022-01-19 08:15:22 +01:00
Eberhard Beilharz
10e169739d
fix(linux): Add workaround for Python bug
This works around a Python bug introduced in Python 3.10.2 and
3.9.10 (https://github.com/python-attrs/cattrs/issues/206).

This change should be reverted once that bug is fixed and new
Python packages are available in Debian/Ubuntu.

Fixes #6119.
2022-01-18 17:49:09 +01:00
Eberhard Beilharz
45e3a5157e
docs(linux): Add missing dependency 2022-01-17 17:26:30 +01:00
Eberhard Beilharz
9cb43bc939
Merge pull request #6106 from keymanapp/fix/linux/kmflpkg
fix(linux): Fix lintian errors
2022-01-17 10:08:41 +01:00