Skip to content

Commit

Permalink
add report_bundleid to allow App Bundle ID to be accessible from librime
Browse files Browse the repository at this point in the history
  • Loading branch information
LEOYoon-Tsaw committed Jun 9, 2024
1 parent ad7db91 commit a1f7db8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sources/SquirrelInputController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit a1f7db8

Please sign in to comment.