Commit graph

1873 commits

Author SHA1 Message Date
Eberhard Beilharz
1cb0d48671
Merge pull request #6529 from keymanapp/chore/linux/l10n
chore(linux): Fix l10n language mappings
2022-04-14 09:13:02 +02:00
Darcy Wong
1e42d360c6
Merge pull request #6509 from keymanapp/chore/common/crowdin-pt
chore(common): Add Crowdin strings for Portuguese (pt-PT)
2022-04-14 06:11:02 +07:00
Eberhard Beilharz
6388afadce
chore(linux): Fix l10n language mappings
Also rename the .po files to match the new mappings:

- `bwr_NT.po` -> `brw_NG.po`: the language shows up as `bwr-ng` in
  Crowdin, and there's no `NT` country code.
- `ha_HG.po` -> `ha.po`: the language shows up as `ha` in Crowdin and
  there's no `HG` country code.
- `shu_latn.po` -> `shu@latin.po`: the convention seems to be to put
  the script after `@` sign.
2022-04-13 11:44:06 +02:00
Eberhard Beilharz
5eb82d70a2
Merge pull request #6522 from keymanapp/fix/linux/6256-fileVersion
fix(linux): test fileVersion during package install
2022-04-13 10:10:02 +02:00
Eberhard Beilharz
be52f79194
chore(linux): Update Debian changelog
Add an entry to match what got uploaded to Debian.
2022-04-12 15:41:52 +02:00
Eberhard Beilharz
4c1f6e7be2
fix(linux): Refactor and fix tests
- patch `is_fcitx_running()` so that tests will work without X11
- move common test code to methods
- move some tests to subtests
2022-04-12 12:09:55 +02:00
Eberhard Beilharz
ad2a6b713f
fix(linux): test fileVersion during package install
Fixes #6256
2022-04-11 18:22:46 +02:00
Eberhard Beilharz
3eb4b58a58
fix(linux): Remove tab completion warning
This is done by replacing the deprecated `imp` module.

Fixes #6227.
2022-04-11 16:30:22 +02:00
Darcy Wong
6b2a71a76e
Merge pull request #6501 from keymanapp/chore/common/crowdin-km-spacebar
chore(common): Update km strings
2022-04-11 15:12:19 +07:00
Darcy Wong
243361f052
Merge pull request #6508 from keymanapp/chore/common/crowdin-az-2
chore(common): Update Crowding strings for Azerbaijani
2022-04-11 07:42:31 +07:00
Darcy Wong
f0e41833c4 chore(common): Add Crowdin strings for Portuguese 2022-04-08 11:36:18 +07:00
Darcy Wong
8770c705cb chore(common): Update Crowding strings for Azerbaijani 2022-04-08 10:01:23 +07:00
Darcy Wong
91038ef6f2 Merge remote-tracking branch 'origin/beta' into chore/common/crowdin-km-spacebar 2022-04-08 06:28:18 +07:00
Eberhard Beilharz
07ae306fd4
chore(linux): change to Architecture: any
As per request by Debian this changes the architecture to `any`
so that it'll try to build on all architectures.

See https://lists.debian.org/debian-input-method/2022/03/msg00095.html.
2022-04-07 17:44:00 +02:00
Darcy Wong
45ca87dae1 chore(common): Update km strings 2022-04-07 21:58:07 +07:00
Eberhard Beilharz
57d770bd6c
chore(linux): Update changelog file 2022-04-07 16:34:04 +02:00
Eberhard Beilharz
e4a03a1f53
Merge pull request #6460 from keymanapp/docs/linux/readme
docs(linux): Update testing section in readme
2022-04-04 15:23:01 +02:00
Darcy Wong
e6f8939721 chore(common): Update in-app help versions to 15.0 2022-04-04 11:52:13 +07:00
Eberhard Beilharz
655de30bc2
docs(linux): Update testing section in readme 2022-04-01 19:08:07 +02:00
Eberhard Beilharz
aa7537730a
feat(linux): Allow to run ibus tests on Wayland
This change modifies the `run-tests.sh` script so that tests
run on both Wayland (if supported) and X11 unless
`--no-wayland` or `--no-x11` is specified.

This change also adds the new argument `--wayland` to the
`ibus-keyman-tests` executable which runs the tests under
Wayland.

Note that running Wayland tests is only possible in Ubuntu 21.10+
because it requires a version of `mutter` that supports the
headless option which got added in mutter 40.
2022-03-31 17:52:50 +02:00
Darcy Wong
5bcac1b1bf chore(common): Update crowdin strings for km 2022-03-31 20:59:07 +07:00
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