Commit graph

384 commits

Author SHA1 Message Date
Eberhard Beilharz
2d225f65a0
Merge pull request #5115 from keymanapp/chore/linux/issue-4768
chore(linux): Remove unnecessary dependency on kmflcomp
2021-05-20 08:41:45 +02:00
Eberhard Beilharz
adad64fa60
Merge pull request #5113 from keymanapp/chore/linux/moredependency
chore(linux): Swap order of dependency
2021-05-20 08:41:18 +02:00
Eberhard Beilharz
0bde18d118
Merge pull request #4932 from keymanapp/refactor/linux/InstallKmp
refactor(linux): Refactor `install_kmp.py`
2021-05-20 08:41:05 +02:00
Eberhard Beilharz
8c8823f7ab
chore(linux): Swap order of dependency
This was already partially done in 4dd0a48b2, but we missed this
line.
2021-05-19 17:11:45 +02:00
Eberhard Beilharz
13a31f4079
chore(linux): Remove unnecessary dependency on kmflcomp
Closes #4768.
2021-05-19 17:07:06 +02:00
Darcy Wong
f31edd8b52 chore(common): Check in crowdin strings for Amharic 2021-05-19 09:12:39 +07:00
Eberhard Beilharz
c35e5ff9cc
refactor(linux): Refactor install_kmp.py
- Introduce `InstallKmp` class
- Remove unused `list_files` method
- Extract common method that `install_kmp_shared` and
  `install_kmp_user` use
