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

1x1 shortcut widgets become "invalid" after reboot #16

Open
ghost opened this issue Oct 10, 2017 · 2 comments
Open

1x1 shortcut widgets become "invalid" after reboot #16

ghost opened this issue Oct 10, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 10, 2017

On my LG G3, when i add a "shortcut" widget to my launcher (and select the script from ~/.shortcuts/ directory) it works fine until next reboot, after which trying to start it just pops up a "toast" message at the bottom of the screen saying: "This shortcut has become invalid - remove and add again" It doesn't seem to be a permission issue, because running 'setenforce 0' and immediately trying one of these "invalid" shortcuts produces the same error.

Works fine on my galaxy s3.
Both phones are running Lineage OS 14.1 (android 7.1.2)

Tested with nova launcher and trebuchet, same result.

@rjdang
Copy link

rjdang commented Dec 13, 2017

I'm having a similar issue on a Nexus 6P and Nexus 5X both running 7.1.2, but not on reboot, only when I reinstall the OS and restore a backup of my launcher layout (using Nova Launcher).

agnostic-apollo added a commit to termux/termux-app that referenced this issue Sep 22, 2021
@agnostic-apollo
Copy link
Member

My guess would that either android is not saving the shortcut token in SharedPreferences asynchronously after creation, which would be an OS issue or if launcher is not sending it to termux-widget, which would be a launcher issue. However, for the OS issue, I have attempted to fix it with da4b437 by saving synchronously. Try version 0.13.0 when its released on F-Droid https://github.com/termux/termux-app#Installation. It may solve the issue. Old shortcuts have also been invalidated and will need to be recreated.

AdamMickiewich pushed a commit to VolyaTeam/dzida-app that referenced this issue Aug 8, 2022
shrihankp pushed a commit to reisxd/termux-app that referenced this issue Oct 20, 2022
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

2 participants