-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Set home folder #11
Comments
I'm fine adding a flag on where to grab these settings from. But that's just a subset of what is in the global configuration file. The global configuration file is also used for setting up the Lets work backwards a little. Are you complaining because functionally, you don't believe the home directory should be set (although it's set in the processing running Go, so it doesn't change your current process at all)? Or are you actually experiencing a problem? Or is this simply that you really don't want files in your home directory (either the global file or the If you're experiencing a problem, I'd like to understand that so I can try to address that. What, exactly, is happening? Can you post logs? Can I do something to replicate it on my side? Thanks! |
The root "problem" (if you like) is that I didn't want to have configuration files all over the place. I have all my duplicacy repositories (and therefore settings files) on various PCs defined in a consistent
Being able to have everything in the same place, including the duplicacy-util home folder (along with the log subfolder, lock file, global and local configs, etc) would be ideal. In the
However, this does not seem to work for me as a way to override what duplicacy-util is using. I have a BAT file which looks like:
Although the global config does seem to come from the folder set in the HOME environment variable, it still seems to be looking for the config and other files in the default
In the above test I moved the working I guess this is by design, hence why I requested the ability to tell duplicacy-util where the home folder (along with all config files) should be. |
@mojimba Okay, I took a look at this, and I've enhanced capabilities in commit d5e4b88. Not allowing The commit adds a new By default, dupliacy-util stores all files in its storage directory, which is The storage directory is determined in a variety of ways:
This change is in mainline. To pick it up, you'd need to build yourself. Let me know if you need me to publish a release from that. Note that looking up the global configuration file was not clear from documentation. But if you specified the Let me know if you have any questions, concerns, or problems. Hope this was helpful. |
Great news! I've set up go on a VM and have built a binary - so I think I'm all set. Thanks! |
Even when specifying a global configuration from in a different location, the util still defaults the home folder to the user profile location (for logging and storage definition files).
I'm not familiar with Go, but if I'm reading this correctly, you're using go-homedir to read this, and I think there's an issue with a "feature" it has to override the home directory with an environment variable (set to "HOME" in Windows). No matter what I've tried so far, this doesn't seem to work...
Ideally if we can get a "-gf" parameter in duplicacy-util itself to set the global folder (bypassing the go-homedir function call), then any logging and storage configuration files could use that?
Thanks!
The text was updated successfully, but these errors were encountered: