Add .desktop extension if necessary.