Commit graph

15 commits

Author SHA1 Message Date
Eberhard Beilharz
12165d73bc
fix(linux): Fix logging
We can't initialize Sentry during module initialization because our
`initialize_sentry` logs some status info. Setting the logging level
later on is then a no-op, breaking verbose and very-verbose logging.

This change fixes this by putting Sentry initialization into a
separate method that gets called after we set the log level.

Also refactor some common code into methods that appear in all our
executables.
2023-07-19 19:47:28 +02:00
Eberhard Beilharz
8b40330ed6
fix(linux): Fix display of installed keyboard version
Previously if there was a newer version available on keyman.com
we showed that version number instead of the version number of
the installed keyboard.
2023-06-07 18:58:07 +02:00
Eberhard Beilharz
a0af6de10a
chore(linux): Refactorings 2023-06-07 18:58:06 +02:00
Eberhard Beilharz
4d70382cbb
docs(linux): Improve help texts 2021-06-30 18:12:28 +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
6d69279a9c
feat(linux): Improve output of km-package-list-installed
Closes #4465.
2021-02-11 17:55:25 +01:00
Eberhard Beilharz
89f9a13236
refactor(linux): cleanup code
Some more code cleanup of issues detected by linter.
2020-06-25 17:04:30 +02:00
glasseyes
a701eb3615 find either package or first keyboard icons
improve differentiating packageID and keyboardID in code
2018-11-23 11:18:43 +07:00
glasseyes
9cfb638e6b [linux] use long version of args variable names
as the short ones don't exist when there is a long one
2018-10-08 17:04:00 +07:00
glasseyes
fce8c0161f [linux] alternative --x options for km scripts
add completion for km-kvk2ldml options
2018-10-08 13:25:03 +07:00
glasseyes
038af241d6 [linux] change to use enum InstallArea
to choose between user, shared and os
show keyboards from all 3 areas in km-config
but only allow uninstall from user area
2018-09-21 17:30:42 +07:00
glasseyes
7a63053aaf [linux] list kmp installed in different areas
user ~/.local/share/keyman or ~/.kmfl
local shared /usr/local/share/keyman
OS /usr/share/keyman
2018-09-21 15:02:44 +07:00
glasseyes
671360915f keyman-config: move imports to after args parse
so that -h can be run without dependencies installed
2018-09-15 17:49:28 +07:00
glasseyes
51dcd4a33b [linux] use python logging module to control cl output
for all scripts
add option -v for info messages
-vv for debug messages

remove creation of test ldml output file
2018-09-12 17:14:05 +07:00
glasseyes
b87e2da501 linux: rename scripts to km-* from PR 893
remove generated man pages, regenerate in 'make deb'
2018-09-10 14:29:10 +07:00
Renamed from linux/keyman-config/list_installed_kmp (Browse further)