4.6 Storing user profile settings¶
- 4.6 Storing user profile settings
- ~/.calculate/ini.env
- ~/.calculate/desktop.env
- ~/.calculate/server.env
- ~/.logout
~/.calculate/ini.env¶
This file is intended to store variables used by the ini()
function. Its format is samba
.
Example:
[main] var1 = test VAR 1Note:
- Any section name is accepted (though the default for it is
main
); - Any variable name is accepted.
~/.calculate/desktop.env¶
This file stores client options. Its format is samba
.
Example:
[rsync] files = <number_of_files_in_user_profile> exitcode = <rsync_exit_code_if_error> [main] status = success version = 2.1.11Sections:
rsync
is the Rsync-related section;main
is the main options section.
status
stands for status (error
,process
,success
are the possible values);version
stands for the client version.
~/.calculate/server.env¶
This file is used in transferring options to the server. Its format is plasma
.
Example: changing a user password on the server (with the unix
and plasma
services):
[command][passwd_samba] run=on unix_hash=<ssha_hash_of_new_unix_password> samba_lm_hash=<lm_hash_of_new_samba_password> samba_nt_hash=<nt_hash_of_new_samba_password> samba_nt_hash_old=<nt_hash_of_old_samba_password> status=process date=YYYY-mm-dd_HH:MM:SS
Creating an incremental archive on the server:
[command][pack_profile] run=on status=process date=YYYY-mm-dd_HH:MM:SS
action
is the command for creating the archive;status
stands for the command status (error
,process
,success
are the possible values).
~/.logout¶
Deprecated. This file stores the client status (thus assuring compatibility with old server and client versions). It contains one of the following : ERROR
, PROCESS
, or SUCCESS
.
Example:
ERROR
This is the ~/.logout
file contents if an error should occur.