elyukai / tdeheroes

Optolith Character Generator is a desktop application for The Dark Eye 5th Edition.
http://www.ulisses-ebooks.de/product/209711
Other
29 stars 2 forks source link

Hero Avatar not visible on Linux #254

Closed elyukai closed 5 years ago

elyukai commented 5 years ago

Only shows grey border, no actual image. Tested on Ubuntu. See Discord „Jim Knopf“.

elyukai commented 5 years ago

Not working on Debian as well.

LLmichi1 commented 5 years ago

Maybe a problem wirh the image path? Paths in Linux are written slightly different compared to paths in Windows..

elyukai commented 5 years ago

To show the images I need the file:// protocol, because it's what chromium needs to show the image. I thought, it looks the same for all OSs.

`file://${fileName.replace (/\\/g, "/")}`

This is basically what I do to convert the path from the OS to a file:// path. I need the replace for windows, but am I missing sth I need to do to get it working on Linux?

pupugit commented 5 years ago

The error (which I was able to reproduce in version 1.0.3) is fixed in 1.1.0-alpha18. Tested with Ubuntu 18.10

elyukai commented 5 years ago

Thanks for double-checking!! :)