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>
This commit is contained in:
@ -87,6 +87,12 @@ class InputRemapperGtkBin:
|
||||
message_broker = MessageBroker()
|
||||
|
||||
global_config = GlobalConfig()
|
||||
global_config.load_config()
|
||||
|
||||
# Start the user-level focus-service if focus-driven application binding is
|
||||
# enabled, mirroring how the reader-service is launched below.
|
||||
if global_config.get_app_binding_enabled():
|
||||
InputRemapperGtkBin.start_focus_service()
|
||||
|
||||
# Create the ReaderClient before we start the reader-service, otherwise the
|
||||
# privileged service creates and owns those pipes, and then they cannot be accessed
|
||||
@ -143,6 +149,14 @@ class InputRemapperGtkBin:
|
||||
logger.error(e)
|
||||
sys.exit(11)
|
||||
|
||||
@staticmethod
|
||||
def start_focus_service():
|
||||
from inputremapper.gui.focus_service_client import (
|
||||
ensure_focus_service_running,
|
||||
)
|
||||
|
||||
ensure_focus_service_running()
|
||||
|
||||
@staticmethod
|
||||
def stop(daemon, controller):
|
||||
if isinstance(daemon, Daemon):
|
||||
|
||||
Reference in New Issue
Block a user