Commit graph

13 commits

Author SHA1 Message Date
Eberhard Beilharz
57970724fa
refactor(linux): some code cleanup in bash completion script
Build-bot: skip
Test-bot: skip
2025-08-18 19:54:33 +02:00
Eberhard Beilharz
66461b7677
feat(linux): Remove message box if same kbd version already installed
We no longer ask the user if he tries to install a keyboard that is
already installed with the same version. The only time we ask is for
downgrades.

A similar change is implemented in `km-package-install` where we
changed the logic to match `install_window.py`. We now silently
install the new version unless it's a downgrade in which case we
output a error message and exit. This change also introduces the
`--force` parameter which allows to install the downgrade. For
upgrades or re-installing the same version it will cause an
uninstall of the current version first.
2023-07-05 11:56:54 +02:00
Eberhard Beilharz
5f5054b93c
chore(linux): Fix lintian warnings
- add rudimentary man page for keyman-system-service
- remove hashbang for bash completion files
- reword description for keyman-system-service

This fixes these lintian warnings:
keyman-system-service: description-is-pkg-name Keyman system service
keyman: bash-completion-with-hashbang /usr/bin/env bash
        [usr/share/bash-completion/completions/km-config:1]
keyman-system-service: no-manual-page
        [usr/libexec/keyman-system-service]
2023-06-05 17:18:55 +02:00
Eberhard Beilharz
89a253b1ca
feat(linux): Enhance tab completion in km-package-install
This change adds tab completion for the bcp-47 parameter in
km-package-install.

Fixes #5361
2023-01-11 12:28:12 +01:00
Eberhard Beilharz
c9fad367f8
chore(linux): Fix shellcheck warnings 2023-01-10 11:40:12 +01:00
Eberhard Beilharz
7df84301b0
chore(linux): Refactor completion script 2023-01-10 10:46:37 +01:00
Eberhard Beilharz
3eb4b58a58
fix(linux): Remove tab completion warning
This is done by replacing the deprecated `imp` module.

Fixes #6227.
2022-04-11 16:30:22 +02:00
Eberhard Beilharz
2831084b87
fix(linux): respect XDG_CACHE_HOME environment variable 2021-06-24 14:54:03 +02:00
Eberhard Beilharz
cafbdef35a
fix(linux): fix tab completion for command line tools
Fixes #5306
2021-06-24 11:47:13 +02:00
glasseyes
f72b8c477e parameters changed in km-package-install
bash completion changed for that
2018-12-03 11:52:20 +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
be0443c593 [linux] cope with lack of network
create empty file if nothing in cache and no network
get the file if network comes back
2018-10-08 10:34:41 +07:00
glasseyes
4ffe5b1fc7 [linux] separate into separate files
fix installation in deb package:
 add to MANIFEST.in to go into dist tarball
 there is a dh bash-completion so use it
add completion for km-package-get
2018-10-06 18:23:05 +07:00