macOS: Fix a regression in the previous release that caused --single-instance to not work when using macos-launch-services-cmdline

This commit is contained in:
Kovid Goyal
2024-08-23 15:27:26 +05:30
parent 0c1d239b5f
commit 036241fc6c
3 changed files with 8 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ 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;