Handle command line URIs correctly and fix bug lxde/lxqt#414.