How to continue running SWT application even after switching user account in Windows or Any other OS? - swt

Suppose If I have a User account "A" and "B" in Windows(or Any other OS). And I'm running a long running process through SWT Application in the user account "A". If I lock the user account "A" and switch to "B", I want my process to be continue running. Also the process should continue running if I just lock my computer and went away.
How can we achieve this ?

Related

How to unregister a service worker when the PWA has been trashed

This might sound like a dumb question, but here's the problem. I am developing a PWA for a client and everything works fine : the service worker gets installed, as well as the app on the desktop.
I know how to uninstall both the app and the service worker programmatically.
But, for instance on an old Samsung tablet running Android 4.4, the app icon can be dragged to the trash on the desktop (like any shortcut) and then the app is uninstalled, but the service worker is still active and running (I can see it in DevTools).
Question : how to get rid of service workers after a PWA has been trashed that way ?
My concern is that end users of the app might delete it that way, and still have a service worker active on their mobile...
Thanks in advance.
The process for a service worker will automatically stop running after a short period of idleness–somewhere between under a minute to maybe 5 minutes, depending on the browser and operating system.
If you have Chrome's DevTools open, then that will artificially keep the service worker process alive indefinitely, to aid in debugging. (It would be frustrating if you were trying to debug something related to the state of the service worker, and the service worker process stopped right in the middle.)
This only applies when you've got DevTools open, though, so you should have faith that it will stop on its own if you're not "looking" at it.

Stop restart loop in kiosk mode with crashing application

I have a Windows 10 LTSB 2016 machine set up in kiosk mode to run a single application. I followed the Powershell instructions at https://learn.microsoft.com/en-us/windows/configuration/kiosk-shelllauncher#configure-a-custom-shell-using-powershell to build the install script, it works well. In that script, I can set the behavior of the shell if the application crashes. I can restart the application, restart the PC, or shut down the PC.
In general, this is all good, but occasionally someone does something like edit a file that causes the application to instantly crash on starting. Because I have the script set to restart the application, this causes the shell to get stuck in a loop where the application is rapidly crashing and restarting. This fills my logs and is generally a poor UX for the end user.
I'd like to condition the behavior so the application only attempts to restart a limited number of times, then shuts down (or some other behavior). Is there any way to achieve this? Can the custom shell access a counter, or accept a return statement from the application (e.g. to differentiate between an intended application shutdown/restart vs an application crash)?

Remote machine thru powershell such as login user

I need to automate a machine at a specific time like this :
Power on thru WOL
Tell the machine to login as a specific user.
Open up a browser and go to an url
Stay open for 30min
Shutdown machine
I think i have all steps besides 2. Is it possible to tell a remote machine to login so the user in front of it can see it logs in ?
/donnib

Test Automation tool not running via Windows Task Scheduler

Here is a general description of the issue which I cannot solve:
We have a WindowsServer 2008 R2 system that is used to running the install of our product(using powershell script), and then the Powershell script calls the .exe of our UI test automation tool (Ranorex).
The install of the product works fine, but the UI automation portion only runs if some is physically logged in via remote desktop.
If the remote desktop session is closed (but the programs continue to run..so user is technically logged in), the UI automation portion will NOT run.
The options I selected on the General tab of the job are:
-Run only when the user is logged in;
-Run with highest privileges;
Any ideas on from anyone who has had this issue and got it to work would be extremly helpful.
Thanks,
Eric
UI operations are usually in suspended state when a user is disconnected from an RDP session. Use a tool like VNC or equivalent where you have access to the main console for these UI operations to remain active.

Can Citrix application able to access clients localhost

I have couple of questions related to working of citrix application. At first il explain the scenario...
Consider I have 2 application which is installed in Citrix server
APP "A" - Which is accessible to the clients through citrix connection(published)
APP "B" - Which is installed in Citrix server(not published) and will act as a mediator for citrix app ("A") and clients local machine
Here is the scenario,
In APP "A" we have link which will try to contact the clients local app and localhost through APP "B", means "B" will act as a mediator(for some validation and security purpose we are using this "B") for citrix application and clients local application. Means "A" will send request to "B" and "B" is the one responsible for contacting the clients local app, and in this case, if some thing goes wrong in "B", "B" has to show message box to the user.
Now my questions are:
As "B" is not published, Can user be able to see the APP "B"s message box???
If I want question 1 to done, wat ive to do?
If I refer "http://localhost //something" in APP "B", which IIS it will point to, "Clients local machines localhost" or "Citrix servers localhost".??
Can user be able to access any of the other application other than APP "A"??
Any help is appreciated, Thanks in Advance
Madhu M
Since the application is published seamlessly, the user will not see any windows from other applications running in that terminal session. This is true unless the published application explicitly calls another app. For example, if I'm in IE and click a mailto link and Outlook is installed, it would launch and appear seamlessly to the user.
Does app "B" have a GUI or if it's just a process? If it's just a process, I would create a batch file that launches it in the background for each user.
Citrix server's localhost
Not exactly sure what your asking here.