Fix duplicate launch of desktop entry file in some cases.