Skip to content

Instantly share code, notes, and snippets.

@agail
Created May 20, 2021 09:41
Show Gist options
  • Save agail/53c549f878ed9409eef2b59ba1c09880 to your computer and use it in GitHub Desktop.
Save agail/53c549f878ed9409eef2b59ba1c09880 to your computer and use it in GitHub Desktop.
Customization of icaclient settings (All_Regions.ini)
#!/bin/bash
#
# version: 0.1 (Initial script)
#
# v0.1 - Enable ALT+TAB on remote session - https://support.citrix.com/article/CTX232298
_allregions_ini=/etc/icaclient/config/All_Regions.ini
f_check_ini () {
if [ ! -f ${_allregions_ini} ]; then
echo -e "\n \e[91mUnable to locate ${_allregions_ini}, quiting ...\e[m\n"
exit 1
fi
}
f_CTX232298 () {
_res=$(sed -i 's/^TransparentKey.*/&remote/g' ${_allregions_ini} 2>/dev/null; echo $?)
if [ ! ${_res} -eq 0 ]; then
echo -e "\n\e[91m Failed to update ${_allregions_ini}\e[m\n Issue:\e[94m sudo $0\e[m\n"
fi
}
f_check_ini
f_CTX232298
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment