Cleanup whitespace, use xdg-open.

Xdg-open is the free-desktop standard open mechanism which maps to the
appropriate gnome/kde/xfce/... tool. It should exist on basically any system.