kovidgoyal / kitty

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

Kitty 0.34 window titlebar icon not shown #7349

Closed winstonma closed 4 weeks ago

winstonma commented 1 month ago

Describe the bug The window titlebar icon didn't show up

To Reproduce Steps to reproduce the behavior:

  1. Update kitty to 0.34
  2. Open kitty

Screenshots image.

Environment details

kitty 0.34.0 (2b671100d9) created by Kovid Goyal

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"
Running under: Wayland (GNOME Shell 42.9) missing: preferred_scale
Frozen: True

Config options different from defaults:

Important environment variables seen by the kitty process:
        LANG                                en_US.UTF-8
        SHELL                               /bin/bash
        DISPLAY                             :0
        WAYLAND_DISPLAY                     wayland-0
        LC_TIME                             en_HK.UTF-8
        XDG_SESSION_TYPE                    wayland
        LC_MONETARY                         en_HK.UTF-8
        XDG_SESSION_CLASS                   user
        XDG_RUNTIME_DIR                     /run/user/1000
        LC_ADDRESS                          en_HK.UTF-8
        XDG_MENU_PREFIX                     gnome-
        LC_TELEPHONE                        en_HK.UTF-8
        XDG_CURRENT_DESKTOP                 ubuntu:GNOME
        XDG_SESSION_DESKTOP                 ubuntu
        LC_NAME                             en_HK.UTF-8
        LC_MEASUREMENT                      en_HK.UTF-8
        LC_IDENTIFICATION                   en_HK.UTF-8
        XDG_CONFIG_DIRS                     /etc/xdg/xdg-ubuntu:/etc/xdg
        LC_NUMERIC                          en_HK.UTF-8
        LC_PAPER                            en_HK.UTF-8

Additional context kitty --config NONE doesn't get the icon back

kovidgoyal commented 1 month ago

Yes, it was changed to and angle bracket. And you need to install a font that has the maximize/minimize/etc unicode symbols to see th ebuttons on the right.

winstonma commented 1 month ago

@kovidgoyal I am using Ubuntu font and unicode is not included. Just wonder if it is possible that I could get the titlebar removed? Thanks

kovidgoyal commented 1 month ago

On Mon, Apr 15, 2024 at 07:17:03PM -0700, Winston Ma wrote:

@kovidgoyal I am using Ubuntu font and unicode is not included. Just wonder if it is possible that I could get the titlebar removed? Thanks

You need to have some font on your system that has those glyphs. It doesnt need to be your main font. And read: https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.hide_window_decorations

winstonma commented 1 month ago

Thanks a lot. Alternatively I did the following

  1. Install Noto San Fonts
    sudo apt-get install fonts-noto
  2. Use Gnome Tweaks and Set Interface text as Noto Sans Regular
  3. Open Kitty

Now it works. Hope this help other Ubuntu/Gnome User.

ryannathans commented 4 weeks ago

I have two machines, both Pop OS 22.04. In gnome tweaks, both have the same fonts set: image

Yet one still displays these squares.. and the other doesn't... image

Any ideas? Has got me scratching my head

winstonma commented 4 weeks ago

@ryannathans The font add many unicode characters on version 6 release. I think it is worth updating the font on both machines.

ryannathans commented 4 weeks ago

sudo apt install fonts-firacode fonts-firacode is already the newest version (6.2-1).

I don't think this font is directly related to my interface font Fira Sans Book, but regardless, it's already the latest version on the system with broken icons.

ryannathans commented 4 weeks ago

Genius solution, thanks

grimm26 commented 3 weeks ago

Thanks a lot. Alternatively I did the following

  1. Install Noto San Fonts
sudo apt-get install fonts-noto
  1. Use Gnome Tweaks and Set Interface text as Noto Sans Regular
  2. Open Kitty

Now it works. Hope this help other Ubuntu/Gnome User.

fonts-symbola is the package you needed

winstonma commented 3 weeks ago

fonts-symbola is the package you needed

Thanks. Installed 0.34.1 which the icon is built-in. I can uninstall Noto fonts now.