Hi All,
I'm actually facing an annoying bug while trying to change a Widget icon by absolute path (as opposite ti manually choose the icon).
My intention is to change a widget icon basing on weather conditions, passing the image path through a variable.
All icon (png) have been placed into directory: "/mnt/sdcard/Tasker/.icn/Weather" folder.
EXAMPLE: In Widget icon change action:
- If I switch from manual image to absolute path and configured the icon as "/mnt/sdcard/Tasker/.icn/Weather/Sun.png" (directly as text or through a variable), and I run the task -> icon not changed (KO)
No errors reported. I activated the log, task exits with "OK" condition.
- Tried using alternative paths, such as "Tasker/.icn/Weather/Sun.png" or "Weather/Sun.png" -> no results
- Tried to place the icon file in the main directory (/mnt/sdcard) and configure the path just with "Sun.png" -> no results
- If I re-switch from absolute path to manual image, I select "Weather" from the list and than I choose the Sun icon -> icon properly changed (OK)
So that I tried to export the both version of the task "XML on SD" in order to see differences. Both versions seems to use the absolute path "/mnt/sdcard/Tasker/.icn/Weather/Sun.png" (only difference: one uses "<fle>" and the other "<var>")
So I made a test:
I tried to manually edit the XML version of the task, changed the task name, and modified image path to another one, from:
<fle>/mnt/sdcard/Tasker/.icn/Cute/Sun.png</fle>
to:
<var>/mnt/sdcard/Tasker/.icn/Cute/Cloudy.png</var>
.
Then I imported and ran the task in tasker -> icon changed (OK)
So it seems there is some kind of bug related to the management of "<fle>" argument...
or... Do I miss anything? (I found no hints neither on userguide nor in forums)
Currently I'm stuck. Do you have some idea? :(
Thanks in advance
Cheers