Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Custom image not loaded properly on startup execution #1607

Open
1 task done
Doom-Git opened this issue Mar 9, 2025 · 6 comments
Open
1 task done

[BUG] Custom image not loaded properly on startup execution #1607

Doom-Git opened this issue Mar 9, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@Doom-Git
Copy link

Doom-Git commented Mar 9, 2025

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Description

On the first start of my terminal (Wezterm) the logo is not displayed like it should. If I run fastfetch again, there are no more issues with it. This bug did happen in older versions too. In the screenshot you will see another issue too. Since the standard DE type does not recognize my session I tried it manually with no success.

Version used

fastfetch 2.38.0-debug (x86_64)

Bug prevalence

Other

Regression

No

Installation

Package manager

Package manager

xbps

Screenshots

Logo Problem

Configuration

{
    "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
    "logo": {
        "type": "kitty",
        "height": 22,
        "width": 75,
        "source": "~/.config/fastfetch/Void_Logo.jpg",
        "padding": {
                "top": 1,
                "left": 2
        }
    },
    "modules": [
        "break",
        {
            "type": "custom",
            "format": "\u001b[90m┌──────────────────────Hardware──────────────────────┐"
        },
        {
            "type": "host",
            "key": " PC",
            "keyColor": "green"
        },
        {
            "type": "cpu",
            "key": "│ ├",
            "showPeCoreCount": true,
            "keyColor": "green"
        },
        {
            "type": "gpu",
            "key": "│ ├󰍛",
            "keyColor": "green"
        },
        {
            "type": "memory",
            "key": "│ ├󰍛",
            "keyColor": "green"
        },
        {
            "type": "disk",
            "key": "└ └",
            "keyColor": "green"
        },
        {
            "type": "custom",
            "format": "\u001b[90m└────────────────────────────────────────────────────┘"
        },
        "break",
        {
            "type": "custom",
            "format": "\u001b[90m┌──────────────────────Software──────────────────────┐"
        },
        {
            "type": "os",
            "key": " OS",
            "keyColor": "yellow"
        },
        {
            "type": "kernel",
            "key": "│ ├",
            "keyColor": "yellow"
        },
        {
            "type": "packages",
            "key": "│ ├󰏖",
            "keyColor": "yellow"
        },
        {
            "type": "shell",
            "key": "└ └",
            "keyColor": "yellow"
        },
        "break",
        {
            "type": "custom",
            "key": "\u001b  DE",
            "keyColor": "blue",
            "format": "i3"
        },
        {
            "type": "lm",
            "key": "│ ├",
            "keyColor": "blue"
        },
        {
            "type": "wm",
            "key": "│ ├",
            "keyColor": "blue"
        },
        {
            "type": "wmtheme",
            "key": "│ ├󰉼",
            "keyColor": "blue"
        },
        {
            "type": "gpu",
            "key": "└ └󰍛",
            "format": "{3}",
            "keyColor": "blue"
        },
        {
            "type": "custom",
            "format": "\u001b[90m└────────────────────────────────────────────────────┘"
        },
        "break",
        {
            "type": "custom",
            "format": "\u001b[90m┌────────────────────Uptime / Age────────────────────┐"
        },
        {
            "type": "command",
            "key": "  OS Age ",
            "keyColor": "magenta",
            "text": "birth_install=$(stat -c %W /); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); echo $days_difference days"
        },
        {
            "type": "uptime",
            "key": "  Uptime ",
            "keyColor": "magenta"
        },
        {
            "type": "custom",
            "format": "\u001b[90m└────────────────────────────────────────────────────┘"
        },
        "break"
    ]
}

Image protocol

Kitty (I think)

Terminal

Wezterm

Image tried

Image I used

Error message

No response

Features built-in

threads
vulkan
wayland
xcb-randr
xrandr
drm
drm_amdgpu
gio
dconf
dbus
imagemagick7
chafa
zlib
xfconf
egl
glx
osmesa
opencl
libpulse
libddcutil
libelf
libzfs
System yyjson
linux/videodev2
linux/wireless
@Doom-Git Doom-Git added the bug Something isn't working label Mar 9, 2025
@CarterLi
Copy link
Member

CarterLi commented Mar 9, 2025

Works fine to me for both kitty kitty-direct (recommanded) and iterm

Image

@Doom-Git
Copy link
Author

Doom-Git commented Mar 9, 2025

When I normally use Fastfetch it works for me too, but when I start my terminal, Fastfetch is ran automatically and only then it doesn't work right, no matter what I do.

@Doom-Git Doom-Git changed the title [BUG] Custom image not loaded properly [BUG] Custom image not loaded properly on startup execution Mar 10, 2025
@Doom-Git
Copy link
Author

Update: I don't know why it does work now, but I solved the issue.

  • I need a custom DE element because fastfetch did not detect it, the custom type did not work right so I ended up using the command type with "echo 'i3'"

That fixed the issue with the logo AND the issue with the DE

@Doom-Git
Copy link
Author

Update: it sadly did not work for long, on my AOC monitor and on the laptop is does again not work. It does only appear on the startup process.

.zshrc:
fastfetch

@Doom-Git Doom-Git reopened this Mar 11, 2025
@CarterLi
Copy link
Member

So it's random.

I can't reproduce it. Please try adding sleep 1 before running fastfetch, and using the nightly build of wezterm.

@Coder2195Text
Copy link

I am not sure if this issue is relevant to this, but toggleterm on its own results in fastfetch not loading image, using tmux inside does, and in a new tab works

Image

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants