You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I solved the problem, which seems specific to the customization of the Android operating system made by Blackview. This Android has several power saving features which are controlled by a specific app names System Manager. You can tap App Management => Auto Start Management and see that per default almost all the apps are prevented the auto start. Having enabled the app's auto start, the widget is displayed correctly even after a reboot.
However, you may want a feature that updates the widget content when you manually run the app, even if this action did not happen at startup.
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 theTermux 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
The text was updated successfully, but these errors were encountered: