This commit is contained in:
@ -66,7 +66,12 @@ namespace localpath {
|
||||
std::string agent(){
|
||||
return current_user_home() + "/.local/dropshell_agent";
|
||||
}
|
||||
std::string current_user_home(){
|
||||
std::string files_for_remote_agent()
|
||||
{
|
||||
return agent() + "/files_for_remote_agent";
|
||||
}
|
||||
std::string current_user_home()
|
||||
{
|
||||
char * homedir = std::getenv("HOME");
|
||||
if (homedir)
|
||||
{
|
||||
|
@ -12,7 +12,11 @@ namespace dropshell {
|
||||
// local user config directories
|
||||
|
||||
// ~/.config/dropshell/dropshell.json
|
||||
// ~/.local/dropshell_agent/bb64
|
||||
|
||||
// ~/.local/dropshell_agent
|
||||
// |-- bb64 (only used locally, as it's for the local machine's architecture!)
|
||||
// |-- files_for_remote_agent
|
||||
// |-- (other agent files, including _allservicesstatus.sh)
|
||||
|
||||
// server_definition_path
|
||||
// |-- <server_name>
|
||||
@ -56,6 +60,7 @@ namespace dropshell {
|
||||
std::string remote_versions(const std::string &server_name, const std::string &service_name);
|
||||
|
||||
std::string agent();
|
||||
std::string files_for_remote_agent();
|
||||
std::string current_user_home();
|
||||
} // namespace local
|
||||
|
||||
|
Reference in New Issue
Block a user