util: let launchProcess work more like launchProcessXDG

this should fix #558

NOTE: this is a candidate for the stable branch