- Make internal methods protected
2021-05-17 10:58:04 +02:00
Eberhard Beilharz
4dd0a48b2b
fix(linux): Swap order of dependencies for Debian package
It turns out that the Debian package build system only considers
the first alternative; python3-raven isn't available on the current
Debian version, however we still need it on Ubuntu 18.04 Bionic where
python3-sentry-sdk is not available. This change swaps the
alternatives and so should work both on Debian as well as for
Bionic.
2021-05-11 16:43:22 +02:00
Darcy Wong
923d8be745 fix(common): Remove whitespace for formatting 2021-04-30 09:08:41 +07:00
Darcy Wong
fa72dc5506 chore(common): Update some more strings 2021-04-28 23:15:59 +07:00
Darcy Wong
ab7e7f7ff1 chorre(common): Check in crowdin files for Azerbaijani 2021-04-28 15:17:25 +07:00
Eberhard Beilharz
3adc8e8695
Merge pull request #4971 from keymanapp/fix/linux/issue-4908
fix(linux): Fix crash with incomplete metadata (#4908)
2021-04-26 00:01:13 -07:00
Eberhard Beilharz
31a0de32fe
fix(linux): Fix crash with incomplete metadata (#4908) 2021-04-23 11:39:27 +02:00
Eberhard Beilharz
319b7d20ee
fix(linux): Don't crash if kmp file vanishes (fixes #4907) 2021-04-23 11:13:46 +02:00
Eberhard Beilharz
599b602603
chore(linux): Merge branch 'master' into feat/linux/sentry
# Conflicts:
#	linux/keyman-config/keyman_config/handle_install.py
2021-04-20 11:49:43 +02:00
Eberhard Beilharz
9fcddb8afa
fix(linux): Set userid instead of username
Username expects a string, so we set the userid instead.
2021-04-20 11:46:15 +02:00
Eberhard Beilharz
9d7be1b6b5
feat(linux): Log some errors as critical
Some errors we want to be reported on Sentry, so we change those
to critical.
2021-04-20 11:45:07 +02:00
Eberhard Beilharz
68f9fd315e
feat(linux): Use hash of username 2021-04-20 11:14:23 +02:00
Eberhard Beilharz
4ac6b83088
Merge pull request #4913 from keymanapp/chore/linux/cleanup
chore(linux): Remove experimental scripts
2021-04-20 02:09:07 -07:00
Eberhard Beilharz
0845a9d6c8
Merge pull request #4912 from keymanapp/fix/linux/issue-4911
fix(linux): Don't crash on network problem (fixes #4911)
2021-04-20 02:03:18 -07:00
Eberhard Beilharz
09fe5e86a5
feat(linux): Improve Sentry crash reporting
- don't log regular errors - those are handled and we report them
  to the user, but don't want to create a Sentry error
- log username in crash report
2021-04-19 18:56:06 +02:00
Eberhard Beilharz
28347053b3
chore(linux): Remove experimental scripts 2021-04-19 18:09:56 +02:00
Eberhard Beilharz
1c04d5200c
fix(linux): Don't crash on network problem (fixes #4911)
If the network is down or the server name can't be resolved we
shouldn't crash. This change logs an error instead.
2021-04-19 18:06:14 +02:00
Eberhard Beilharz
801810f72c
fix(linux): don't crash on legacy non-Unicode files
If we encounter a legacy non-Unicode file we now simply ignore the
file instead of crashing.

This fixes #4876.

(cherry picked from commit 59c45c4671)
2021-04-19 16:14:41 +02:00
Eberhard Beilharz
0e3c672b63
fix(linux): Fix crash if <kbd>.json doesn't contain description
This fixes #4823. Cherry-pick of PR #4835.

(cherry picked from commit ebe49cfc6f)
2021-04-01 12:26:16 +02:00
Darcy Wong
41745a7b0d chore(common): Check in crowdin for Fulah 2021-04-01 09:12:31 +07:00
Eberhard Beilharz
5c1c114e5d
fix(linux): Fix crash if query doesn't contain bcp47 tag (#4800)
(cherry picked from commit c9de93d478)
2021-03-29 09:14:38 +02:00
Darcy Wong
be6a906f79
Merge pull request #4672 from keymanapp/chore/common/crowdin-de-b14s8-utf8
chore(android/app,ios/app): Update crowdin for de
2021-03-15 13:58:03 +07:00
Darcy Wong
abfb1657eb chore(common): Update crowdin for de 2021-03-15 13:16:34 +07:00
Darcy Wong
718279b574 chore(common): Update crowdin for km 2021-03-15 13:11:17 +07:00
Eberhard Beilharz
e371fcb8b8
chore(linux): Verify signed source packages 2021-03-08 19:29:27 +01:00
Eberhard Beilharz
ec6ddf7e97
chore(linux): Fix more lintian warnings 2021-03-08 18:27:11 +01:00
Eberhard Beilharz
22ba0d6866
chore(linux): Clarify licenses 2021-03-08 18:26:50 +01:00
Eberhard Beilharz
3a78ef4be1
chore(linux): Fix some lintian warnings for Debian package 2021-03-08 17:38:28 +01:00
Eberhard Beilharz
63cefab0eb
chore(linux): Improve Sentry environment setting
When running from source we set the environment to `local` when
reporting to Sentry. This change also adds the package version and
the tier as additional Sentry tags.

This is a follow-up of PR #4581.
2021-03-04 16:01:52 +01:00
Eberhard Beilharz
96c688551d
Merge pull request #4581 from keymanapp/chore/linux/sentry
chore(linux): Don't report to Sentry in dev environment
2021-03-04 15:57:08 +01:00
Eberhard Beilharz
33bf5750b0
fix(linux): Improve version number
This change modifies the reported version number for km-config:
if km-config is installed from a debian package, the package
version will be output as well, e.g.:
`km-config version 14.0.252-beta (package version 14.0.252-1+bionic1)`

Otherwise the output will be identical to before:
`km-config version 14.0.252-beta-local`.

This change also modifies the script that sets the version number so
that builds on Jenkins are now detected in addition to TC.

This fixes #4579.
2021-03-03 20:01:34 +01:00
Eberhard Beilharz
0158e17636
chore(linux): Don't report to Sentry in dev environment
When the environment variable KEYMAN_NOSENTRY is set we'll skip
reporting to Sentry. This is helpful on development machines.
2021-03-03 19:37:27 +01:00
Darcy Wong
2c6bff4f43 chore(linux): Check in crowdin files for de 2021-03-03 14:47:16 +07:00
Eberhard Beilharz
6d69279a9c
feat(linux): Improve output of km-package-list-installed
Closes #4465.
2021-02-11 17:55:25 +01:00
Eberhard Beilharz
ee56b47923
fix(linux): Fix dependencies on packages
The way we previously specified the Sentry library doesn't work
when building on ppa because the build process there doesn't set
the flags.
2021-02-10 16:59:06 +01:00
Eberhard Beilharz
bb20389dc4
fix(linux): Also use staging site for beta versions 2021-02-09 17:31:07 +01:00
Eberhard Beilharz
88e83e191e
fix(linux): Address code review comment
Also add additional test cases from Windows implementation.
2021-02-09 15:51:31 +01:00
Eberhard Beilharz
69402fbd79
fix(linux): Use new parameter 2021-02-08 17:57:10 +01:00
Eberhard Beilharz
42f3f36013
fix(linux): improve BCP 47 canonicalization
This is based on #4425. Also a few additional bug fixes that showed
up on the way.
2021-02-08 17:50:05 +01:00
Darcy Wong
9938af36a5
Merge pull request #4420 from keymanapp/chore/common/crowdin-fr
chore(common): Check in crowdin files for French
2021-02-08 16:05:36 +07:00
Eberhard Beilharz
3e586bc58e
fix(linux): Fix packaging
Tell the Python build that we have a new module in a subdirectory.
Part of the improvements for #3399.
2021-02-05 18:55:17 +01:00
Darcy Wong
f2f80151fb chore(linux): Check in crowdin files for fr 2021-02-04 08:27:50 +07:00
Eberhard Beilharz
693f13a953
fix(linux): Improve fix for #3399
This improves the implementation for normalizing language tags
when installing a keyboard. Based on the Windows implementation
in `Keyman.System.CanonicalLanguageCodeUtils.pas`.

One difference to the Windows implementation is that the mapping of
3- to 2-letter tags is based on `langtags.json` instead of
`iso639-3.tab`.

Closes #3399.
2021-02-03 19:08:03 +01:00
Eberhard Beilharz
a54a711943
fix(linux): Don't crash if uninstalling last keyboard
If a Keyman keyboard is the only installed/selected keyboard in Gnome
and the user uninstalls this in km-config, we have to set the value
for `sources` to an empty array variant. Previously this crashed.

Fixes #4375.
2021-02-02 17:26:08 +01:00