Commit graph

27 commits

Author SHA1 Message Date
Eberhard Beilharz
a0af6de10a
chore(linux): Refactorings 2023-06-07 18:58:06 +02:00
Eberhard Beilharz
d54beee0ab
feat(linux): List fonts in the uninstall confirmation dialog
Fixes #3501
2023-01-09 16:52:09 +01:00
Eberhard Beilharz
117ef77160
chore(linux): Sorting of imports 2022-07-18 15:19:50 +02:00
Eberhard Beilharz
0b8e628812
chore(linux): Improve robustness
Don't crash if we encounter a corrupt file.
2022-01-28 18:37:55 +01:00
Eberhard Beilharz
685eaa6ffc
fix(linux): Don't crash if we lack permissions
Also deal with other file I/O related exceptions and report them
as warnings.

This fixes #6171.
2022-01-28 18:37:54 +01:00
Eberhard Beilharz
072481198e
chore(linux): Add comment for clarification of code behaviour 2022-01-24 11:55:45 +01:00
Eberhard Beilharz
79244650b1
feat(linux): Don't create Sentry critical events for handled errors
We don't want to send events to Sentry for errors that we handled.
2022-01-06 18:43:28 +01: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
31a0de32fe
fix(linux): Fix crash with incomplete metadata (#4908) 2021-04-23 11:39:27 +02:00
Eberhard Beilharz
9d7be1b6b5
feat(linux): Log some errors as critical
Some errors we want to be reported on Sentry, so we change those
to critical.
2021-04-20 11:45:07 +02: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
Eberhard Beilharz
5f214015c5
refactor(linux): cleanup code
This change adds a config file for flake8 Python linter and fixes
the problems the linter identified.
2020-06-23 17:15:23 +02:00
glasseyes
9dc84b83e5 get un/install from ibus working (for me at least!)
move get_metadata to kmpmetadata.py
some ibus utility functions for un/install, restart
and change keyboard
2018-12-19 12:55:26 +07:00
glasseyes
cf434b3684 convert kmp.inf to kmp.json 2018-11-23 08:42:08 +07:00
glasseyes
aa19b9931b [linux] xenial python doesn't have enum.auto 2018-10-04 13:53:06 +07:00
glasseyes
89a2f7c559 [linux] install all files from kmp in shared install
i.e. install directly to /usr/local/share rather than
using temp dir
share more code between the user and shared installs

rename KM_KVK to KM_OSK for less typing confusion with KM_KMX
move user_keyman dir etc to get_kmp (avoids import problems)
2018-09-24 11:23:13 +07:00
Unknown
1a01489e41 [linux] 1187 handle more than one keyboard in legacy kmp
and more file types for 1189
2018-09-21 13:53:02 +07:00
glasseyes
8029aeb767 [linux] for #1189 handle more file types 2018-09-21 13:50:05 +07:00
glasseyes
f1384a9341 [linux] remove kmpmetadata commented code 2018-09-20 11:53:17 +07:00
glasseyes
1280c4250b [linux] get website 'url' as well as 'description'
in print functions conditionally display optional keys
2018-09-19 18:27:51 +07:00
glasseyes
6994650853 [linux] show exceptions during printing parsed metadata 2018-09-19 16:45:33 +07:00
glasseyes
d910ad7a07 [linux] use an enum for keyman filetype
only use determine_filetype in parsing
2018-09-19 16:38:15 +07:00
glasseyes
8925f702a6 missing parenthesis 2018-09-13 22:20:43 +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
b690524f73 Linux: some changes from PR893
doc python3-setuptools requirement for keyman-config
removing commented code
fix missed doc reference to view_installed
add TODO about website changes in downloadkeyboard
move linux/osk to linux/experiments/osk
2018-09-10 12:05:22 +07:00
glasseyes
51ebb7300a rename keymanconfig to keyman_config 2018-09-01 12:28:16 +07:00
Renamed from linux/keyman-config/keymanconfig/kmpmetadata.py (Browse further)