Files
InputRemapper/DEBIAN/postinst
Blomios 9ef2c1439c feat(app-binding): lier les presets aux applications
Ajoute la configuration des associations application/preset, le service de suivi du focus, l'intégration GUI et les fichiers d'installation nécessaires.

Ajoute les tests unitaires ciblés des bindings, du service de focus, des migrations et des composants GUI associés.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 23:52:34 +02:00

22 lines
1005 B
Bash
Executable File

#!/bin/bash
if [ -d "/run/systemd/system/" ]; then
# old name, those lines should at some point be removed from postinst
pkill -f key-mapper-service
systemctl disable key-mapper 2> /dev/null || true
systemctl stop key-mapper 2> /dev/null || true
# The ubuntu package creates those two symlinks that break when installing the .deb
# built from source. Either ubuntus packages need to be uninstalled with --purge first,
# or those files need to be unlinked manually.
unlink /etc/systemd/system/input-remapper.service || true
unlink /etc/systemd/system/default.target.wants/input-remapper-daemon.service || true
pkill -f input-remapper-service # might have been started by the gui previously
systemctl enable input-remapper
systemctl start input-remapper
# The focus-service is a per-user service. Enable it globally so it starts in
# each user's graphical session (takes effect on next login).
systemctl --global enable input-remapper-focus.service 2> /dev/null || true
fi