gappinfo: Clear previously set error before calling portal
Otherwise, we might end up returning TRUE from g_app_info_launch_default_for_uri but with a set error parameter. This will lead to confusing results depending on how the caller checks for errors. Checking error != NULL indicats the call failed but checking the return value indicates that it succeeded.
Showing with 6 additions and 1 deletion