revision of gui copy tested under linux.
Signed-off-by: ulrich3110 <ulrich3110@gmail.com>