Sleep a second after creation of new desktop file

Sleep a second after creation of new desktop file to give GNOME Shell
a chance to register the desktop file.

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>