Skip to content

[BUG] Inconsistent terminal/shell in debian motd #2048

@skibbipl

Description

@skibbipl

Read the FAQ first

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

Description

Currently I'm using hyfetch but I wanted to try fastfetch. It looks like drop in replacement for former but I can see one issue in fastfetch that bothers me.
I use debian way of updating motd - by adding a simple script to /etc/update-motd.d/00-fastfetch:

#!/bin/bash
fastfetch --pipe false

Executing hyfetch in the same manner provides following data:

Shell: zsh 5.9
Terminal: run-parts

but fastfetch gives different information:

Shell: run-parts
Terminal:

I wonder if this is somehow related to #366 and can be improved? Or maybe it's not a bug at all?

Version used

fastfetch 2.40.4-debug (x86_64)

Bug prevalence

Always

Regression

Not sure

Installation

Package manager

Package manager

apt

Screenshots

No response

Configuration

System information

[
  {
    "type": "Title",
    "result": {
      "userName": "root",
      "hostName": "temp",
      "homeDir": "/root/",
      "exePath": "/usr/bin/fastfetch",
      "userShell": "/usr/bin/zsh"
    },
    "stat": 0.005651000887155533
  },
  {
    "type": "Separator",
    "error": "Unsupported for JSON format",
    "stat": 0.00014999881386756897
  },
  {
    "type": "OS",
    "result": {
      "buildID": "",
      "codename": "trixie",
      "id": "debian",
      "idLike": "",
      "name": "Debian GNU/Linux",
      "prettyName": "Debian GNU/Linux 13 (trixie)",
      "variant": "",
      "variantID": "",
      "version": "13.1",
      "versionID": "13.1"
    },
    "stat": 0.03435399942100048
  },
  {
    "type": "Host",
    "result": {
      "family": "",
      "name": "KVM/QEMU Standard PC (Q35 + ICH9, 2009)",
      "version": "pc-q35-10.1",
      "sku": "",
      "vendor": "QEMU",
      "serial": "",
      "uuid": "dad21b7e-3ea8-4382-93c4-24422335b0c1"
    },
    "stat": 0.05187699943780899
  },
  {
    "type": "Bios",
    "result": {
      "date": "04/01/2014",
      "release": "0.0",
      "vendor": "SeaBIOS",
      "version": "rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org",
      "type": "BIOS"
    },
    "stat": 0.02094000019133091
  },
  {
    "type": "Bootmgr",
    "error": "Failed to read efivar: BootCurrent",
    "stat": 0.0015230011194944382
  },
  {
    "type": "Board",
    "error": "board_name is not set.",
    "stat": 0.007393999025225639
  },
  {
    "type": "Chassis",
    "result": {
      "type": "Other",
      "vendor": "QEMU",
      "version": "pc-q35-10.1",
      "serial": ""
    },
    "stat": 0.03137899935245514
  },
  {
    "type": "Kernel",
    "result": {
      "architecture": "x86_64",
      "name": "Linux",
      "release": "6.12.35+deb13-amd64",
      "version": "#1 SMP PREEMPT_DYNAMIC Debian 6.12.35-1 (2025-07-03)",
      "displayVersion": "",
      "pageSize": 4096
    },
    "stat": 0.0006409995257854462
  },
  {
    "type": "InitSystem",
    "result": {
      "name": "systemd",
      "exe": "/usr/lib/systemd/systemd",
      "version": "257.8-1~deb13u2",
      "pid": 1
    },
    "stat": 3.8717789985239506
  },
  {
    "type": "Uptime",
    "result": {
      "uptime": 11676510,
      "bootTime": "2025-11-09T07:30:04.805+0100"
    },
    "stat": 0.029635999351739883
  },
  {
    "type": "Loadavg",
    "result": [
      0.01,
      0.02,
      0.0
    ],
    "stat": 0.010098999366164207
  },
  {
    "type": "Processes",
    "result": 139,
    "stat": 0.13412199914455414
  },
  {
    "type": "Packages",
    "result": {
      "all": 397,
      "amSystem": 0,
      "amUser": 0,
      "apk": 0,
      "brew": 0,
      "brewCask": 0,
      "choco": 0,
      "dpkg": 397,
      "emerge": 0,
      "eopkg": 0,
      "flatpakSystem": 0,
      "flatpakUser": 0,
      "guixSystem": 0,
      "guixUser": 0,
      "guixHome": 0,
      "hpkgSystem": 0,
      "hpkgUser": 0,
      "linglong": 0,
      "mport": 0,
      "nixDefault": 0,
      "nixSystem": 0,
      "nixUser": 0,
      "opkg": 0,
      "pacman": 0,
      "pacstall": 0,
      "paludis": 0,
      "pisi": 0,
      "pkg": 0,
      "pkgtool": 0,
      "pkgsrc": 0,
      "qi": 0,
      "macports": 0,
      "rpm": 0,
      "scoop": 0,
      "snap": 0,
      "sorcery": 0,
      "winget": 0,
      "xbps": 0,
      "pacmanBranch": ""
    },
    "stat": 0.12776999920606613
  },
  {
    "type": "Shell",
    "result": {
      "exe": "zsh",
      "exeName": "zsh",
      "exePath": "/usr/bin/zsh",
      "pid": 14282,
      "ppid": 14281,
      "processName": "zsh",
      "prettyName": "zsh",
      "version": "5.9",
      "tty": 5
    },
    "stat": 0.8640909995883703
  },
  {
    "type": "Editor",
    "error": "$VISUAL or $EDITOR not set",
    "stat": 0.0015730001032352448
  },
  {
    "type": "Display",
    "result": [
      {
        "id": 0,
        "name": "QEMU Monitor",
        "primary": false,
        "output": {
          "width": 1280,
          "height": 800,
          "refreshRate": 74.99384952585436
        },
        "scaled": {
          "width": 0,
          "height": 0
        },
        "preferred": {
          "width": 0,
          "height": 0,
          "refreshRate": 0.0
        },
        "physical": {
          "width": 325,
          "height": 203
        },
        "rotation": 0,
        "bitDepth": 0,
        "hdrStatus": "Unsupported",
        "type": "Unknown",
        "manufactureDate": {
          "year": 2014,
          "week": 42
        },
        "serial": null,
        "platformApi": "sysfs-drm"
      }
    ],
    "stat": 0.4070750009268522
  },
  {
    "type": "Brightness",
    "result": [],
    "stat": 0.057809000834822655
  },
  {
    "type": "Monitor",
    "error": "Monitor module is an alias of Display module",
    "stat": 0.0006409995257854462
  },
  {
    "type": "LM",
    "error": "Failed to get $XDG_SESSION_ID",
    "stat": 0.004298001527786255
  },
  {
    "type": "DE",
    "error": "No DE found",
    "stat": 0.000691000372171402
  },
  {
    "type": "WM",
    "error": "No WM found",
    "stat": 0.0008019991219043732
  },
  {
    "type": "WMTheme",
    "error": "WM Theme needs successful WM detection",
    "stat": 0.0007310006767511368
  },
  {
    "type": "Theme",
    "error": "No themes found",
    "stat": 0.046066999435424805
  },
  {
    "type": "Icons",
    "error": "No icons could be found",
    "stat": 0.0004110001027584076
  },
  {
    "type": "Font",
    "error": "No fonts found",
    "stat": 0.002003999426960945
  },
  {
    "type": "Cursor",
    "error": "Couldn't find cursor",
    "stat": 0.0075239986181259155
  },
  {
    "type": "Wallpaper",
    "error": "Failed to detect the current wallpaper path",
    "stat": 0.0004309993237257004
  },
  {
    "type": "Terminal",
    "result": {
      "processName": "sshd-session",
      "exe": "sshd-session: debian@pts/3",
      "exeName": "3",
      "exePath": "/usr/lib/openssh/sshd-session",
      "pid": 14169,
      "ppid": 14159,
      "prettyName": "/dev/pts/5",
      "version": "",
      "tty": "/dev/pts/5"
    },
    "stat": 0.046387000009417534
  },
  {
    "type": "TerminalFont",
    "error": "Unknown terminal: sshd-session",
    "stat": 0.0019530002027750015
  },
  {
    "type": "TerminalSize",
    "result": {
      "columns": 364,
      "rows": 82,
      "width": 5096,
      "height": 2788
    },
    "stat": 0.0009119994938373566
  },
  {
    "type": "TerminalTheme",
    "result": {
      "fg": {
        "r": 220,
        "g": 220,
        "b": 220,
        "dark": false
      },
      "bg": {
        "r": 21,
        "g": 25,
        "b": 30,
        "dark": true
      }
    },
    "stat": 34.41112199984491
  },
  {
    "type": "CPU",
    "result": {
      "cpu": "Common KVM processor",
      "vendor": "AuthenticAMD",
      "packages": 1,
      "cores": {
        "physical": 4,
        "logical": 4,
        "online": 4
      },
      "frequency": {
        "base": 3792,
        "max": 0
      },
      "coreTypes": [],
      "temperature": null
    },
    "stat": 0.13585500046610832
  },
  {
    "type": "CPUCache",
    "result": {
      "l1": [
        {
          "size": 65536,
          "num": 4,
          "lineSize": 64,
          "type": "data"
        },
        {
          "size": 65536,
          "num": 4,
          "lineSize": 64,
          "type": "instruction"
        }
      ],
      "l2": [
        {
          "size": 524288,
          "num": 4,
          "lineSize": 64,
          "type": "unified"
        }
      ],
      "l3": [
        {
          "size": 16777216,
          "num": 1,
          "lineSize": 64,
          "type": "unified"
        }
      ]
    },
    "stat": 0.4726580008864403
  },
  {
    "type": "CPUUsage",
    "result": [
      0.0,
      0.0,
      0.0,
      0.0
    ],
    "stat": 200.85394700057805
  },
  {
    "type": "GPU",
    "result": [
      {
        "index": null,
        "coreCount": null,
        "coreUsage": null,
        "memory": {
          "dedicated": {
            "total": null,
            "used": null
          },
          "shared": {
            "total": null,
            "used": null
          },
          "type": null
        },
        "driver": "bochs-drm",
        "name": "Unknown Device 1111 (VGA compatible)",
        "temperature": null,
        "type": "Unknown",
        "vendor": "",
        "platformApi": "DRM (card0)",
        "frequency": 0,
        "deviceId": 10
      }
    ],
    "stat": 1.3945080004632473
  },
  {
    "type": "Memory",
    "result": {
      "total": 2068869120,
      "used": 339030016
    },
    "stat": 0.010960999876260757
  },
  {
    "type": "PhysicalMemory",
    "result": [
      {
        "size": 2147483648,
        "maxSpeed": 0,
        "runningSpeed": 0,
        "type": "RAM",
        "locator": "DIMM 0",
        "formFactor": "DIMM",
        "vendor": "QEMU",
        "serial": "",
        "partNumber": "",
        "ecc": false
      }
    ],
    "stat": 0.010319000110030174
  },
  {
    "type": "Swap",
    "result": {
      "total": 0,
      "used": 0
    },
    "stat": 0.0046689994633197784
  },
  {
    "type": "Disk",
    "result": [
      {
        "bytes": {
          "available": 861638656,
          "free": 1032712192,
          "total": 2961358848,
          "used": 1928646656
        },
        "files": {
          "total": 188416,
          "used": 47944
        },
        "filesystem": "ext4",
        "mountpoint": "/",
        "mountFrom": "/dev/sda1",
        "name": "",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2025-01-28T05:58:24.000+0100"
      },
      {
        "bytes": {
          "available": 120629248,
          "free": 120629248,
          "total": 129718272,
          "used": 9089024
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "vfat",
        "mountpoint": "/boot/efi",
        "mountFrom": "/dev/sda15",
        "name": "",
        "volumeType": [
          "Hidden"
        ],
        "createTime": null
      }
    ],
    "stat": 0.14292800053954124
  },
  {
    "type": "Btrfs",
    "error": "opendir(\"/sys/fs/btrfs\") == NULL",
    "stat": 0.004468999803066254
  },
  {
    "type": "Zpool",
    "error": "dlopen libzfs.so failed",
    "stat": 0.07063200138509274
  },
  {
    "type": "Battery",
    "result": [],
    "stat": 0.0038270000368356705
  },
  {
    "type": "PowerAdapter",
    "result": [],
    "stat": 0.00204399973154068
  },
  {
    "type": "Player",
    "error": "Player module is an alias of Media module",
    "stat": 0.0002609994262456894
  },
  {
    "type": "Media",
    "error": "Failed to connect to DBus",
    "stat": 0.3286269996315241
  },
  {
    "type": "PublicIp",
    "result": {
      "ip": "<redacted>",
      "location": "<redacted>"
    },
    "stat": 0.06883900053799152
  },
  {
    "type": "LocalIp",
    "result": [
      {
        "name": "eth0",
        "defaultRoute": true,
        "ipv4": "192.168.6.6/28",
        "ipv6": "fe80::be24:11ff:feff:835a/64",
        "mac": "bc:24:11:ff:83:5a",
        "mtu": 1500,
        "speed": -1,
        "flags": "UP,BROADCAST,RUNNING,MULTICAST,LOWER_UP"
      }
    ],
    "stat": 0.06570400111377239
  },
  {
    "type": "DNS",
    "result": [
      "192.168.1.18",
      "192.168.1.19"
    ],
    "stat": 0.012273000553250313
  },
  {
    "type": "Wifi",
    "result": [],
    "stat": 0.02299400046467781
  },
  {
    "type": "DateTime",
    "result": "2025-11-09T10:44:41.555+0100",
    "stat": 0.002684999257326126
  },
  {
    "type": "Locale",
    "result": "pl_PL.UTF-8",
    "stat": 0.000840999186038971
  },
  {
    "type": "Vulkan",
    "error": "dlopen libvulkan.so failed",
    "stat": 0.03962399996817112
  },
  {
    "type": "OpenGL",
    "error": "dlopen glx failed",
    "stat": 0.04466399922966957
  },
  {
    "type": "OpenCL",
    "error": "dlopen libOpenCL.so failed",
    "stat": 0.021080000326037407
  },
  {
    "type": "Users",
    "result": [],
    "stat": 0.006171999499201775
  },
  {
    "type": "Bluetooth",
    "result": [],
    "stat": 0.003046000376343727
  },
  {
    "type": "BluetoothRadio",
    "error": "Failed to open /sys/class/bluetooth",
    "stat": 0.00102199986577034
  },
  {
    "type": "Sound",
    "error": "Failed to load libpulse.so",
    "stat": 0.014947999268770218
  },
  {
    "type": "Camera",
    "result": [],
    "stat": 0.0016330014914274216
  },
  {
    "type": "Gamepad",
    "result": [
      {
        "serial": "28754-0000:00:1d.7-1",
        "name": "QEMU QEMU USB Tablet"
      }
    ],
    "stat": 0.0345040000975132
  },
  {
    "type": "Mouse",
    "result": [
      {
        "serial": "28754-0000:00:1d.7-1",
        "name": "QEMU QEMU USB Tablet"
      },
      {
        "serial": "",
        "name": "VirtualPS/2 VMware VMMouse"
      },
      {
        "serial": "",
        "name": "VirtualPS/2 VMware VMMouse"
      }
    ],
    "stat": 0.04179899953305721
  },
  {
    "type": "Keyboard",
    "result": [
      {
        "serial": "",
        "name": "AT Translated Set 2 keyboard"
      }
    ],
    "stat": 0.021449999883770943
  },
  {
    "type": "Weather",
    "error": "Empty server response received",
    "stat": 1026.583226999268
  },
  {
    "type": "NetIO",
    "result": [
      {
        "name": "eth0",
        "defaultRoute": true,
        "txBytes": 7101,
        "rxBytes": 7501,
        "txPackets": 71,
        "rxPackets": 70,
        "rxErrors": 0,
        "txErrors": 0,
        "rxDrops": 0,
        "txDrops": 0
      }
    ],
    "stat": 0.17898700013756752
  },
  {
    "type": "DiskIO",
    "result": [
      {
        "name": "QEMU QEMU CD-ROM",
        "devPath": "/dev/sr0",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      },
      {
        "name": "QEMU QEMU HARDDISK",
        "devPath": "/dev/sda",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      }
    ],
    "stat": 0.0957190003246069
  },
  {
    "type": "PhysicalDisk",
    "result": [
      {
        "name": "QEMU QEMU CD-ROM",
        "devPath": "/dev/sr0",
        "interconnect": "",
        "kind": "SSD",
        "size": 4194304,
        "serial": "",
        "removable": true,
        "readOnly": false,
        "revision": "2.5+",
        "temperature": null
      },
      {
        "name": "QEMU QEMU HARDDISK",
        "devPath": "/dev/sda",
        "interconnect": "",
        "kind": "SSD",
        "size": 3221225472,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "2.5+",
        "temperature": null
      }
    ],
    "stat": 0.18996700085699558
  },
  {
    "type": "TPM",
    "error": "TPM device is not found",
    "stat": 0.005129000172019005
  },
  {
    "type": "Version",
    "result": {
      "projectName": "fastfetch",
      "sysName": "Linux",
      "architecture": "x86_64",
      "version": "2.40.4",
      "versionGit": "",
      "cmakeBuiltType": "None",
      "compileTime": "Apr 13 2025, 22:01:17",
      "compiler": "gcc 14.2.0",
      "debugMode": true,
      "libc": "glibc 2.41"
    },
    "stat": 0.0016029998660087585
  },
  {
    "type": "Break",
    "error": "Unsupported for JSON format",
    "stat": 0.0008719991892576218
  },
  {
    "type": "Colors",
    "error": "Unsupported for JSON format",
    "stat": 0.0026249997317790985
  }
]

Features built-in

threads
vulkan
wayland
xcb-randr
xrandr
drm
drm_amdgpu
gio
dconf
dbus
imagemagick7
chafa
zlib
xfconf
sqlite3
rpm
egl
glx
opencl
libpulse
libddcutil
libzfs
Directx Headers
System yyjson
linux/videodev2
linux/wireless

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