Commit graph

2668 commits

Author SHA1 Message Date
Eberhard Beilharz
07a2cb5bad
Merge pull request #11852 from keymanapp/feat/linux/7697_SimulateAltGr
feat(linux): implement Linux side of SimulateAltGr option 🏁
2024-06-26 12:34:08 +02:00
Eberhard Beilharz
f6f4d3f165
Merge pull request #11861 from keymanapp/fix/linux/11855_install_cache
fix(linux): ignore exceptions trying to install cache
2024-06-25 19:17:38 +02:00
Sabine
bc5b502cf0 feat(linux): comments for mc_kmxfile 2024-06-25 17:12:58 +02:00
Eberhard Beilharz
bcc09b78c8
chore(linux): use shared meson config
Fixes: #8406
2024-06-24 19:08:12 +02:00
Eberhard Beilharz
f0d365e4b8
chore(linux): remove unused building with pbuilder
We no longer build with pbuilder/cowbuilder, so this change removes
that unnecessary code. This also changes the `deb.sh` script which no
longer needs parameters since it's only purpose is now to build the
source package, and removes the no-longer needed targets from `Makefile`.

This solves #9356 as good as possible. We still have the list of
distributions in two places, but I don't see a way to import the list
of distributions to the packaging GHA.

Fixes: #9356
2024-06-24 18:37:10 +02:00
Eberhard Beilharz
582ccbec11
fix(linux): ignore exceptions trying to install cache
Using the cache when getting data from the server is just an optimization
to speed up things. However, things still work if we don't use the cache.
This change therefore catches the AttributeError that sometimes happen
on some machines for unknown reasons and falls back to not using the
cache.

Fixes: 11855
Fixes: KEYMAN-LINUX-6R
2024-06-24 18:13:28 +02:00
Sabine
2b59c3ca1b feat(linux): CodePointToU16String 2024-06-24 16:05:49 +02:00
Sabine
0075b8f04a feat(linux): createCompleteVector_US 2024-06-24 14:57:37 +02:00
Sabine
252c409400 feat(linux): comment and assert in KMX_ToUnicodeEx when surrogate pairs are used 2024-06-24 10:35:54 +02:00
Sabine
7051754154 feat(linux): work on 2.nd round of comments 11816 2024-06-24 09:44:44 +02:00
Sabine
f9c05b872a feat(linux): second round of comments for 11816 2024-06-24 09:25:33 +02:00
Eberhard Beilharz
3169cc0fa5
feat(linux): implement engine side of SimulateAltGr option
- read value from dconf
- set up Core environment
- if dconf value changes re-create the Core environment

Fixes: #7697
2024-06-21 18:27:06 +02:00
Eberhard Beilharz
3c800ed65a
feat(linux): implement UI part of SimulateAltGr option 2024-06-21 18:24:02 +02:00
Eberhard Beilharz
d93fb6aa0b
refactor(linux): rename methods that deal with keyboard options
This renames the existing methods that read and write keyboard options
so that it's visible from the name that they read/write keyboard options.
This is in preparation of new methods that read and write more general
options.
2024-06-21 18:22:29 +02:00
Eberhard Beilharz
2b7d74f4b6
refactor(linux): add KeymanOption class for options 2024-06-21 18:08:56 +02:00
Sabine
1ddbcf68be feat(linux):work on comments for keymap 2024-06-21 18:03:44 +02:00
Sabine
0eb96a70ac feat(linux):check buffer size moved 2024-06-21 09:45:21 +02:00
Sabine
e4e05a794f feat(linux):check buffer size moved 2024-06-21 09:40:52 +02:00
Sabine
404d888fde feat(linux): work on 2nd round of comments on PR 11816 2024-06-20 17:44:21 +02:00
Sabine
f22088c2d9 Merge branch 'feat/linux/mcompile-rework_deadkey' into feat/linux/mcompile-rework_mc_import_rules 2024-06-20 09:36:08 +02:00
Eberhard Beilharz
0cf24fddc2
Merge pull request #11789 from keymanapp/feat/linux/9396_RecreateMissingFiles
feat(linux): re-create missing files at run-time
2024-06-19 16:35:52 +02:00
Sabine
e0bd714f5f feat(linux): edit nit picks 2024-06-19 15:33:17 +02:00
Sabine
ade07bb298 feat(linux): move CODE__SIZE and #include <../../../../common/include/kmx_file.h> instead of double #include "kmx_file.h" 2024-06-19 12:18:54 +02:00
Sabine
d2f031e9bc feat(linux): function ensureValidInputForKeyboardTranslation instead of 2 comparisons at several places 2024-06-19 08:49:09 +02:00
Sabine
80390b6b61 feat(linux): start rework mc_import_rules 2024-06-18 11:10:38 +02:00
Sabine
f07cb3a12e feat(linux): change variable names 2024-06-18 10:03:28 +02:00
Sabine
801baf55d0 feat(linux): remove comments 2024-06-18 09:34:45 +02:00
Sabine
f724b4e79e feat(linux): layout changes only 2024-06-18 09:26:50 +02:00
Eberhard Beilharz
2ebb0bd554
Merge pull request #11775 from keymanapp/fix/linux/restartibus
fix(linux): restart ibus after manual integration test run
2024-06-17 17:41:36 +02:00
Sabine
fa192039b5 feat(linux): rework deadkey.cpp/.h format document 2024-06-17 17:25:03 +02:00
Sabine
4cf80439f0 feat(linux): rework deadkey.cpp/.h 2024-06-17 17:21:56 +02:00
Eberhard Beilharz
64515b025b
feat(linux): re-create missing files at run-time
This changes re-creates the `<package>.bmp.png` as well as the
`<package>.json` files if they are missing when `km-config` starts.

