waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

[Feature]: Custom widget commands should read RC files

Open JameInw opened this issue 2 months ago • 5 comments

Current Behavior

I tried writing Custom Widgets that are CLI Widgets

"WakeOnLan-XXXXX": {
    "icon": "power-off",
    "label": "WoL-HA",
    "color": "#F72C5B",
    "blockdef": {
      "meta": {
        "view": "term",
        "controller": "cmd",
        "cmd": "wakeonlan FF:FF:FF:FF:FF:FF",
        "cmd:closeonexit" : 0
      }
    }
  }

But when I tried it, the result was

zsh:1: command not found: wakeonlan process finished with exit code = 127

Even though I tried the command myself, it worked. Note: I tested it on Macbook Air M2

Expected Behavior

I hope it will work in the future.

Steps To Reproduce

  1. Macbook Air M2
  2. Use ZSH
  3. Use Script
"WakeOnLan-XXXX": {
    "icon": "power-off",
    "label": "WoL",
    "color": "#F72C5B",
    "blockdef": {
      "meta": {
        "view": "term",
        "controller": "cmd",
        "cmd": "wakeonlan",
        "cmd:closeonexit" : 0
      }
    }
  }

Wave Version

Client Version 0.10.1 (202412130327)

Platform

macOS

OS Version/Distribution

MacOS 15.1.1

Architecture

arm64

Anything else?

No response

Questionnaire

  • [ ] I'm interested in fixing this myself but don't know where to start
  • [ ] I would like to fix and I have a solution
  • [X] I don't have time to fix this right now, but maybe later

JameInw avatar Dec 13 '24 13:12 JameInw