Commit graph

452 commits

Author SHA1 Message Date
Darcy Wong
d54ba65eb4 chore(common): Check in crowdin strings for Bura-Pabir 2021-10-19 16:14:03 +07:00
Darcy Wong
c5005728da Merge remote-tracking branch 'origin/master' into chore/common/crowdin-ha 2021-10-16 16:03:29 +07:00
Marc Durdin
024a36da9f
Merge pull request #5787 from keymanapp/chore/sentry-io
chore: sentry.io dsn 👮‍♂️
2021-10-06 07:32:43 +11:00
Marc Durdin
c951b35083 chore(linux): use secret in legacy sentry setup 2021-10-05 09:30:17 +11:00
Eberhard Beilharz
41c6f6940b
Merge pull request #5758 from keymanapp/fix/linux/cherry/5756
fix(linux): Don't crash displaying keyboard details 🍒
2021-10-04 12:22:26 +02:00
Eberhard Beilharz
ad80128ded
Merge pull request #5755 from keymanapp/fix/linux/cherry/5753
fix(linux): Don't crash with non-keyboard package file 🍒
2021-10-04 12:21:39 +02:00
Marc Durdin
3219b44624 chore: sentry.io dsn 2021-10-04 15:01:36 +11:00
Darcy Wong
ef1be0cecb chore(common): Check in crowdin strings for Hausa 2021-09-29 10:47:56 +07:00
Eberhard Beilharz
6f31014ba0
fix(linux): Don't crash displaying keyboard details
At least one user got a crash trying to click on the "About" button
to display keyboard details for the ekwtamil99uni keyboard. I can't
reproduce the problem, but this change adds additional code that
should prevent the crash from happening.

Fixes #5756.

(cherry picked from commit 3d44b9987d)
2021-09-27 17:43:51 +02:00
Eberhard Beilharz
ed1746d3d0
fix(linux): Don't crash with non-keyboard package file
If a user tries to a install a model .kmp file, we now display a
message box instead of crashing.

Fixes #5753.

(cherry picked from commit 98e1269ae2)
2021-09-27 17:07:35 +02:00
Darcy Wong
d089b962af chore(common): Check in crowdin strings for Shuwa Latin 2021-09-21 14:42:58 +07:00
Darcy Wong
349ed55840 chore(common): Update strings
* also includes untranslated strings (fallback to English)
2021-09-16 08:29:29 +07:00
Darcy Wong
091628aed2 chore(common): Update additional strings 2021-09-14 06:08:13 +07:00
Darcy Wong
42197c896b chore(common): Check in crowdin strings for simplified Chinese 2021-09-13 12:16:58 +07:00
Eberhard Beilharz
df156672a3
Merge pull request #5655 from keymanapp/fix/linux/language
fix(linux): Use first keyboard language if none given
2021-09-01 09:05:47 +02:00
Eberhard Beilharz
27cede213c
fix(linux): Fix km-config man page
Previously the included file replaced the entire description,
including the parameters. With this change the text from the include
file gets added to the beginning of the description.
2021-08-31 08:26:07 +02:00
Eberhard Beilharz
8eb2a3c738
fix(linux): Fix launch of km-config
km-config provides a .desktop file that allows the user to start
the configuration app like any other app. Unfortunately, a recent
change that improved the consistency of the manual pages broke
that because the .desktop file used to call km-config with the
parameter `-i` (plus file if given). With the recent change `-i`
now requires a filename, which caused `km-config` to output an error
and quit. For the user this looked like it didn't do anything.

This change adds the file/url as a new optional positional parameter
while keeping the existing `-i`/`--install` parameter.
2021-08-31 08:26:07 +02:00
Eberhard Beilharz
fe0e423433
fix(linux): Use first keyboard language if none given
This fixes a bug introduced in #3290 where we added using the
language from search. Unfortunately that broke things in a lot of
other places because we didn't test for the empty string.
2021-08-27 11:04:42 +02:00
Eberhard Beilharz
c3540e9f37
chore(linux): Fix uploading to Sentry
On local builds we shouldn't upload errors to Sentry. The
`build-utils.sh` script sets the `UPLOAD_SENTRY` environment variable
for that purpose. Also, Sentry doesn't like having an empty string
as pkgversion (which should no longer happen with the rest of this
change, but...)
2021-08-23 16:24:13 +02:00
Eberhard Beilharz
163874b81d
Merge pull request #5585 from keymanapp/fix/linux/5584-badimage
fix(linux): Handle corrupt icon file
2021-08-17 11:43:58 +02:00
Eberhard Beilharz
c8049a0cd2
fix(linux): Handle corrupt icon file
Fixes #5584.
2021-08-16 15:55:36 +02:00
Eberhard Beilharz
a98300f769
fix(linux): Fix failing tests 2021-08-16 11:56:05 +02:00
Eberhard Beilharz
58742b1a46
fix(linux): Check for valid zip file in km-package-install as well 2021-08-16 11:03:23 +02:00
Eberhard Beilharz
d48b5194e1
fix(linux): Check for valid kmp file
Before trying to install we now check if it's a valid zip file.
This fixes #5575.
2021-08-16 10:58:50 +02:00
Eberhard Beilharz
dabfea57ab
Merge pull request #5536 from keymanapp/chore/linux/5022-debian
chore(linux): Consolidate Debian source packages 📦
2021-08-06 12:02:54 +02:00
Eberhard Beilharz
3d10e6100f
chore(linux): Remove no longer needed debian directories
The previous commit created a consolidated toplevel `debian`
directory.
2021-08-06 11:25:00 +02:00
Eberhard Beilharz
79f92a150c
chore(linux): Consolidate Debian source packages
This change consolidates the Debian packages into a single source
package, with the exception of the legacy KMFL packages.

