fastfetch-cli / fastfetch

An actively maintained, feature-rich and performance oriented, neofetch like system information tool.
MIT License
10.12k stars 399 forks source link

[BUG] fastfetch hangs with "kitty" and fails to display images #1329

Closed FyrelWhister closed 3 days ago

FyrelWhister commented 4 days ago

fastfetch hangs with "kitty" and fails to display images

Description: When using fastfetch with the "kitty" terminal, the command hangs indefinitely. In the "kitty-dyrect" terminal, fastfetch runs but does not display the image. The attached image (JPEG) works fine with icat in kitty.

Steps to reproduce:

Set the image path in ~/.config/fastfetch/config.jsonc. Run fastfetch in "kitty" terminal — it hangs. Run fastfetch in "kitty-dyrect" terminal — the image does not display. Expected behavior: fastfetch should display the image.

Version: fastfetch 2.27.1 (x86_64) OS: Linux Mint 22 Terminal: Kitty Kernel: 6.8.0-38-generic CAT

FyrelWhister commented 4 days ago

// ~/.config/fastfetch/config.jsonc
// See https://github.com/fastfetch-cli/fastfetch/wiki/Configuration for more details
// See *.jsonc in https://github.com/fastfetch-cli/fastfetch/tree/dev/presets/examples for more examples
{
  "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
  //"logo": {
  //    "type": "small"
  //},
   "logo": {
       "type": "kitty",
       "source": "~/.config/fastfetch/CAT.jpeg",
       "height": 11
   },
  "display": {
      "separator": "  "
  },
  "modules": [
      {
          "type": "title",
          "color": {
              "user": "red",
              "at": "cyan",
              "host": "blue"
          }
      },
      {
          "type": "os",
          "key": "OS",
          "keyColor": "yellow",
          "format": "{2} {8}"
      },
      {
          "type": "kernel",
          "key": " ",
          "keyColor": "yellow"
      },
      {
          "type": "cpu",
          "key": "PC",
          "keyColor": "green"
      },
      {
          "type": "disk",
          "key": " ",
          "keyColor": "green"
      },
      {
          "type": "memory",
          "key": " 󰑭",
          "keyColor": "green"
      },
      {
          "type": "wmtheme",
          "key": "UI",
          "keyColor": "magenta"
      },
      {
          "type": "icons",
          "key": " 󰀻",
          "keyColor": "magenta"
      },
      {
          "type": "colors",
          "key": " ",
          "keyColor": "magenta",
          "symbol": "circle"
      }
  ]

}
CarterLi commented 4 days ago

Cannot reproduce

image

CarterLi commented 4 days ago

In the "kitty-dyrect" terminal, fastfetch runs but does not display the image

It's kitty-direct. It support png images only. You have to convert your jpeg image to png before using.

FyrelWhister commented 3 days ago

Cannot reproduce

image

it's in kitty protocol? but why in mine type kitty doesn't work? i install imagemagick fastfetch just doesn't work when i use type:"kitty"

CarterLi commented 3 days ago

Cannot reproduce image

it's in kitty protocol? but why in mine type kitty doesn't work? i install imagemagick fastfetch just doesn't work when i use type:"kitty"

yes

FyrelWhister commented 3 days ago

Cannot reproduce image

it's in kitty protocol? but why in mine type kitty doesn't work? i install imagemagick fastfetch just doesn't work when i use type:"kitty"

yes

what is your kitty version?

FyrelWhister commented 3 days ago

hey ayo wtf. i install fastfetch from ubuntu ppa and ayo IT WORK. WHY? type: "kitty" doens't work in kitty from github but work from ppa?

Cannot reproduce image

it's in kitty protocol? but why in mine type kitty doesn't work? i install imagemagick fastfetch just doesn't work when i use type:"kitty"

yes