- `<package.bmp.png` gets created from a `.bmp` or `.ico` file included
in the package, similar to what happens when installing the keyboard.
- `<package>.json` gets created from downloaded metadata, similar to
the installation.

If the files are missing or we can't write to the directory, e.g. if it's
the shared area, we skip the re-creation.

Fixes: #9396
2024-06-14 18:11:11 +02:00
Eberhard Beilharz
a5b9321fde
refactor(linux): make method private and change variable names 2024-06-14 15:58:21 +02:00
Eberhard Beilharz
1e67022a44
change(linux): restart ibus only when manually running tests
If we try to restart ibus when we run the tests as part of a build we
run into a timeout in the test teardown.
2024-06-14 15:37:43 +02:00
Eberhard Beilharz
407cfa8f33
chore(linux): address code review comments
Co-authored-by: Marc Durdin <marc@durdin.net>
2024-06-14 15:09:13 +02:00
Sabine
724e5b6eaf feat(linux): rename symbols more 2024-06-14 14:49:34 +02:00
Eberhard Beilharz
13700e4a9f
Merge pull request #11671 from keymanapp/chore/linux/cherry-pick/changelog
chore(linux): Update debian changelog 🍒
2024-06-14 08:32:52 +02:00
Eberhard Beilharz
b93c459515
fix(linux): restart ibus after manual integration test run
Previously keyboard input was no longer input after manually running
the integration tests. This change fixes this by restarting ibus after
the tests. However, we only want to do that if the ibus instance we
started for the tests got killed. The cleanup script might get called
multiple times, so we need this check.
2024-06-13 17:50:41 +02:00
Sabine
39c25c4cf0 feat(linux): renaming symbols: mostly capital-non-capital at beginning of symbol name 2024-06-12 10:20:30 +02:00
Marc Durdin
577986bb50
Merge pull request #11523 from keymanapp/chore/common/8399-cleanup-meson-warnings
chore(common): cleanup meson deprecations and warnings
2024-06-08 10:46:41 +10:00
Marc Durdin
60303791ac
Merge pull request #11728 from keymanapp/chore/merge-master-into-linux-mcompile
chore: merge master into linux-mcompile 🐘
2024-06-07 19:02:11 +10:00
Eberhard Beilharz
d52de2d878
docs(linux): Update description of deb-packaging.sh 2024-06-04 16:38:11 +02:00
Eberhard Beilharz
e2147daac8
chore(linux): Update debian changelog
(cherry picked from commit e96becc26d)
2024-06-03 21:58:30 +02:00
Marc Durdin
a385d4806d
Merge branch 'epic/linux-mcompile' into chore/merge-master-into-linux-mcompile 2024-05-25 05:51:13 +07:00
Marc Durdin
1b3be1540a chore(common): update linux documentation and control for meson 1.0 2024-05-24 14:49:27 +07:00
Marc Durdin
900f248558 chore(common): cleanup meson deprecations and warnings
Most warnings have been cleaned up:

* min meson version is now 1.0
* additional parameters such as check, recursive added
* uses now global_source_root() instead of source_root()
* catting files on Windows wasn't actually working -- used in unit
  tests. This is because meson passes paths with forward slashes to
  cmd.exe `type` command, which doesn't understand them. This is bad,
  because we were running effectively null tests for the affected tests.
  Fortunately, the same tests were configured correctly on macOS and
  Linux, and were all passing, so no serious damage.

There is one significant warning left:

`WARNING: Project targets '>=1.0' but uses feature deprecated since
'0.64.0': copy arg in configure_file. Use fs.copyfile instead`

Refer to mesonbuild/meson#12792. I have opened a PR against that to
undeprecate `copy` kwarg in a future version of meson.

Fixes: #8399
2024-05-24 08:46:52 +07:00
Eberhard Beilharz
81957750aa
Merge pull request #10637 from keymanapp/chore/linux/10626_apichecks
chore(linux): Move API verification to separate action
2024-05-21 19:03:36 +02:00
Darcy Wong
15c1fddae8 chore(common): Clear whatsnew help files
Clear whatsnew.md files for beginning of 18.0 alpha development
2024-05-17 09:32:27 +07:00
Steven R. Loomis
a8776afac2 chore(linux): yet more updates for libkeymancore version 2024-05-08 14:51:43 -05:00
Steven R. Loomis
165bf1848f
Update linux/debian/libkeymancore2.symbols
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2024-05-08 09:08:26 -05:00