Touch Bar Widget: Run Shell Script & Show Result: Regression in 2.631

2.631 introduced a bug not experienced in 2.625 or earlier:

A "run shell script & show result" touch bar widget now has 2 bugs:

  1. It no longer displays the result of the widget shell script.
  2. When I press the widget icon to run the "predefined action" shell script, the icon completely disappears.

2017 MacBook Pro Touch Bar
MacOS 10.13.6

I can not reproduce this. Could you copy & paste the widget here? (just select it in BTT, press cmd+c, then press cmd+v here)

This may not be helpful because the widget runs a binary I created in Xcode. Do you want me to email you the binary or the Xcode project (a short Swift program)?

{
"BTTWidgetName" : "HQ Vol Time direct",
"BTTTriggerType" : 642,
"BTTTriggerTypeDescription" : "Shell Script / Task Widget",
"BTTTriggerClass" : "BTTTriggerTypeTouchBar",
"BTTPredefinedActionType" : 206,
"BTTPredefinedActionName" : "Execute Shell Script / Task",
"BTTShellTaskActionScript" : "--pause",
"BTTShellTaskActionConfig" : "/Applications/HQPlayerDesktop.app/Contents/MacOS/hqp-control:::10.0.4.5:::Pause",
"BTTShellScriptWidgetGestureConfig" : "/usr/local/bin/HQP_Volume_Time:::",
"BTTEnabled2" : 1,
"BTTUUID" : "59626BE2-82F8-4C49-BF31-68B7B1C553C6",
"BTTEnabled" : 1,
"BTTOrder" : 1,
"BTTTriggerConfig" : {
"BTTScriptType" : 0,
"BTTTouchBarButtonColor" : "94.491582, 94.493998, 94.492691, 255.000000",
"BTTTBName" : "HQ Vol Time direct",
"BTTTouchBarItemIconWidth" : 22,
"BTTTouchBarItemPlacement" : 2,
"BTTTouchBarAlternateBackgroundColor" : "128.829533, 128.829533, 128.829533, 255.000000",
"BTTTouchBarScriptUpdateInterval" : 0.85069441795349121,
"BTTTouchBarAlwaysShowButton" : "0",
"BTTTouchBarAppleScriptStringRunOnInit" : 0,
"BTTTouchBarAppleScriptUsePath" : 0,
"BTTTouchBarFreeSpaceAfterButton" : "5.000000",
"BTTTouchBarItemIconHeight" : 22,
"BTTTouchBarItemPadding" : 0
}
}

Ahh, I think I see the issue. I'll upload a new alpha in a minute, would be great if you could test that.

Yes, 2.634 fixed it. Thanks!