Running Commands before or after a Session
Symptom
You want to run shell commands before a specific session is started or after it has terminated.
Problem
You need hooks which will call your shell commands.
Solution
As of IGEL Universal Desktop Linux 5.06.100 there is a generic mechanism for calling shell commands before and after a session. It works with Citrix ICA, RDP and VNC Viewer sessions.
This feature is accessible only through the Registry.
Open Setup at System > Registry. Use either the Registry tree or the Search parameter ... function to locate the following Registry keys:
for VNCviewer:
sessions.vncviewer*.init_action
sessions.vncviewer*.final_action
for RDP:
sessions.winconnect*.init_action
sessions.winconnect*.final_action
for Citrix/ICA:
sessions.ica*.init_action
sessions.ica*.final_action
(where * is the related session number, e.g. 0,1,2,3,...)
The init_action
is executed before the session is started. The final_action
is executed after the session has been terminated. Enter shell commands or the path to a custom script or executable:
The Registry keys for newly created sessions only appear after a restart of Setup.
Your init_action
scripts or executables have to return before the session will start. Alternatively, background your command by adding '&'
to the end of the commandline.