kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.66k stars 989 forks source link

Getting remote control disabled but nothing is trying to control kitty #7834

Closed heeeeeeeeeeh closed 2 months ago

heeeeeeeeeeh commented 2 months ago

Describe the bug Sometimes when i open kitty i get the error exit@kitty-cmd{"ok": false, "error": "Remote control is disabled"}. I do not think there is a program trying to control kitty, but if i try to turn on remote control i get an error.

....
": false, "error": "argument 1 must be dict, not None,xecute_remote_command\n response = handle_cmd(self, window, pcmd, peer_id, self_window)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/bin/../lib/kitty/kitty/remote_control.py\", line 241, in handle_cmd\n ans = c.response_from_kitty(boss, self_window or window, PayloadGetter(c, payload))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/bin/../lib/kitty/kitty/rc/set_colors.py\", line 112, in response_from_kitty\n patch_color_profiles(colors, profiles, payload_get('configured'))\nTypeError: argument 1 must be dict, not None\n"}

I'm launching kitty from a Hyprland shortcut. Opening kitty from a shell does not give this error.

To Reproduce Steps to reproduce the behavior:

  1. Open kitty

Screenshots image image

Environment details

kitty 0.36.2 created by Kovid Goyal
Linux silve 6.10.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 04 Sep 2024 15:16:37 +0000 x86_64
Arch Linux 6.10.8-arch1-1 (/dev/tty)

DISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
Running under: Wayland (Hyprland v0.42.0,) missing: single_pixel_buffer
OpenGL: '4.6 (Core Profile) Mesa 24.2.2-arch1.1' Detected version: 4.6
Frozen: False
Fonts:
  medium: CaskaydiaCoveNerdFontCompleteM-Regular: /home/silve/.local/share/fonts/CascadiaCove/Caskaydia Cove Nerd Font Complete Mono Regular.otf:0
          Features: ()
    bold: CaskaydiaCoveNerdFontCompleteM-Regular: /home/silve/.local/share/fonts/CascadiaCove/Caskaydia Cove Nerd Font Complete Mono Regular.otf:0
          Features: ()
  italic: CaskaydiaCoveNerdFontCompleteM-Regular: /home/silve/.local/share/fonts/CascadiaCove/Caskaydia Cove Nerd Font Complete Mono Regular.otf:0
          Features: ()
      bi: CaskaydiaCoveNerdFontCompleteM-Regular: /home/silve/.local/share/fonts/CascadiaCove/Caskaydia Cove Nerd Font Complete Mono Regular.otf:0
          Features: ()
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /usr/bin/zsh
Loaded config files:
  /home/silve/.config/kitty/kitty.conf

Config options different from defaults:
allow_remote_control    yes
cursor_text_color       None
font_family             CaskaydiaCove Nerd Font Mono
font_size               28.0
window_padding_width    FloatEdges(left=25.0, top=25.0, right=25.0, bottom=25.0)
Colors:
    active_border_color     #d3869b   
    active_tab_background   #665c54   
    active_tab_foreground   #fbf1c7   
    background              #272727   
    bell_border_color       #8ec07c   
    color0                  #272727   
    color1                  #cc231c   
    color10                 #b8ba25   
    color11                 #fabc2e   
    color12                 #83a597   
    color13                 #d3859a   
    color14                 #8ec07b   
    color15                 #ebdbb2   
    color2                  #989719   
    color3                  #d79920   
    color4                  #448488   
    color5                  #b16185   
    color6                  #689d69   
    color7                  #a89983   
    color8                  #928373   
    color9                  #fb4833   
    cursor                  #928374   
    foreground              #ebdbb2   
    inactive_border_color   #665c54   
    inactive_tab_background #3c3836   
    inactive_tab_foreground #a89984   
    selection_background    #ebdbb2   
    selection_foreground    #655b53   
    url_color               #d65c0d   
    visual_bell_color       #8ec07c   

Important environment variables seen by the kitty process:
    PATH                                /usr/local/sbin:/usr/local/bin:/usr/bin:/home/silve/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/silve/.local/share/bin
    LANG                                en_US.UTF-8
    SHELL                               /usr/bin/zsh
    DISPLAY                             :1
    WAYLAND_DISPLAY                     wayland-1
    USER                                silve
    XDG_SESSION_PATH                    /org/freedesktop/DisplayManager/Session1
    XDG_BACKEND                         wayland
    XDG_SEAT                            seat0
    XDG_SESSION_DESKTOP                 Hyprland
    XDG_SESSION_TYPE                    wayland
    XDG_CURRENT_DESKTOP                 Hyprland
    XDG_SEAT_PATH                       /org/freedesktop/DisplayManager/Seat0
    XDG_SESSION_CLASS                   user
    XDG_VTNR                            1
    XDG_SESSION_ID                      2
    XDG_RUNTIME_DIR                     /run/user/1001
    XDG_DATA_DIRS                       /home/silve/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
kovidgoyal commented 2 months ago

You have something that is using the set_colors remote control command. Probably in your shell rc files somewhere. Remove it and you will be fine.

heeeeeeeeeeh commented 2 months ago

Figured out the problem. for some reason in the arch repo, pywal calls set color without providing a file. The one in the github repo does https://github.com/dylanaraps/pywal/blob/master/pywal/reload.py

image

heeeeeeeeeeh commented 2 months ago

though it outputs this image The output of programs gets funny and i cant exit of of programs. image image and for things like input i have to type, press enter and then hit ctrl+d