When executing file without prompting, make sure it's a desktop file. BUG: 435560 (cherry picked from commit 085f9b7e)