GUI: update func 'on_menu_filesave()', check problem with realpath.