Commit graph

878 commits

Author SHA1 Message Date
Marc Durdin
77e71df81b chore: Merge branch 'master' into chore/B14S8-beta-to-master 2021-03-22 06:16:44 +11:00
Eberhard Beilharz
044e53198a
fix(linux): Fix switching to keyboard in middle of line (#4678)
Don't re-set context if it changed because the cursor location was
wrong. When the user switches to the EuroLatin keyboard in the
middle of the line, we're getting a wrong cursor location. This will
be fixed with the next keypress, but it leads to the context string
suddenly having more characters added to the front. If we re-set the
context because it's different now we will loose the information we
previously added to the context.

We now compare the end of the string. If the new context string ends
with the old context string we assume that the cursor position got
updated and don't re-set the context.

This fixes #4678.
2021-03-18 17:29:21 +01:00
Eberhard Beilharz
16dd9f9369
chore(linux): Ignore buildtools in keyman-config tarball
`buildtools/build-langtags.py` gets executed before creating the
source tarball, so we don't need it in the source package. Excluding
it reduces confusion because the files it requires are not found
in the source package.
2021-03-15 12:44:41 +01: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
9a4b9f0bca
chore(linux): Move signature files as well
This will take care of another lintian warning on Debian.
2021-03-11 17:09:19 +01:00
Eberhard Beilharz
3a092d4998
chore(linux): Update readme 2021-03-09 16:59:16 +01:00
Marc Durdin
9f7134427b chore: merge master into branch 2021-03-09 09:33:14 +11:00
Eberhard Beilharz
4599ce9912
Update linux/LICENSE.md
Co-authored-by: Marc Durdin <marc@durdin.net>
2021-03-08 20:46:20 +01:00
Eberhard Beilharz
337039639b
chore(linux): Force signature verification
The previous setting didn't complain if uscan didn't find a signature
which doesn't help security wise. It would still allow an attacker
to modify the source package. This change now requires a valid
signature for the source package.
2021-03-08 19:42:07 +01: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
78ecbea855
Update linux/scripts/reconf.sh
Co-authored-by: Marc Durdin <marc@durdin.net>
2021-03-04 20:33:48 +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
Eberhard Beilharz
a5d0e7cdae
Merge pull request #4569 from keymanapp/feat/linux/issue-4542
chore(common/core/desktop): write debug output to console
2021-03-03 14:54:59 +01:00
Darcy Wong
2c6bff4f43 chore(linux): Check in crowdin files for de 2021-03-03 14:47:16 +07:00
Eberhard Beilharz
64f9f9297a
chore(linux): Improve readme
Also ignore some more generated files.
2021-03-02 16:55:22 +01:00
Marc Durdin
5cd007683c chore: Merge branch 'master' into chore/beta-master-B14S6-part-2 2021-02-22 19:51:56 +11:00
Eberhard Beilharz
6d69279a9c
feat(linux): Improve output of km-package-list-installed
Closes #4465.
2021-02-11 17:55:25 +01:00
Marc Durdin
c1b9614973 chore: Merge branch 'master' into chore/beta-master-B14S6-part-1 2021-02-11 16:26:28 +11: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
2073557470
Merge pull request #4439 from keymanapp/fix/linux/3399-langtag
fix(linux): improve BCP 47 canonicalization
2021-02-09 17:30:53 +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
Darcy Wong
fd1ae5ed90
Merge pull request #4414 from keymanapp/chore/linux/check-in-markdown-help
chore(linux): Check in markdown help for Linux
2021-02-09 06:09:32 +07:00
Darcy Wong
ce6f3a5a13
Update linux/help/common/index.md
Co-authored-by: Marc Durdin <marc@durdin.net>
2021-02-09 06:09:21 +07: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
7147494441 chore(linux): Merge remote-tracking branch 'origin/beta' into chore/linux/check-in-markdown-help 2021-02-05 13:12:00 +07:00
Darcy Wong
f2f80151fb chore(linux): Check in crowdin files for fr 2021-02-04 08:27:50 +07:00
Darcy Wong
25d0837310 chore(linux): Remove reference php help files 2021-02-04 06:22:07 +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
Darcy Wong
e87db51548 chore(linux): Check in markdown help for Linux 2021-02-03 17:05:05 +07: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
Eberhard Beilharz
89df5a6b7c
chore(linux): Improve launchpad.sh script
If uscan fails (e.g. because there is no new version available
because the workspace is in a dirty state) we now output an error
message instead of silently failing.
2021-01-27 11:57:18 +01:00
Eberhard Beilharz
caea99355d
chore(linux): Fix typo 2021-01-26 17:03:47 +01:00
Darcy Wong
aa82cbcdd0 chore(linux): Check in crowdin files for de 2021-01-19 15:18:13 +07:00
Eberhard Beilharz
f3b8ccf07f
chore(linux): Improve version number for debian package
This change switches the package version number for packages that
are intended for the Debian package repo to match the Debian policies.

It also removes the comment from the watch file.
2021-01-14 17:39:49 +01: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