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
When we recently added the new column and changed the model we
didn't adjust all the existing references for the model fields.
This change fixes this and also extract some additional methods.
This will refresh the list of installed keyboards even when we
install a keyboard from a command line tool, or from a second
km-config instance.
Closes#6785.
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()`.
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.
- 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.
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.
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
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)