...
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled

This commit is contained in:
Your Name
2025-05-17 11:12:33 +12:00
parent 93e563948f
commit 985153377f
4 changed files with 37 additions and 27 deletions

View File

@ -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)
{

View File

@ -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