Skip to content

Theme for no-preference mode is overwritten when reloading kitty.conf #8203

@Anthony-Fiddes

Description

@Anthony-Fiddes

Describe the bug

no-preference mode theme is overwritten when reloading an empty kitty.conf. The expected behavior for me would be that the no-preference theme would remain unchanged (I might be missing something in the docs?).

To Reproduce

Steps to reproduce the behavior:

  1. Open kitty --config NONE
  2. Use kitten themes to set different themes for light, dark, and no-preference modes
  3. Close kitty and reopen while computer is in dark mode (not sure if this matters, but this is what I had selected)
  4. Reload kitty config and see that the no-preference theme is not the one that is set (I believe it might be the default theme).

The no-preference theme seems to be set correctly if Kitty is killed and reopened, but if you reload the config, it's not set correctly.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment details

kitty 0.38.1 (fa6ae712a3) created by Kovid Goyal
Darwin Anthonys-MBP 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64
ProductName:		macOS ProductVersion:		14.6.1 BuildVersion:		23G93
OpenGL: '4.1 Metal - 88.1' Detected version: 4.1
Frozen: True
Fonts:
  medium: Menlo-Regular: /System/Library/Fonts/Menlo.ttc
          Features: ()
    bold: Menlo-Bold: /System/Library/Fonts/Menlo.ttc
          Features: ()
  italic: Menlo-Italic: /System/Library/Fonts/Menlo.ttc
          Features: ()
      bi: Menlo-BoldItalic: /System/Library/Fonts/Menlo.ttc
          Features: ()
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /opt/homebrew/bin/fish
System color scheme: dark. Applied color theme type: dark

Config options different from defaults:
Changed shortcuts:
	cmd+k →  clear_terminal_and_scrollback
	ctrl+cmd+, →  reload_config
	opt+cmd+r →  reset_terminal
	shift+cmd+/ →  open_kitty_website

Important environment variables seen by the kitty process:
	PATH                                /opt/homebrew/bin:/opt/homebrew/sbin:/Users/anthonyfiddes/.cargo/bin:/Users/anthonyfiddes/.local/share/nvm/v22.12.0/bin:/Users/anthonyfiddes/perl5/bin:/Users/anthonyfiddes/.local/bin:/Users/anthonyfiddes/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/kitty.app/Contents/MacOS
	LANG                                en_US.UTF-8
	EDITOR                              nvim
	SHELL                               /opt/homebrew/bin/fish
	USER                                anthonyfiddes
	XDG_DATA_HOME                       /Users/anthonyfiddes/.local/share
	XDG_CONFIG_HOME                     /Users/anthonyfiddes/.config

Additional context
Try to reproduce the problem with kitty --config NONE if you cannot then post a minimal kitty.conf that reproduces the problem. If the problem involves interaction with some other terminal program post a minimal config for that program to reproduce the problem as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions