Commit graph

8 commits

Author SHA1 Message Date
Eberhard Beilharz
f08f44e294
chore(linux): Make postinst script comply with Debian policy
Debian Policy section 10.4 requires `set -e` [1].

[1] https://www.debian.org/doc/debian-policy/ch-files.html#scripts
2023-05-15 17:39:16 +02:00
Eberhard Beilharz
9c1500fe57
fix(linux): Fix debian postinst script
The ibus-keyman post-installation script failed, causing the entire
installation to fail. This change removes `set -e` so that we try
to run the rest of the commands even when one command should fail.
Also accounts for ibus-daemon being started with the full path,
and start ibus-daemon with fill path as well.
2023-02-22 19:40:22 +01:00
Eberhard Beilharz
61ba40a212
chore(linux): Refactor scripts and packaging
This change modifies the scripts and the Debian packaging to use
the meson build / build.sh script for building instead of autotools.
2023-02-14 09:42:13 +01:00
Eberhard Beilharz
9d1004b9ec
chore(linux): Fix ibus-keyman.postinst script
When installing ibus-keyman it could happen that we got an (ignored)
error "user name does not exist". This change tries to work around
this problem.
2022-09-02 18:05:52 +02:00
Eberhard Beilharz
d99265b967
fix(linux): Another attempt at fixing postinst script
When the installation runs from `unattended-upgrade`, `$SUDO_USER`
and `$USER` will probably not be set.

Fixes #6983
2022-07-18 10:50:34 +02:00
Eberhard Beilharz
1f84299d08
fix(linux): Fix post-install script
This change fixes the ibus-keyman post install script which
previously failed if for whatever reason `SUDO_USER` is not set.

Fixes #6893
2022-07-05 18:14:53 +02:00
Eberhard Beilharz
0040373d21
feat(linux): Try to start ibus after installation
This change deals with restarting ibus in the post-install script.

Also, on Ubuntu 21.10 Impish there are two `ibus-daemon` processes
running for the current user. One of them has the `--xim` flag
and is the one we care about. This change improves the detection
that ibus is running in the post installation script.
2022-02-07 20:07:55 +01:00
Eberhard Beilharz
79f92a150c
chore(linux): Consolidate Debian source packages
This change consolidates the Debian packages into a single source
package, with the exception of the legacy KMFL packages.

Fixes #5022.
2021-08-06 11:25:00 +02:00