-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Place logdir under user's Documents
folder on Windows
#17480
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
Place logdir under user's Documents
folder on Windows
#17480
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me, thanks!
Sorry for not paying attention to this earlier... I don't think this is a good idea - I feel your alternative of |
It's right in front of the user's eyes in a folder that the user often uses, how can you claim it's "without the user's knowledge"?
This is a very strange statement. OneDrive may not be syncing a file because it's open and in use by another application. What is problematic about this? This is completely obvious behavior and it will also apply to a document that I have open and editing while it is syncing. The file that darktable writes to is no different from the one I work with. There is no need to scare us with this. |
You're committing them to uploading something to their cloud storage that maybe they preferred not to have there, and maybe they're not aware of this straight away.
We've had multiple bug reports of exported JPEGs missing metadata when the exported folder ( |
Just an idea - how about moving log file back to original path and instead placing a shortcut (perhaps by installer?) to that location into Documents folder? |
As I was not aware of this PR 😉, I recently started a topic in the pixls.us discussion group, since I haven't found the debug log anymore... I was asked to add my 2ct to this PR discussion, so I just copy my suggestions and thoughts here: So from my point of view, the |
I would like to emphasize from the very beginning that I carefully considered where to place the log files directory and compared different options. I believe that placing it under Documents is the most convenient for the user and will not create any problems. It's very strange that OneDrive's default settings were mentioned as an argument against. I didn't expect that. Even if the user does not change the default settings of OneDrive (and such users, as a rule, simply do not use it, otherwise they would adjust it to their needs), I do not see anything wrong:
Oh, and by the way, another product in my system, this time not related to image processing. The ShareX screenshot tool places all data related to its work in Documents\ShareX (screenshots, settings, logs, backups). |
Please don't get me wrong. I appreciate your contribution and your effort to change the folder location. And I have no doubt that you carefully considered your proposal. No need to justify yourself, if you have such feeling because of my feedback. Since I was a little puzzled concerning the new path (as I tried to describe in my comment) and I was asked to put my suggestion here, I did it. From my understanding, the documents folder simply has a different role / semantics. I would not expect an application (debug) log file there, as it is an output from the application itself, a kind of "application noise" and no work generated by the user. The latter I may well expect in such folder. My suggestion follows my experience and what Microsoft explains in their developer guides (see https://learn.microsoft.com/en-us/windows/win32/shell/csidl or https://learn.microsoft.com/en-us/dotnet/api/system.environment.specialfolder?view=net-8.0 as an example). There are a lot of applications, even developed by large companies, that do it their way, but not necessarily according to the recommendation,.. So for me anything is fine, I will stop commenting this PR, as I have no stakes at all. I just wanted to give some input. Do it like you want, as long as the user is able to find the output. Best regards. |
@TurboGit My proposal for the release notes:
This is a lengthy description, shorten it if you think it's better. Also, it would certainly be best if this information wasn't buried somewhere deep in the release notes, although I understand that this change is definitely not The Big Ones. :) |
Thanks! For now I append entries at the end of the corresponding section. We can edit later. |
We don't document the location of the application log in Windows anywhere in the user manual. This information is in the FAQ on darktable.org, where it has already been updated in a PR darktable-org/dtorg#259. So I'm removing the |
Rationale of this change is in #17141 (comment).
I copy the relevant text to the following paragraphs.
Existing problems:
The following is proposed as a solution:
This PR implements the proposed solution.
I was considering putting the logging directory one level up, ie in
%USERPROFILE%
instead of%USERPROFILE%\Documents
.However, I don't think it will be any better. Standard user profile folders (such as
Desktop
,Documents
,Pictures
etc) are directly accessible in File Explorer, while going to%USERPROFILE%
requires more clicks.Also, for example, Adobe creates a folder of the same name in Documents. DxO PhotoLab also places folder for log files there.
Regarding folder name capitalization. We already have default import session base directory as
$(PICTURES_FOLDER)/Darktable
. So the folder for log files is also namedDarktable
with capital first letter for consistency.