Created
May 20, 2021 09:41
-
-
Save agail/53c549f878ed9409eef2b59ba1c09880 to your computer and use it in GitHub Desktop.
Customization of icaclient settings (All_Regions.ini)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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