Page History

Turn Off History

How to run Windows GUI jobs on the visible desktop

HTCondor is able to run GUI-based applications on the Windows operating system, so long as these applications do not block waiting for keyboard or mouse input (i.e. the GUI application must be able to run as a batch job). How this works is HTCondor dynamically creates a non-visible desktop for each slot on the execute node, and it will launch the job on this non-visible desktop. The result is the GUI job runs on the machine without windows popping up on the visible desktop, thus allowing a GUI job to effectively "run in the background" without disturbing the desktop user.

However, at times you may want HTCondor to run your GUI job on the visible desktop. For instance, perhaps you have a GUI job that appears to hang or otherwise fail - what could be happening is the job detected some problem and popped up an error window, but the only way to see this error window is to have the job run on the visible desktop. To accomplish this, as the system administrator you will need to 1) tell Windows to allow the HTCondor service to access the visible desktop if you are running on Windows Vista or above, and then 2) tell HTCondor to use the visible desktop.

The basic steps are

  1. Start the Interactive Services Detection service
  2. Enable Allow service to interact with desktop for the condor service
  3. set USE_VISIBLE_DESKTOP=True in your condor_config and restart the condor service

The first two steps are accomplished via the Windows Services Management Console.

[ note: If the Services option is missing, you could also type "start services.msc" from a command prompt ]

Thanks to Ben Burnett for this information which was copied from his original post on his Wiki -http://ben.versionzero.org/wiki/Condor_Enable_Visible_Desktop_on_Vista