-
Notifications
You must be signed in to change notification settings - Fork 173
Description
Problem description
It is possible to add a Termux:Widget on the desktop, there is the type Widget and the type Shortcut. Sometimes the Widget type does not work, it displays the message No files in $HOME/.shortcuts/ or it simply feezes witht the proper content, but it does noting on tap. Tapping the reload icon does not show the Termux shortucts reloaded message.
When you reboot the device, the widget always shows the No files in $HOME/.shortcuts/.
Steps to reproduce
Reboot the device and add a Termux:Widget on the desktop. The message No files in $HOME/.shortcuts/ is shown even though scripts exist in the .shortcut directory. Tapping the reload icon does not reload the list.
If you somehow managed to add a working Termux:Widget (see below), it can happen that after some time the widget stops working: tapping over a script or reloading the list produces no results.
Expected behavior
The Termux:Widget should list the scripts available into the .shortcut directory. Tapping a script name, the script should execute.
Workaround
It turned out that the problem it tied to the existence of the com.termux.widget process: if the process exists, everything is working correctly, if the process is gone (perhaps killed by the o.s.) the Widget stops working.
Workaround: if you create a Termux:Widget Shortcut icon and you tap it, you can force the process com.termux.widget to start. In this case the Termux:Widget script list is revived or you can add the script list again after a device reboot.
Additional information
- Termux application version: Termux:Widget 0.13.0, Termux 0.118.0 (from F-Droid)
- Android OS version: 13
- Device model: BlackView BV5300 Pro