[wing/wip/start-type: 1/2] service: set service type as interactive if set in the flags
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [wing/wip/start-type: 1/2] service: set service type as interactive if set in the flags
- Date: Mon, 24 Oct 2016 11:09:02 +0000 (UTC)
commit ddef8042bf31ba99a801030649bcdf5d84331bb8
Author: Ignacio Casal Quinteiro <ignacio casal nice-software com>
Date: Mon Oct 24 12:56:31 2016 +0200
service: set service type as interactive if set in the flags
wing/wingservice.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/wing/wingservice.c b/wing/wingservice.c
index 1b459e7..afbed23 100644
--- a/wing/wingservice.c
+++ b/wing/wingservice.c
@@ -272,7 +272,11 @@ wing_service_constructed (GObject *object)
wing_service_set_default (service);
priv->status.dwCurrentState = SERVICE_STOPPED;
- priv->status.dwServiceType = SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS;
+
+ priv->status.dwServiceType = SERVICE_WIN32_OWN_PROCESS;
+ if (priv->flags & WING_SERVICE_IS_INTERACTIVE)
+ priv->status.dwServiceType |= SERVICE_INTERACTIVE_PROCESS;
+
priv->status.dwControlsAccepted = service_flags (service);
/* service options */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]