ITADN

cwd is not updated in ver 0.47.1

#10114Closedshiroryuu 创建于 2026-06-05
bug
S
shiroryuucommented
**Describe the bug** `cwd` is stuck at `~` even after changing the directory **To Reproduce** Steps to reproduce the behavior: 1. Open kitty and change the directory `cd ~/Documents` for e.g. 2. `readlink /proc/"$(pgrep --newest --parent $(niri msg -j focused-window | jq '.pid'))"/cwd` since I'm on niri 3. output should've been `/home/<user>/Documents` but the output is `/home/<user>` **Screenshots** <img width="948" height="1026" alt="Image" src="https://github.com/user-attachments/assets/212a61ff-0e36-4c05-b3a3-9313e5f03d54" /> <img width="948" height="1026" alt="Image" src="https://github.com/user-attachments/assets/b87f542b-bc6e-429f-b04b-e07d8dc41134" /> **Environment details** ``` kitty 0.46.2 created by Kovid Goyal Linux pluton 7.0.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 02 Jun 2026 18:26:58 +0000 x86_64 Arch Linux 7.0.11-arch1-1 (/dev/tty) DISTRIB_ID="Arch" DISTRIB_RELEASE="rolling" DISTRIB_DESCRIPTION="Arch Linux" Running under: Wayland (niri 25.11 (v25.11-196-g74d2b186)) missing: single_pixel_buffer icon bell window-tag key-repeat top_level_drag OpenGL: '4.6 (Core Profile) Mesa 26.1.2-arch1.1' Detected version: 4.6 Frozen: False Fonts: medium: JetBrainsMono-Regular: /usr/share/fonts/TTF/JetBrainsMono-Regular.ttf:0 Features: () bold: JetBrainsMono-SemiBold: /usr/share/fonts/TTF/JetBrainsMono-SemiBold.ttf:0 Features: () italic: JetBrainsMono-Italic: /usr/share/fonts/TTF/JetBrainsMono-Italic.ttf:0 Features: () bi: JetBrainsMono-SemiBoldItalic: /usr/share/fonts/TTF/JetBrainsMono-SemiBoldItalic.ttf:0 Features: () Paths: kitty: /usr/bin/kitty base dir: /usr/lib/kitty extensions dir: /usr/lib/kitty/kitty system shell: /bin/zsh System color scheme: dark. Applied color theme type: none Loaded config files: /home/arvind/.config/kitty/kitty.conf Config options different from defaults: background_blur 1 background_opacity 0.75 confirm_os_window_close (0, False) cursor_trail 20 cursor_trail_decay (0.1, 0.5) cursor_trail_start_threshold 0 enable_audio_bell False font_family family='JetBrains Mono' font_size 14.0 initial_window_height (40, 'cells') initial_window_width (125, 'cells') mouse_hide_wait MouseHideWait(hide_wait=-1.0, show_wait=0.0, show_threshold=40, scroll_show=True) remember_window_size False scrollback_pager ['nvim', '--cmd', 'set eventignore=FileType', '+nnoremap q ZQ', '+call nvim_open_term(0, {})', '+set nomodified nolist', '+$', '-'] select_by_word_characters ,│`|:"' ()[]{}<> strip_trailing_spaces smart symbol_map: U+e000 - U+e00a → Symbols Nerd Font Mono U+e0a0 - U+e0a2 → Symbols Nerd Font Mono U+e0a3 - U+e0a3 → Symbols Nerd Font Mono U+e0b0 - U+e0b3 → Symbols Nerd Font Mono U+e0b4 - U+e0c8 → Symbols Nerd Font Mono U+e0ca - U+e0ca → Symbols Nerd Font Mono U+e0cc - U+e0d7 → Symbols Nerd Font Mono U+e200 - U+e2a9 → Symbols Nerd Font Mono U+e300 - U+e3e3 → Symbols Nerd Font Mono U+e5fa - U+e6b7 → Symbols Nerd Font Mono U+e700 - U+e8ef → Symbols Nerd Font Mono U+ea60 - U+ec1e → Symbols Nerd Font Mono U+ed00 - U+efce → Symbols Nerd Font Mono U+f000 - U+f2ff → Symbols Nerd Font Mono U+f300 - U+f381 → Symbols Nerd Font Mono U+f400 - U+f533 → Symbols Nerd Font Mono U+f0001 - U+f1af0 → Symbols Nerd Font Mono Added shortcuts: ctrl++ → change_font_size all +2.0 ctrl+- → change_font_size all -2.0 ctrl+0 → restore_font_size ctrl+= → change_font_size all +2.0 ctrl+kp_add → change_font_size all +2.0 ctrl+kp_subtract → change_font_size all -2.0 ctrl+l → combine : clear_terminal scrollback active : send_text normal \f ctrl+shift+space → show_scrollback shift+end → scroll_end shift+home → scroll_home shift+page_down → scroll_page_down shift+page_up → scroll_page_up Colors: active_border_color #81a1c1 active_tab_background #81a1c1 active_tab_foreground #232831 background #2e3441 bell_border_color #c9826b color0 #3b4252 color1 #bf616a color10 #b1d196 color11 #f0d399 color12 #8cafd2 color13 #c895bf color14 #93ccdc color15 #e7ecf4 color16 #c9826b color17 #bf88bc color2 #a3be8c color3 #ebcb8b color4 #81a1c1 color5 #b48ead color6 #88c0d0 color7 #e5e9f0 color8 #465780 color9 #d06f79 cursor #cdcecf cursor_text_color #2e3440 cursor_trail_color #81a1c1 foreground #cdcecf inactive_border_color #5a657d inactive_tab_background #3e4a5b inactive_tab_foreground #60728a selection_background #3e4a5b selection_foreground #cdcecf url_color #a3be8c Important environment variables seen by the kitty process: PATH /home/arvind/.scripts:/home/arvind/.local/bin:/home/arvind/.local/share/cargo/bin:/home/arvind/.local/share/go/bin:/home/arvind/.local/share/Bun/bin:/home/arvind/.local/share/../bin:/home/arvind/.scripts:/home/arvind/.local/bin:/home/arvind/.local/share/cargo/bin:/home/arvind/.local/share/go/bin:/home/arvind/.local/share/Bun/bin:/home/arvind/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/cuda/bin:/home/arvind/.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/arvind/anaconda3/bin:/home/arvind/.local/share/gem/ruby/3.4.0/bin:/home/arvind/.local/share/flutter/bin:/home/arvind/Developer/src/zine/zig-out/bin:/home/arvind/anaconda3/bin:/home/arvind/.local/share/gem/ruby/3.4.0/bin:/home/arvind/.local/share/flutter/bin:/home/arvind/Developer/src/zine/zig-out/bin LANG en_US.UTF-8 EDITOR nvim SHELL /bin/zsh DISPLAY :0 WAYLAND_DISPLAY wayland-1 USER arvind XCURSOR_SIZE 24 XDG_SEAT seat0 XDG_SESSION_TYPE wayland XDG_CACHE_HOME /home/arvind/.cache XDG_STATE_HOME /home/arvind/.local/state XDG_SESSION_CLASS user XDG_SESSION_ID c1 XDG_RUNTIME_DIR /run/user/1000 XDG_CURRENT_DESKTOP niri XDG_CONFIG_HOME /home/arvind/.config XDG_DATA_HOME /home/arvind/.local/share XDG_SESSION_DESKTOP niri XDG_VTNR 1 XDG_DATA_DIRS /home/arvind/.nix-profile/share:/home/arvind/.nix-profile/share:/home/arvind/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/home/arvind/.nix-profile/share:/nix/var/nix/profiles/default/share ``` **Additional context** `kitty --config NONE` and `kitty --config NONE -o shell=zsh` updates `cwd` currently. Additionally I also tried: 1. Removing my kitty.config (didn't work) 2. Launching kitty with minimal environment (didn't work) ``` env -i HOME="$HOME" TERM="$TERM" NIRI_SOCKET="${NIRI_SOCKET}" zsh -l ``` 3. Downgrade kitty back to V0.46 (works) 4. Tried with the binary from github releases (didn't work) If this is a regression and anybody using `Arch` is facing this issue can simply downgrade to the previous version using `pacman -U file:///var/cache/pacman/pkg/kitty-0.46.2-1-x86_64.pkg.tar.zst`
关闭于 2026-06-06 3 条评论