Work on moving launch services handling into C

This will make it faster and also more robust, not recuring hacks like
re-execs.
This commit is contained in:
Kovid Goyal
2025-04-24 21:07:29 +05:30
parent 76ac66fc8c
commit 05f0839add
5 changed files with 49 additions and 50 deletions

View File

@@ -85,9 +85,5 @@ static PyMethodDef module_methods[] = {
bool
init_logging(PyObject *module) {
if (PyModule_AddFunctions(module, module_methods) != 0) return false;
#ifdef __APPLE__
// This env var can be either 1 or 2
if (getenv("KITTY_LAUNCHED_BY_LAUNCH_SERVICES") != NULL) use_os_log = true;
#endif
return true;
}