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

Icons are not showing with task shortcuts #98

Closed chrismit3s closed 1 year ago

chrismit3s commented 1 year ago

Problem description

I thought the icons in the ~/.shortcuts/icons/ directory are for both normal and task shortcuts. But it appears that is not the case. I added a script to .shortcuts, and the corresponding icon to .shortcuts/icons and the icon is used as the widget icon. But when I copy said script to .shortcuts/tasks, I get the default icon when I create the widget.

Steps to reproduce

  1. Add script to ~/.shortcuts/tasks/script
  2. Add icon to ~/.shortcuts/icons/script.png
  3. Make sure the permissions are correct
  4. Create a new widget for said script
  5. The widget uses the default termux icon

Expected behavior

Additional information

chrismit3s commented 1 year ago

Tried it again, seems to work now. Same version, same everything *shrug*.