fastfetch-cli / fastfetch

A maintained, feature-rich and performance oriented, neofetch like system information tool.
MIT License
10.58k stars 408 forks source link

[Question] Cowsay doesn't work anymore #827

Closed ngraham20 closed 6 months ago

ngraham20 commented 6 months ago

General description of bug:

Using cowsay for the --data-raw as described in #345 no longer works.

Often helpful information:

Screenshot:

image

Output of fastfetch -c ci.jsonc --format json:

[
  {
    "type": "Title",
    "result": {
      "userName": "nathaniel",
      "hostName": "framework16",
      "homeDir": "/home/nathaniel/",
      "exePath": "/usr/bin/fastfetch",
      "userShell": "/usr/bin/fish",
      "pageSize": 4096
    },
    "stat": 0
  },
  {
    "type": "Separator",
    "error": "Unsupported for JSON format",
    "stat": 0
  },
  {
    "type": "OS",
    "result": {
      "buildID": "",
      "codename": "",
      "id": "nobara",
      "idLike": "rhel centos fedora",
      "name": "Nobara Linux",
      "prettyName": "Nobara Linux 39 (KDE Plasma)",
      "variant": "KDE Plasma",
      "variantID": "kde",
      "version": "39 (KDE Plasma)",
      "versionID": "39"
    },
    "stat": 0
  },
  {
    "type": "Host",
    "result": {
      "family": "16in Laptop",
      "name": "Laptop 16 (AMD Ryzen 7040 Series)",
      "version": "AJ",
      "sku": "FRAGACCP0J",
      "vendor": "Framework",
      "serial": "",
      "uuid": ""
    },
    "stat": 0
  },
  {
    "type": "Bios",
    "result": {
      "date": "01/23/2024",
      "release": "3.2",
      "vendor": "INSYDE Corp.",
      "version": "03.02",
      "type": "UEFI"
    },
    "stat": 0
  },
  {
    "type": "Board",
    "result": {
      "name": "FRANMZCP09",
      "vendor": "Framework",
      "version": "A9",
      "serial": ""
    },
    "stat": 0
  },
  {
    "type": "Chassis",
    "result": {
      "type": "Notebook",
      "vendor": "Framework",
      "version": "AJ",
      "serial": ""
    },
    "stat": 0
  },
  {
    "type": "Kernel",
    "result": {
      "architecture": "x86_64",
      "name": "Linux",
      "release": "6.8.7-201.fsync.fc39.x86_64",
      "version": "#1 SMP PREEMPT_DYNAMIC TKG Sun Apr 28 08:28:35 UTC 2024",
      "displayVersion": ""
    },
    "stat": 0
  },
  {
    "type": "Uptime",
    "result": {
      "uptime": 13799980,
      "bootTime": "2024-04-30T22:09:22.796-0600"
    },
    "stat": 0
  },
  {
    "type": "Processes",
    "result": 499,
    "stat": 2
  },
  {
    "type": "Packages",
    "result": {
      "all": 3790,
      "apk": 0,
      "brew": 0,
      "brewCask": 0,
      "choco": 0,
      "dpkg": 0,
      "emerge": 0,
      "eopkg": 0,
      "flatpakSystem": 14,
      "flatpakUser": 22,
      "nixDefault": 48,
      "nixSystem": 0,
      "nixUser": 0,
      "pacman": 0,
      "paludis": 0,
      "pkg": 0,
      "pkgtool": 0,
      "macports": 0,
      "rpm": 3706,
      "scoop": 0,
      "snap": 0,
      "winget": 0,
      "xbps": 0,
      "opkg": 0,
      "am": 0,
      "pacmanBranch": ""
    },
    "stat": 83
  },
  {
    "type": "Shell",
    "result": {
      "exe": "/usr/bin/fish",
      "exeName": "fish",
      "exePath": "/usr/bin/fish",
      "pid": 76061,
      "ppid": 76049,
      "processName": "fish",
      "prettyName": "fish",
      "version": "3.7.0",
      "tty": 1
    },
    "stat": 6
  },
  {
    "type": "Display",
    "result": [
      {
        "width": 2560,
        "height": 1600,
        "id": 0,
        "name": "BOE0BC9",
        "primary": false,
        "refreshRate": 165.0,
        "rotation": 0,
        "scaledHeight": 800,
        "scaledWidth": 1280,
        "type": "Builtin"
      }
    ],
    "stat": 10
  },
  {
    "type": "Brightness",
    "result": [
      {
        "name": "BOE0BC9",
        "max": 4095.0,
        "min": 0.0,
        "current": 1843.0
      }
    ],
    "stat": 0
  },
  {
    "type": "Monitor",
    "result": [
      {
        "hdrCompatible": false,
        "name": "BOE0BC9",
        "resolution": {
          "width": 2560,
          "height": 1600
        },
        "physical": {
          "height": 215,
          "width": 345
        },
        "manufactureDate": {
          "year": 2022,
          "week": 48
        },
        "serial": null
      }
    ],
    "stat": 1
  },
  {
    "type": "LM",
    "result": {
      "service": "sddm",
      "type": "Wayland",
      "version": "0.21.0"
    },
    "stat": 0
  },
  {
    "type": "DE",
    "result": {
      "processName": "plasmashell",
      "prettyName": "KDE Plasma",
      "version": "6.0.4"
    },
    "stat": 0
  },
  {
    "type": "WM",
    "result": {
      "processName": "kwin_wayland_wrapper",
      "prettyName": "KWin",
      "protocolName": "Wayland",
      "pluginName": ""
    },
    "stat": 0
  },
  {
    "type": "WMTheme",
    "result": "Breeze",
    "stat": 0
  },
  {
    "type": "Theme",
    "result": "Nobara (Nobara) [QT], Nobara [GTK2], Breeze [GTK3], Nobara [GTK4]",
    "stat": 0
  },
  {
    "type": "Icons",
    "result": "Papirus-Colors-Dark [QT], Papirus-Colors-Dark [GTK3/4]",
    "stat": 0
  },
  {
    "type": "Font",
    "result": {
      "display": "Noto Sans (11pt) [QT], Noto Sans (11pt) [GTK3/4]",
      "fonts": [
        "Noto Sans (11pt)",
        "",
        "Noto Sans (11pt)",
        "Noto Sans (11pt)"
      ]
    },
    "stat": 0
  },
  {
    "type": "Cursor",
    "result": {
      "theme": "breeze_cursors",
      "size": "24"
    },
    "stat": 0
  },
  {
    "type": "Wallpaper",
    "result": "/home/nathaniel/Pictures/Wallpapers/favorites/stay_by_aenami_dbnb1k3.png",
    "stat": 0
  },
  {
    "type": "Terminal",
    "result": {
      "processName": "kitty",
      "exe": "/usr/bin/kitty",
      "exeName": "kitty",
      "exePath": "/usr/bin/kitty",
      "pid": 76049,
      "ppid": 4825,
      "prettyName": "kitty",
      "version": "0.31.0",
      "tty": ""
    },
    "stat": 1
  },
  {
    "type": "TerminalFont",
    "result": {
      "font": {
        "name": "NotoSansMono-Regular",
        "size": "11",
        "styles": [],
        "pretty": "NotoSansMono-Regular (11pt)"
      },
      "fallback": {
        "name": "",
        "size": "",
        "styles": [],
        "pretty": ""
      }
    },
    "stat": 262
  },
  {
    "type": "TerminalSize",
    "error": "Failed to detect terminal size",
    "stat": 0
  },
  {
    "type": "TerminalTheme",
    "error": "Failed to detect terminal theme",
    "stat": 0
  },
  {
    "type": "CPU",
    "result": {
      "cpu": "AMD Ryzen 9 7940HS w/ Radeon 780M Graphics",
      "vendor": "AuthenticAMD",
      "cores": {
        "physical": 8,
        "logical": 16,
        "online": 16
      },
      "frequency": {
        "base": 0.4,
        "max": 6.228,
        "min": 0.4
      },
      "temperature": null
    },
    "stat": 1
  },
  {
    "type": "CPUUsage",
    "result": [
      5.0,
      0.0,
      0.0,
      4.761904761904762,
      5.0,
      0.0,
      0.0,
      5.0,
      4.761904761904762,
      0.0,
      0.0,
      0.0,
      25.0,
      0.0,
      10.0,
      5.263157894736842
    ],
    "stat": 201
  },
  {
    "type": "GPU",
    "result": [
      {
        "coreCount": null,
        "memory": {
          "dedicated": {
            "total": null,
            "used": null
          },
          "shared": {
            "total": null,
            "used": null
          }
        },
        "driver": "amdgpu",
        "name": "AMD Radeon RX 7700S",
        "temperature": null,
        "type": "Discrete",
        "vendor": "AMD",
        "platformApi": "",
        "frequency": null
      },
      {
        "coreCount": null,
        "memory": {
          "dedicated": {
            "total": null,
            "used": null
          },
          "shared": {
            "total": null,
            "used": null
          }
        },
        "driver": "amdgpu",
        "name": "Phoenix1",
        "temperature": null,
        "type": "Integrated",
        "vendor": "AMD",
        "platformApi": "",
        "frequency": 0.8
      }
    ],
    "stat": 3
  },
  {
    "type": "Memory",
    "result": {
      "total": 66560380928,
      "used": 11454402560
    },
    "stat": 0
  },
  {
    "type": "Swap",
    "result": {
      "total": 8589930496,
      "used": 165675008
    },
    "stat": 0
  },
  {
    "type": "Disk",
    "result": [
      {
        "bytes": {
          "available": 482520313856,
          "free": 483247149056,
          "total": 949282217984,
          "used": 466035068928
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/",
        "mountFrom": "/dev/nvme1n1p3",
        "name": "root",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2024-03-11T10:30:37.531-0600"
      },
      {
        "bytes": {
          "available": 531787776,
          "free": 602251264,
          "total": 1020702720,
          "used": 418451456
        },
        "files": {
          "total": 65536,
          "used": 45
        },
        "filesystem": "ext4",
        "mountpoint": "/boot",
        "mountFrom": "/dev/nvme1n1p2",
        "name": "boot",
        "volumeType": [
          "Hidden"
        ],
        "createTime": "2024-03-11T10:30:23.000-0600"
      },
      {
        "bytes": {
          "available": 581652480,
          "free": 581652480,
          "total": 627900416,
          "used": 46247936
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "vfat",
        "mountpoint": "/boot/efi",
        "mountFrom": "/dev/nvme1n1p1",
        "name": "",
        "volumeType": [
          "Hidden"
        ],
        "createTime": null
      },
      {
        "bytes": {
          "available": 482520313856,
          "free": 483247149056,
          "total": 949282217984,
          "used": 466035068928
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/home",
        "mountFrom": "/dev/nvme1n1p3",
        "name": "root",
        "volumeType": [
          "Subvolume"
        ],
        "createTime": "2024-03-11T10:30:37.533-0600"
      },
      {
        "bytes": {
          "available": 1817788067840,
          "free": 1817788067840,
          "total": 2000381014016,
          "used": 182592946176
        },
        "files": {
          "total": 1775478572,
          "used": 231016
        },
        "filesystem": "fuseblk",
        "mountpoint": "/run/media/nathaniel/nvme0n1p2",
        "mountFrom": "/dev/nvme0n1p2",
        "name": "Basic data partition",
        "volumeType": [
          "Regular"
        ],
        "createTime": null
      },
      {
        "bytes": {
          "available": 250041860096,
          "free": 250041860096,
          "total": 250044481536,
          "used": 2621440
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "exfat",
        "mountpoint": "/run/media/nathaniel/sda1",
        "mountFrom": "/dev/sda1",
        "name": "USB DISK",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2024-04-30T14:31:53.290-0600"
      }
    ],
    "stat": 1
  },
  {
    "type": "Battery",
    "result": [
      {
        "capacity": 92.0,
        "manufacturer": "NVT",
        "manufactureDate": "",
        "modelName": "FRANDBA",
        "status": "Discharging",
        "technology": "Li-ion",
        "serial": "01CD",
        "temperature": null,
        "cycleCount": 1
      }
    ],
    "stat": 1
  },
  {
    "type": "PowerAdapter",
    "error": "No power adapters found",
    "stat": 0
  },
  {
    "type": "Player",
    "result": {
      "player": "Vivaldi",
      "playerId": "chromium.instance76929",
      "url": ""
    },
    "stat": 4
  },
  {
    "type": "Media",
    "result": {
      "song": "lofi hip hop radio 📚 - beats to relax/study to",
      "artist": "Lofi Girl",
      "album": "",
      "status": ""
    },
    "stat": 0
  },
  {
    "type": "PublicIp",
    "result": {
      "ip": "<redacted>",
      "location": "<redacted>"
    },
    "stat": 0
  },
  {
    "type": "LocalIp",
    "result": [
      {
        "defaultRoute": true,
        "ipv4": "192.168.88.55/24",
        "ipv6": "",
        "mac": "",
        "name": "wlp5s0"
      }
    ],
    "stat": 1
  },
  {
    "type": "Wifi",
    "result": [
      {
        "inf": {
          "description": "wlp5s0",
          "status": "Activated"
        },
        "conn": {
          "status": "Connected",
          "ssid": "Kana Tavern",
          "bssid": "B0:95:75:46:A3:5B",
          "protocol": "802.11ac (Wi-Fi 5)",
          "security": "WPA2",
          "signalQuality": 51.0,
          "rxRate": 234.0,
          "txRate": 802.11
        }
      }
    ],
    "stat": 29
  },
  {
    "type": "DateTime",
    "result": 1714522763422,
    "stat": 0
  },
  {
    "type": "Locale",
    "result": "en_US.utf8",
    "stat": 0
  },
  {
    "type": "Vulkan",
    "result": {
      "apiVersion": "1.3.278",
      "conformanceVersion": "1.3",
      "driver": "radv [Mesa 24.1.0-devel]",
      "gpus": [
        {
          "type": "Integrated",
          "vendor": "AMD",
          "name": "AMD Radeon Graphics (RADV GFX1103_R1)",
          "driver": "Mesa 24.1.0-devel",
          "platformApi": "Vulkan 1.3.278",
          "memory": {
            "dedicated": {
              "total": 0,
              "used": null
            },
            "shared": {
              "total": 33817059328,
              "used": null
            }
          },
          "deviceId": 5567
        },
        {
          "type": "Discrete",
          "vendor": "AMD",
          "name": "AMD Radeon RX 7700S (RADV NAVI33)",
          "driver": "Mesa 24.1.0-devel",
          "platformApi": "Vulkan 1.3.278",
          "memory": {
            "dedicated": {
              "total": 8573157376,
              "used": null
            },
            "shared": {
              "total": 33280188416,
              "used": null
            }
          },
          "deviceId": 29824
        }
      ]
    },
    "stat": 66
  },
  {
    "type": "OpenGL",
    "result": {
      "version": "4.6 (Compatibility Profile) Mesa 24.0.4",
      "renderer": "AMD Radeon Graphics (radeonsi, gfx1103_r1, LLVM 17.0.6, DRM 3.57, 6.8.7-201.fsync.fc39.x86_64)",
      "vendor": "AMD",
      "slv": "4.60"
    },
    "stat": 58
  },
  {
    "type": "OpenCL",
    "result": {
      "version": "1.1 Mesa 24.0.4",
      "device": "AMD Radeon RX 7700S (radeonsi, navi33, LLVM 17.0.6, DRM 3.57, 6.8.7-201.fsync.fc39.x86_64)",
      "vendor": "AMD"
    },
    "stat": 60
  },
  {
    "type": "Users",
    "result": [
      {
        "name": "nathaniel",
        "hostName": "",
        "sessionName": "tty2",
        "clientIp": "0.0.0.0",
        "loginTime": "2024-04-30T14:31:47.999-0600"
      }
    ],
    "stat": 0
  },
  {
    "type": "Bluetooth",
    "result": [],
    "stat": 1
  },
  {
    "type": "Sound",
    "result": [
      {
        "active": true,
        "main": true,
        "volume": 55,
        "name": "Family 17h/19h HD Audio Controller Analog Stereo",
        "identifier": "alsa_output.pci-0000_c5_00.6.analog-stereo"
      },
      {
        "active": false,
        "main": false,
        "volume": 0,
        "name": "Easy Effects Sink",
        "identifier": "easyeffects_sink"
      }
    ],
    "stat": 9
  },
  {
    "type": "Camera",
    "error": "Fastfetch was compiled without <linux/videodev2.h>",
    "stat": 0
  },
  {
    "type": "Gamepad",
    "error": "No devices detected",
    "stat": 0
  },
  {
    "type": "Weather",
    "result": "+54°F - Partly cloudy (Boise, Idaho, United States)",
    "stat": 0
  },
  {
    "type": "NetIO",
    "result": [
      {
        "name": "wlp5s0",
        "defaultRoute": true,
        "txBytes": 5569,
        "rxBytes": 5359,
        "txPackets": 21,
        "rxPackets": 18,
        "rxErrors": 0,
        "txErrors": 0,
        "rxDrops": 0,
        "txDrops": 0
      }
    ],
    "stat": 199
  },
  {
    "type": "DiskIO",
    "result": [
      {
        "name": "WD_BLACK SN850X 2000GB",
        "devPath": "/dev/nvme0n1",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      },
      {
        "name": "WD PC SN740 SDDPTQD-1T00",
        "devPath": "/dev/nvme1n1",
        "bytesRead": 0,
        "bytesWritten": 4096,
        "readCount": 0,
        "writeCount": 1
      },
      {
        "name": "USB DISK 3.2",
        "devPath": "/dev/sda",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      }
    ],
    "stat": 1
  },
  {
    "type": "PhysicalDisk",
    "result": [
      {
        "name": "WD_BLACK SN850X 2000GB",
        "devPath": "/dev/nvme0n1",
        "interconnect": "NVMe",
        "kind": "SSD",
        "size": 2000398934016,
        "serial": "232351801819",
        "removable": false,
        "readOnly": false,
        "revision": "620331WD",
        "temperature": null
      },
      {
        "name": "WD PC SN740 SDDPTQD-1T00",
        "devPath": "/dev/nvme1n1",
        "interconnect": "NVMe",
        "kind": "SSD",
        "size": 1024209543168,
        "serial": "23232A800516",
        "removable": false,
        "readOnly": false,
        "revision": "73110000",
        "temperature": null
      },
      {
        "name": "USB DISK 3.2",
        "devPath": "/dev/sda",
        "interconnect": "USB",
        "kind": "HDD",
        "size": 250059350016,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "",
        "temperature": null
      }
    ],
    "stat": 1
  },
  {
    "type": "Version",
    "result": {
      "projectName": "fastfetch",
      "architecture": "x86_64",
      "version": "2.11.0",
      "versionTweak": "",
      "cmakeBuiltType": "RelWithDebInfo",
      "compileTime": "Apr 30 2024, 13:44:45",
      "compiler": "gcc 9.4.0",
      "debugMode": false,
      "libc": "glibc 2.31"
    },
    "stat": 0
  },
  {
    "type": "Break",
    "error": "Unsupported for JSON format",
    "stat": 0
  },
  {
    "type": "Colors",
    "error": "Unsupported for JSON format",
    "stat": 0
  }
]

Output of fastfetch --list-features:

threads
vulkan
wayland
xcb-randr
xcb
xrandr
x11
drm
gio
dconf
dbus
imagemagick7
imagemagick6
chafa
zlib
xfconf
sqlite3
egl
glx
osmesa
opencl
libpulse
libnm
libddcutil
Directx Headers
Proprietary GPU driver API
CarterLi commented 6 months ago

Because fastfetch is piped. Please try fastfetch --pipe false --whatever

ngraham20 commented 6 months ago

awesome, thanks! That worked