Commit graph

758 commits

Author SHA1 Message Date
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
Eberhard Beilharz
e862d3bfe5
chore(linux): Don't report on Sentry when running unit tests
When running unit tests we try to install some keyboards with
invalid URLs which normally results in an issue being reported on
Sentry. This change detects when we're running unit tests and
in that case doesn't initialize Sentry reporting.
2021-01-27 16:27:28 +01:00
Eberhard Beilharz
88637bb818
chore(linux): Don't report on Sentry when running unit tests
When running unit tests we try to install some keyboards with
invalid URLs which normally results in an issue being reported on
Sentry. This change sets an environment variable when running
the tests and modifies the initialization code to not initialize
Sentry reporting when the environment variable `KEYMAN_NOSENTRY`
is set to 1.
2021-01-27 15:59:49 +01:00
Darcy Wong
aa82cbcdd0 chore(linux): Check in crowdin files for de 2021-01-19 15:18:13 +07:00
Darcy Wong
e2d4388506
Merge pull request #4228 from keymanapp/common/crowdin-km
chore(common): Check in crowdin files for km (Khmer)
2021-01-14 08:13:29 +07:00
Eberhard Beilharz
6b999bc911
chore(linux): Update debian metadata based on Debian repos
This is a cherry-pick of PR#4223:

- Add script to create debian source package
- Update debian metadata based on Debian repos
- Remove some lintian warnings and errors
- Remove support Xenial
- Reduce size of icon
- Omit confusing values from gbp.conf
2021-01-12 18:38:18 +01:00
Darcy Wong
e3029c3209 chore(linux): Check in crowdin files for km 2021-01-08 14:57:35 +07:00
Marc Durdin
c5ea3a5db6 chore(common): update copyright year in various locations 2020-12-22 10:56:55 +11:00
Eberhard Beilharz
733ada2d6b
feat(linux): Rename onboard package
This change implements the Keyman part of #3966. The `keyman`
package now recommends the installation of `onboard-keyman` instead
of `onboard`.
2020-12-02 11:52:48 +01:00
Eberhard Beilharz
cf515cefdf
chore(linux): Fix launchpad build (closes #3875)
This change fixes the launchpad build script and also improves
updating the watch file.

If we use the variables that uscan provides we don't have to
hard-code the package name in the watch file. This makes it possible
to use a generic one for all packages.
2020-11-20 12:15:22 +01:00
Darcy
1bf3fe936b fix(linux): Remove version.sh
Remove version.sh and determine version/tier from the .md files
2020-10-09 13:55:18 +07:00
Darcy Wong
9bcb343e03
Merge pull request #3593 from keymanapp/fix/linux/json-decoder
fix(linux/config): Catch if kmp.json is invalid JSON
2020-09-18 11:42:11 +07:00
Darcy
673c5dbfb1 chore(linux/config): Update .pot file again 2020-09-18 11:24:44 +07:00
Darcy
07d18fa63a chore(linux/config): Tweak error message about keyboard being damaged 2020-09-18 11:19:16 +07:00
Darcy
ca26715549 chore(linux/config): Update .pot file 2020-09-18 11:01:53 +07:00
Darcy
f95acb6b98 fix(linux/config): Display dialog when metadata is invalid 2020-09-18 11:00:49 +07:00
Darcy
5ff61520e6 fix(linux/config): Catch if kmp.json is invalid JSON 2020-09-17 14:02:48 +07:00
Darcy
a409bfd791 fix(linux/config): Check if file exists before creating hard link 2020-09-17 12:57:55 +07:00
Eberhard Beilharz
f475c01183
feat(linux): Update package dependencies
Trying to build the package on Ubuntu 20.04 Focal revealed some
missing dependencies.
2020-08-25 12:03:15 +02:00
Eberhard Beilharz
a69a48ddce
fix(linux): Add missing Python dependencies
Previously these dependencies were defined in setup.py, but now
that we don't use setup.py during packaging we have to define them
as build dependencies in `control`, otherwise the package build
will show missing module errors on Sentry.
2020-08-24 20:03:18 +02:00
Eberhard Beilharz
6181479f2b
fix(linux): Add Sentry dependency to setup.py 2020-08-24 19:49:00 +02:00
Eberhard Beilharz
b6fbf29c2f
fix(linux): Fix dependencies for Sentry error reporting 2020-08-24 19:45:26 +02:00
Eberhard Beilharz
55e6ab117e
fix(linux): Fix makefile 2020-08-24 19:31:18 +02:00
Eberhard Beilharz
55125650fd
feat(linux): Package localizations
This change adds the localization files to the debian package. It
also updates the path to the localization files so that the installed
files will be found.
2020-08-24 19:31:18 +02:00
Eberhard Beilharz
3e5c0aefac
Merge pull request #3495 from keymanapp/feat/linux/terminology
feat(linux): Small UI improvements
2020-08-24 10:36:48 +02:00
Eberhard Beilharz
1c8da049ab
feat(linux): Small UI improvements
- Remove "package" from the tooltips text since that might be
  confusing to users.
- Also make title of Welcome (Help) dialog optionally say "installed"
  instead of always so that we open that dialog via the Help button
  we just display the keyboard name.
- Refactor Keyboard Details dialog to remove an unnecessary box.
- Add padding after keyboard details in Keyboard Details dialog.
2020-08-20 15:22:50 +02:00
Eberhard Beilharz
678a5c0273
feat(linux): Add link to share online
This change modifies the displayed QR code and its text to closer
match the way things are on Windows, i.e. display a hyperlink
instead of just the text to share online.
2020-08-20 14:58:15 +02:00