Skip to content

Output of "Terminal" is wrong if script is using #!/bin/sh #366

@thingsiplay

Description

@thingsiplay

General description of bug:

Using fastfetch within a script with #!/bin/sh will result the terminal as the name of the script. But changing it to #!/bin/env bash will result in correct terminal, kitty in my case. I consider this a bug, even if this is expected from scripting perspective. Notice this issue is present in previous versions of fastfetch too, but I just decided to make a report today.

Often helpful questions:

  • Does the issue occur across multiple terminal emulators? Y (tested with kitty and konsole)
  • Does the issue occur across multiple shells? (bash, zsh, fish, etc) NA (yes, but no, tricky to answer, due to the nature of the problem)

Output of fastfetch --version:

fastfetch 1.8.0

Output of fastfetch --load-config devinfo:

fastfetch --load-config devinfo                        
██████████████████  ████████    tuncay@matrix
██████████████████  ████████    -------------
██████████████████  ████████    OS: Manjaro Linux x86_64
██████████████████  ████████    Host: neither product_family nor product_name is set by O.E.M.
████████            ████████    Kernel: 6.1.1-1-MANJARO
████████  ████████  ████████    Uptime: 22 hours, 54 mins
████████  ████████  ████████    Packages: 2396 (pacman)[stable], 2 (flatpak)
████████  ████████  ████████    Shell: zsh 5.9
████████  ████████  ████████    Resolution: 2560x1440 @ 144Hz
████████  ████████  ████████    DE: KDE Plasma 5.26.4
████████  ████████  ████████    WM: LG3D (X11)
████████  ████████  ████████    WM Theme: Unknown WM: LG3D
████████  ████████  ████████    Theme: breeze (GruvboxColors) [QT], Klaus [GTK2/3/4]
████████  ████████  ████████    Icons: breeze [QT], Gruvbox [GTK2/3/4]
                                Font: Noto Sans (12pt) [QT], Noto Sans (12pt) [GTK2/3/4]
                                Cursor: default (24px)
                                Terminal: kitty
                                Terminal Font: SauceCodePro Nerd Font Mono (14.0pt)
                                CPU: Intel(R) Xeon(R) E3-1230 v3 (8) @ 3.7 GHz
                                GPU: NVIDIA GeForce GTX 1070
                                Memory: 1.95 GiB / 15.57 GiB (12%)
                                Disk (/): 134 GiB / 220 GiB (61%)
                                Disk (/home/tuncay/.steam/steam_games): 430 GiB / 916 GiB (46%) [Removable]
                                Disk (/home/tuncay/Arbeitsplatz): 996 GiB / 4 TiB (27%) [Removable]
                                Disk (/home/tuncay/Backup): 264 GiB / 917 GiB (28%) [Removable]
                                Disk (/home/tuncay/Bilder): 996 GiB / 4 TiB (27%) [Removable]
                                Disk (/home/tuncay/Dokumente): 996 GiB / 4 TiB (27%) [Removable]
                                Disk (/home/tuncay/Downloads): 996 GiB / 4 TiB (27%) [Removable]
                                Disk (/home/tuncay/Emulatoren): 4 TiB / 5 TiB (78%) [Removable]
                                Disk (/home/tuncay/Musik): 996 GiB / 4 TiB (27%) [Removable]
                                Disk (/home/tuncay/Projekte): 996 GiB / 4 TiB (27%) [Removable]
                                Disk (/home/tuncay/VM): 430 GiB / 916 GiB (46%) [Removable]
                                Disk (/home/tuncay/Videos): 996 GiB / 4 TiB (27%) [Removable]
                                Disk (/media/Backup): 264 GiB / 917 GiB (28%)
                                Disk (/media/Emulation): 4 TiB / 5 TiB (78%)
                                Disk (/media/My): 996 GiB / 4 TiB (27%)
                                Disk (/media/System): 430 GiB / 916 GiB (46%)
                                Battery: batteryDir doesn't contain any battery folder
                                Power Adapter: Not supported on this platform
                                Locale: de_DE.UTF-8

                                ████████████████████████
                                ████████████████████████

Output of fastfetch --load-config devinfo-verbose:

Error: unknown option: --media-format

Output of fastfetch --list-features:

libpci
vulkan
wayland
xcb-randr
xcb
xrandr
x11
gio
dconf
dbus
imagemagick7
chafa
zlib
xfconf
egl
glx
osmesa
opencl

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions