Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MacOS/arm64] Setting a new theme quits kitty.app #3952

Closed
Dekker1 opened this issue Aug 19, 2021 · 7 comments
Closed

[MacOS/arm64] Setting a new theme quits kitty.app #3952

Dekker1 opened this issue Aug 19, 2021 · 7 comments
Labels

Comments

@Dekker1
Copy link

Dekker1 commented Aug 19, 2021

Describe the bug
When I use the new themes kitten, the kitty program crashes. It does not seem to matter whether I set the theme interactively or directly in the command. When starting kitty again, the theme is correctly set.

(This bug might be related to MacOS, or the fact that this is a M1 machine, but I have no way to verify this).

To Reproduce
Steps to reproduce the behavior:

  1. Open kitty.app on MacOS
  2. run kitty +kitten themes Nord
  3. Kitty program quits.

Environment details

kitty 0.23.1 created by Kovid Goyal
Darwin Phosphorus.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 arm64
ProductName:	macOS ProductVersion:	11.5.2 BuildVersion:	20G95

Config options different from defaults:
@Dekker1 Dekker1 added the bug label Aug 19, 2021
@kovidgoyal
Copy link
Owner

It will be because signal handling of SIGUSR1 is not working on macOS
probably because it needs some special non-POSIX code for it. I will
look into that when I am next on a mac machine.

In the meantime, use --reload-in=none and manually reload the config by
pressing the shortcut for it.

@Dekker1
Copy link
Author

Dekker1 commented Aug 19, 2021

Thank you. What is the shortcut to reload the configuration?

@kovidgoyal
Copy link
Owner

@kovidgoyal
Copy link
Owner

And ^+⌘+f5 on macOS

@fladson
Copy link
Contributor

fladson commented Aug 31, 2021

Hey @kovidgoyal that workaround is working fine, I just wanted to know if there is a way to reload the config in a "non-interactively" way.
Is it possible to send the key combination as input and make kitty execute the correspondent action (kitty @ cmd+control+,? Or can I include the load_config_file in the list of actions, so I can put kitty @ load_config_file in a bash script for example?

@kovidgoyal
Copy link
Owner

You just have to wait for the next release with the fix. IIRC reloading config file is not a remote control action.

@shot-codes
Copy link

shot-codes commented Aug 31, 2021

@kovidgoyal I have the same issue mentioned here, however I had been reliably using kitty-theme -t -L in conjunction with launching kitty via /usr/local/bin/kitty -o allow_remote_control=socket-only --single-instance --listen-on unix:/tmp/kitty to enable switching between two themes on the fly. I'm now getting that the kitty-theme command is not found and I'm not entirely sure if it is because I had mucked something up or if it is explainable some other way. I was looking around the docs to try to find where I had the command from at all and can't seem to come across it in the docs and changelog to try to find an explanation. Any wisdom on the matter would be much appreciated.

I know this been discussed before but just to add context what I am ultimately looking for is for the theme to be set and change dynamically according to the MacOS system theme, but the workaround I had was treating me well... Thanks for your time :)

Edit:
I can in my kitty.conf that I have the following line include current-theme.conf, as well as specified current-theme.conf, light-theme.conf and dark-theme.conf files. Each of these contain color definitions so I assume the kitty-theme -t -L command would replace the contents of the current-theme file with either the contents of the light/dark theme files accordingly.

I'm thinking that while not explicitly mentioned, it has something to do with the first entry of the changelog here https://sw.kovidgoyal.net/kitty/changelog/#id2

Edit:
It had been so long I didn't realize that I has been using https://github.com/fretboardfreak/kitty-theme-changer/. The reason it broke was because I had mucked up my systems default python installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants