#termuxwidget

dredmorbius@joindiaspora.com

Termux:Widget issue (Termux / Android / BOOX)

I'm trying to get Termux:Widget, an app for creating Android launchers for executables under Termux working.

Termux is a Linux-userland environment for Android. Version 0.117 installed.

Device is an Onyx BOOX e-ink tablet running Android 10. Display is e-ink, which appears to cause issues in some apps. I'm unsure any of this is relevant.

I'm referencing the set-up instructions here: https://github.com/termux/termux-widget

Termux:Widget is installed from F-Droid, version 0.13.0 (latest). As far as I know it is not installable from Google Play Store, though an alternative is to install directly from Github.

I've created ~/.shortcuts/tasks/ directories, chmoded 700 as directed in the instructions link above..

My script is a simple text-to-speech "hello world" which should output to the device's speaker, saved as hello in both .shortcuts and .shortcuts/tasks, with 700 permissions:

#!/data/data/com.termux/files/usr/bin/bash

echo "Hello, world"
termux-tts-speak "Hello world."

The script runs as expected from Termux, outputting "Hello, world" and saying "Hello world" through the device speaker.

When I launch Termux:Widget from the home-screen icon, rather than the list of scripts I expect (that is, "hello", either listed once or twice for the two files existing above), I see what appears to be an informational screen:

Termux:Widget is a plubin app for the Termux app. Check Termux app github https://github.com/termux/termux-app and Termux:Widget app github https://github.com/termux/termux-widget for more info.

The Termux:Widget app does not require launcher icon/activity to function. You can optionally disable it if you want and can enabled in again [sic] either by reinstalling the app or from the Termux app settings if the option has beein implemented in your installed version.

Beneath these two paragraphs is a button labled "DISABLE LAUNCHER ICON".

There are no other visible widgets or selectable actions. Using an external Bluetooth keyboard, there is no response to the menu (F3) key.

There are no configuration or permissions options for Termux:Widget.

I've enabled "Float over apps" for Termux.

I've force-stopped / restarted, and fully uninstalled & reinstalled Termux:Widget several times.

Selecting "DISABLE LAUNCHER ICON" results in there being no visible Termux:Widget icon, nor any way to recover it short of uninstalling and reinstalling the app. I've done this several times.

I've exited, force-stopped, and restarted Termux. (I cannot uninstall Termux itself without data loss.)

My sense is that Termux:Widget itself isn't properly autoconfiguring itself, or cannot see/access Termux file storage.

Issue filed on GitHub. Any assistance or confirmation here is appreciated.

#termux #TermuxWidget #Android #BOOX #Onyx