Bug: Cannoth change Widget Icon by absolute image path

58 views
Skip to first unread message

Fabione72

unread,
Oct 3, 2012, 9:11:48 AM10/3/12
to tas...@googlegroups.com
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

Pent

unread,
Oct 3, 2012, 10:45:21 AM10/3/12
to Tasker
There *is* a bug there I'm aware of, let me know if it's still there
after the next version please.

Pent

Pent

unread,
Oct 3, 2012, 10:46:00 AM10/3/12
to Tasker
p.s. if I remember right, that's a URI. You could try:

file:///mnt/sdcard...

Pent

Fabione72

unread,
Oct 4, 2012, 10:18:36 AM10/4/12
to tas...@googlegroups.com
Tried, unfortunately no results :(

from XML backup:

...
<Action sr="act1" ve="3">
<code>152</code>
<Str sr="arg0" ve="3">Meteo Widget</Str>
<Img sr="arg1" ve="2">
<var>file:///mnt/sdcard/Tasker/.icn/Weather1/Sun.png</var>
</Img>
</Action>
...

Cheers
Reply all
Reply to author
Forward
0 new messages