jangabrielsson / TQAE

Development environment for Fibaro HC3 QuickApps
GNU General Public License v3.0
9 stars 3 forks source link

Plugin code assumes asset directory location #3

Closed gurpal2000 closed 1 year ago

gurpal2000 commented 1 year ago

There is a blog by Joep. As per https://docs.joepverhaeg.nl/hc3-tqae/ templates should be visible under the sub-menu.

On a vanilla Windows install, there are no items on the sub-menu. The console says "Asset directory set to '\.zbstudio\tqae\' even though I have files located under "c:\users\xxxxx\.zbstudio..."

In TQAEplugin.lua, it is assuming that OS env vars HOME or TQAEASSETS are defined.

assetDir = (os.getenv('HOME') or '')..ps..".zbstudio"..ps.."tqae"..ps

The instructions on the blog omit this information.

Solutions:

jangabrielsson commented 1 year ago

Thanks, I totally missed your patch. I can't remember seeing any email notification either. Anyway, I have merged it with the code - Not having or testing on Windows makes it easy to miss stuff like this. thanks!