Commit graph

23 commits

Author SHA1 Message Date
Eberhard Beilharz
d4c27a4d44
chore(linux): Properly compare version numbers
We changed the comparison of version numbers a while ago, but this
one slipped through. Using string comparison for version numbers
is a bad idea... This addresses code review comments.
2023-06-12 19:43:38 +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
1d5b169aca
fix(linux): Allow to install local kbd if shared installed
This is similar to PR #7730 but implements things for
km-package-install.
2022-11-16 15:59:39 +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
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
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
Darcy Wong
c83b390601 feat(linux): Add ability to configure keyboard options 2020-01-31 11:43:58 +07:00
glasseyes
1a3217ec58 improve keyboard details
still very rough, needs ux advice
2018-11-26 16:11:18 +07:00
glasseyes
7651da276c refresh data for kmp installed manually
only happens when you open download window
which assumes you are online
2018-11-26 13:56:36 +07:00
glasseyes
3ac4564ef3 list from new user area, not ~/.kmfl 2018-11-26 13:02:01 +07: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
963df2489b [linux] new gui for km-config
based on look of ibus-setup
  listview of kmp on left
  buttons on right

tweak button positioning on the windows
title changed  to Keyman Configuration
after downloading and clicking install the download window now closes
2018-10-03 15:15:57 +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
glasseyes
ea1edfd79f [linux] user_keyboard_dir and user_keyman_dir
factor ~/.local/share/keyman location into a function

also keyman_cache_dir for the cache location
2018-09-24 09:53:22 +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
3edf52c1fc [linux] get_kmp_version gets highest from all areas
get_kmp_version_user gets the version from user areas
2018-09-21 15:27:50 +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
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/list_installed_kmp.py (Browse further)