Linux Daemon Error - cannot open display:0

Yes you are correct. It solved the immediate problem of get my service to run properly but has not yet solved the problem in the library that causes the problem.

Simon