The default local_command_line handler has a fast return path for the
case that we handle the commandline by forwarding it to the primary
instance, but this doesn't account for the fact that we may want to
become a service.
Allow for this by making sure we don't take the fast path of the service
flag is set.
}
}
- if (application->priv->flags & G_APPLICATION_HANDLES_COMMAND_LINE)
+ if ((application->priv->flags & G_APPLICATION_HANDLES_COMMAND_LINE) &&
+ !(application->priv->flags & G_APPLICATION_IS_SERVICE))
return FALSE;
else