About the environment variable __CF_USER_TEXT_ENCODING
I am integrating Mac OSX 10.5.8 client in Active Directory.
The User-Accounts are maintained on an Active Directory and the User's home directory is maintained on a Windows file server.
However, because of this environment, the necessary folders and necessary files are not automatically made.
I need to implement a Login Script to copy some files for users when they login.
One of the files is a ~/.CFUserTextEncoding.
But, as I manually copy ~/.CFUserTextEncoding, the content of the file ~/.CFUserTextEncoding is not reflected in
the environment variable _CF_USER_TEXTENCODING.
When Users login for the first time, the content of the two files don’t correspond.
~/.CFUserTextEncoding = 1:14
_CF_USER_TEXTENCODING = 0x(UID hexadecimal number):0:00
I understand the next method for the solution.
1. open Terminal
2. input 'killall Finder' and Enter
3. reboot Terminal
4. The content of the two files will be the same.
~/.CFUserTextEncoding = 1:14
_CF_USER_TEXTENCODING = 0x(UID hexadecimal number):1:14
But, I can’t expect users to do this themselves.
So, I want to automate this solution using another way.
I want to include the system in the Login Script.
Does anyone have any ideas?
Thanks.
Mac OS X (10.5.8)