Need sudo -E for xdg-open to use proper application.