-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Viewer starts without Documents directory #6567
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.
Hi, please verify this behavior under
- User path requires admin credentials.
2 The path points to network resource
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.
As discussed with Aseel, a solution that automatically creates a Documents folder for the user is problematic and not needed.
What is needed is for the Viewer to not crash or behave badly.
Since the folder is controlled by settings, if it does not exist a log should simply not be written.
Same for recording: the folder is controlled by settings. If the folder does not exist, when the user presses Record then we should query the user for a location through the regular means (which should already exist).
common/os.cpp
Outdated
else if ( f == user_documents) | ||
{ | ||
std::string msg = "Failed to get Documents directory"; | ||
rs2::log(RS2_LOG_SEVERITY_INFO, msg.c_str()); |
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.
Not Error?
common/os.cpp
Outdated
@@ -287,6 +287,11 @@ Some auxillary functionalities might be affected. Please report this message if | |||
res = str; | |||
res += "\\"; | |||
} | |||
else if ( f == user_documents) | |||
{ | |||
std::string msg = "Failed to get Documents directory"; |
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.
Pls parse and print the value of HRESULT hr = SHGetKnownFolderPath(...
- there are additional failure cases as well
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.
Looks good, thanks.
Addresses #5707
Tracked on: DSO-13589