termux / termux-widget

Termux add-on app which adds shortcuts to commands on the home screen.
https://f-droid.org/en/packages/com.termux.widget
Other
1k stars 117 forks source link

Missing documentation when your Launcher has no option to create shortcuts. #118

Open praxanz opened 4 months ago

praxanz commented 4 months ago

Feature description

When I select the Widget option in the launcher on my Samsung phone, I can select the 2x2 Widget or the 1x1 Shortcut. On my OnePlus Pad with OxygenOS 14.0, only the 2x2 Widget is available.

I read on some forum that the next release of Termux-Widget will have a button to install shortcuts, and that for now we must use an external app like "App Manager"

I found a better solution without external app.

Just create:

        ~/.shortcuts/tasks/create-shortcut

with content:

        am start com.termux.widget/.TermuxCreateShortcutActivity

The first time you need to run it from the command line or from the 2x2 Widget to create the create-shortcut shortcut.

It may be helpful for others with the same problem to add this solution to the SETUP instructions while we are waiting for the release of the next version.