From my observation, it is not just opn but anything that involves user interactions. These commands will not have any effect when called from a service installed via node-windows but works perfectly fine when run in command line.
I tried the following so far:
In services, right click the installed service and choose property. Click on Logon tab and ensure Local System account is ticked and then tick Allow service to interact with desktop. Doesn't work.
In the same tab as above, switch to administrator account. Still doesn't work.
Does windows impose restrictions for services which I am not aware of?
From my observation, it is not just
opn
but anything that involves user interactions. These commands will not have any effect when called from a service installed via node-windows but works perfectly fine when run in command line.I tried the following so far:
Local System account
is ticked and then tickAllow service to interact with desktop
. Doesn't work.Does windows impose restrictions for services which I am not aware of?