Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 12 and Android 13 kill the Termux:Widget scrip list #116

Open
RigacciOrg opened this issue Jun 10, 2024 · 1 comment
Open

Android 12 and Android 13 kill the Termux:Widget scrip list #116

RigacciOrg opened this issue Jun 10, 2024 · 1 comment

Comments

@RigacciOrg
Copy link

RigacciOrg commented Jun 10, 2024

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
@RigacciOrg
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant