Commit graph

37 commits

Author SHA1 Message Date
Eberhard Beilharz
c8049a0cd2
fix(linux): Handle corrupt icon file
Fixes #5584.
2021-08-16 15:55:36 +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
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
6b1cbb508d
fix(linux): Don't crash on invalid metadata
Fixes #5184
2021-05-28 18:30:24 +02:00
Eberhard Beilharz
1c8da049ab
feat(linux): Small UI improvements
- Remove "package" from the tooltips text since that might be
  confusing to users.
- Also make title of Welcome (Help) dialog optionally say "installed"
  instead of always so that we open that dialog via the Help button
  we just display the keyboard name.
- Refactor Keyboard Details dialog to remove an unnecessary box.
- Add padding after keyboard details in Keyboard Details dialog.
2020-08-20 15:22:50 +02:00
Eberhard Beilharz
11f018366b
feat(linux): Add i18n for Linux 2020-08-19 19:22:33 +02:00
Eberhard Beilharz
5618133d5d
Merge pull request #3376 from keymanapp/refactor/linux
refactor(linux): Small refactorings
2020-07-21 09:13:06 +02:00
Eberhard Beilharz
d86f381e03
fix(linux): Fix imports of GTK related modules
The version specification needs to come before importing methods.
2020-07-20 18:23:59 +02:00
Eberhard Beilharz
78b4187928
fix(linux): Use language from search when installing keyboard
When installing a keyboard install it under the language the user
searched for (if any).

This fixes #3282.
2020-07-20 11:10:05 +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
Eberhard Beilharz
8b9ad38767
fix(linux): Restart km-config after Install and Uninstall as well 2020-06-05 19:38:00 +02:00
Eberhard Beilharz
f848bf53ce
feat(linux): Make two more windows modal dialogs 2020-06-05 19:36:48 +02:00
Eberhard Beilharz
c18cfc7780
fix(linux): Restart km-config after installing keyboard
This fixes the problem where typing inside of km-config is not
possible after installing a keyboard.
2020-06-05 18:49:19 +02:00
Eberhard Beilharz
5659f6230c
feat(linux): Improve run methods 2020-06-04 19:42:30 +02:00
Eberhard Beilharz
1890016710
feat(linux): Make two windows modal dialogs
This change modifies DownloadKmpWindow and InstallKmpWindow so that
they are modal dialogs. This will cause them to show up in front of
the km-config window and will prevent accidentally open multiple
download windows.

This change also fixes an unused method in ibus_util that was using
a variable that got renamed previously.
2020-06-04 19:13:24 +02:00
Eberhard Beilharz
dabc1a84e4
fix(linux): Disable buttons if no keyboard installed
This change disables the uninstall, about, and help buttons in
km-config if the list of installed keyboards is empty.

This fixes #3181.
2020-05-28 17:09:55 +02:00
Darcy Wong
c83b390601 feat(linux): Add ability to configure keyboard options 2020-01-31 11:43:58 +07:00
Darcy
9f9df1fc0e Save icon as .bmp.png 2019-09-12 10:10:05 +07:00
Darcy
2beb0aa8f6 Save ico/bmp files to png 2019-09-11 10:06:44 +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
a701eb3615 find either package or first keyboard icons
improve differentiating packageID and keyboardID in code
2018-11-23 11:18:43 +07:00
glasseyes
e1eaa91e3b [linux] add package name to tooltips 2018-10-05 09:29:34 +07:00
glasseyes
c4e9e52183 [linux] remove old km-config gui 2018-10-05 09:21:18 +07:00
glasseyes
a5af639dcb [linux] widget spacing tweaks 2018-10-05 09:16:14 +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
afedf3ef7c [linux] WIP: new gui experiment
split ViewInstalledWindowBase from ViewInstalledWindow

plan for alt gui
2018-10-03 15:15:36 +07:00
glasseyes
46776bef10 [linux] WIP: gui review experimentation 2018-10-03 15:02:09 +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
7b6e971912 [linux] refactor keyman image search into a function
resize icons back to 16x16 on load to display in km-config
2018-09-18 10:58:55 +07:00
glasseyes
4def814908 [linux] install and use icons in local install 2018-09-17 15:13:46 +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
924945c86e icons moved to keyman_config 2018-09-01 17:55:37 +07:00
glasseyes
51ebb7300a rename keymanconfig to keyman_config 2018-09-01 12:28:16 +07:00
Renamed from linux/keyman-config/keymanconfig/view_installed.py (Browse further)