fhackenberger / ktikz

KtikZ provides a nice user interface for making pictures using TikZ.
Other
348 stars 34 forks source link

Code detecting existence of template doesn’t work #43

Open flying-sheep opened 4 years ago

flying-sheep commented 4 years ago

I created a readable plain text file, selected it as template, but still the else branch is hit here:

https://github.com/fhackenberger/ktikz/blob/207af3ea668eb8c4cafe46c29a3dfd0363cda679/common/tikzpreviewgenerator.cpp#L459-L468

If I output the mime list, I get just ("application/octet-stream"), while I also get

$ file --mime-type Dev/TeX/ktikz-context.pgs
Dev/TeX/ktikz-context.pgs: text/plain

I assume if the file itself has the text/plain mime already, its parents only contain application/octet-stream.