cobbpg / hp2any

Haskell space profiling toolset
http://www.haskell.org/haskellwiki/Hp2any
14 stars 15 forks source link

Embed the manager.glade file and put it in a temporary file on start. #14

Open beerendlauwers opened 5 years ago

beerendlauwers commented 5 years ago

Unfortunately, the xmlNewWithRootAndDomain function really expects a FilePath to file, so we write the embedded glade file to a temporary file and delete it when the window is destroyed.

The deletion code is naive and ignores permission issues and other exceptions. In the event of trouble, we might want to update this to handle those.

Also includes the changes from https://github.com/cobbpg/hp2any/pull/13.