From a1f7db8b5a42546c44e0bca2e3eacd9d3705046c Mon Sep 17 00:00:00 2001 From: LEO Yoon-Tsaw Date: Sun, 9 Jun 2024 11:29:21 -0400 Subject: [PATCH] add report_bundleid to allow App Bundle ID to be accessible from librime --- sources/SquirrelInputController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sources/SquirrelInputController.swift b/sources/SquirrelInputController.swift index 3b4861a11..66199a95c 100644 --- a/sources/SquirrelInputController.swift +++ b/sources/SquirrelInputController.swift @@ -353,6 +353,11 @@ private extension SquirrelInputController { rimeAPI.set_option(session, key, value) } } + if let reportBundleID = NSApp.squirrelAppDelegate.config?.getBool("unsafe/report_bundleid"), reportBundleID { + currentApp.withCString { name in + rimeAPI.set_property(session, "client_app", name) + } + } } func destroySession() {