Fixes #5022.
2021-08-06 11:25:00 +02:00
Eberhard Beilharz
a2950bef7f
refactor(linux): Cleanup import of os.path
This change imports `os` instead of `os.path`. This is the
recommended way. It also reduces confusion whether to use
`os.path.whatever()` or just `path.whatever()`.
2021-08-04 12:24:07 +02:00
Eberhard Beilharz
c78800d4d8
fix(linux): Improve uninstallation
Previously uninstalling of a keyboard failed if the directory was
a symlink (e.g. with keyboards from unit tests). This change treats
symlinks differently.

Fixes Sentry issue KEYMAN-LINUX-32.
2021-08-04 11:24:03 +02:00
Eberhard Beilharz
3bd0173954
fix(linux): Don't crash with corrupt keyboard
If we try to install a keyboard that's missing some metadata
we shouldn't crash.

Fixes #5384, #5385.
2021-07-01 12:49:50 +02:00
Eberhard Beilharz
8b1a529f43
Merge pull request #5401 from keymanapp/fix/linux/issue-5400
fix(linux): Improve bitmap conversion
2021-07-01 09:00:41 +02:00
Eberhard Beilharz
f519c2447d
fix(linux): Improve bitmap conversion
Converting some bitmaps fail with a truncation error. This change
allows to successfully convert the bitmap files.

Fixes #5400.
2021-06-30 18:57:22 +02:00
Eberhard Beilharz
4d70382cbb
docs(linux): Improve help texts 2021-06-30 18:12:28 +02:00
Eberhard Beilharz
ca92c267e2
fix(linux): help2md tool 2021-06-30 18:12:22 +02:00
Eberhard Beilharz
3e938fe82c
fix(linux): Report Sentry related messages to stderr
This will make them not appear in the generated markdown help files.
2021-06-30 12:18:02 +02:00
Eberhard Beilharz
56e27473ac
Merge pull request #5373 from keymanapp/fix/linux/issue-5310
fix(linux): Save QR code in temporary directory
2021-06-28 16:53:52 +02:00
Eberhard Beilharz
a92c59f3be
Merge pull request #5372 from keymanapp/refactor/linux/issue-5309
refactor(linux): Centralize paths
2021-06-28 16:51:56 +02:00
Eberhard Beilharz
768de5f66b
fix(linux): Save QR code in temporary directory
Fixes #5310.
2021-06-25 19:41:51 +02:00
Eberhard Beilharz
50d19372bc
refactor(linux): Use path instead of os.path 2021-06-25 19:39:16 +02:00
Eberhard Beilharz
35d506c977
refactor(linux): Centralize paths
Introduce methods to get paths instead of hard-coding the values.
This also deprecates four methods (`user_keyman_dir`,
`user_keyman_font_dir`, `user_keyboard_dir`, and `get_isntall_area_path`).

This change also fixes a crash trying to install a package in the
shared area.
2021-06-25 19:25:48 +02:00
Eberhard Beilharz
0a2dd29e53
fix(linux): Fix restarting ibus when running with sudo
When installing in the shared area the user has to run
`km-package-install` with sudo so that he has sufficient permissions.
In that case we have to do extra work to restart ibus for the
logged-in user instead of root.

Fixes #5309.
2021-06-25 18:59:12 +02:00
Eberhard Beilharz
7c28e87ece
fix(linux): fix crash in km-package-install -p foo 2021-06-25 18:59:11 +02:00
Eberhard Beilharz
5bde5b5904
chore(linux): Add deprecated decorator 2021-06-25 18:52:10 +02:00
Eberhard Beilharz
76d2f65abc
refactor(linux): Use single quotes 2021-06-25 15:51:21 +02:00
Eberhard Beilharz
a11ee5105d
Merge pull request #5362 from keymanapp/fix/linux/issue-5306
fix(linux): fix tab completion for command line tools
2021-06-25 08:50:53 +02:00
Eberhard Beilharz
82184d7f2b
fix(linux): respect XDG_DATA_HOME environment variable 2021-06-24 18:56:00 +02:00
Eberhard Beilharz
70b88790df
fix(linux): Don't add duplicate entries when reinstalling keyboard
When we update/reinstall an existing keyboard we don't want to
add a new entry to the list of keyboards.

Fixes #5308.
2021-06-24 16:09:27 +02:00
Eberhard Beilharz
2831084b87
fix(linux): respect XDG_CACHE_HOME environment variable 2021-06-24 14:54:03 +02:00
Eberhard Beilharz
cafbdef35a
fix(linux): fix tab completion for command line tools
Fixes #5306
2021-06-24 11:47:13 +02:00
Gunnar Hjalmarsson
fbccf18fcd
fix(linux): Add libglib2.0-bin to keyman Depends
Fixes #5344

(cherry picked from commit 12e2c4c2c1)
2021-06-24 10:47:35 +02:00