Closed ejj closed 4 months ago
Are you saying this is specific to launching via spotlight? Does it work if you run
kitty --start-as=fullscreen
from another terminal?
Just tried it from another terminal and it appears to work correctly.
Another experiment I just tried, I opened a finder window, made the finder window full screen, navigated to the applications directory, and double clicked on the kitty application, and the problem occurred.
So given that I think it would be more accurate to say that the problem has something to do with the MacOS system application launcher
Yes, spotlight just uses the same launch services as anything else. In fact you can reproduce this from another terminal as
open -a kitty.app --args --start-as=fullscreen
to open kitty via launch services in fullscreen.
As for the bug itself, no clue, this seems to be some weird interaction with launch services, probably can be worked around by detecting when started via launch services and sleep for a short time before entering full screen. Maybe someday I will look into trying to workaround the issue. In the meantime you can just add
macos_traditional_fullscreen yes
to kitty.conf. That bypasses apples weird fullscreen implementation so it wont suffer from this issue and also avoids the time-wasting Apple fullscreen animation.
Great thanks for the tip and looking into this!
I have implemented the workaroud of calling the cocoa full screen method only after the show is called.
Describe the bug On MacOS
--start-as=fullscreen
does not work properly when launching from spotlight while using another full screen application.To Reproduce
<kitty config dir>/macos-launch-services-cmdline
--start-as=fullscreen
.Screenshots
Environment details
Additional context Changed my command line options to
--start-as=fullscreen --config NONE
and the problem still occurs.