Viewer starts without Documents directory - #6567
Conversation
ev-mp
left a comment
There was a problem hiding this comment.
Hi, please verify this behavior under
- User path requires admin credentials.
2 The path points to network resource
maloel
left a comment
There was a problem hiding this comment.
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).
| else if ( f == user_documents) | ||
| { | ||
| std::string msg = "Failed to get Documents directory"; | ||
| rs2::log(RS2_LOG_SEVERITY_INFO, msg.c_str()); |
| } | ||
| else if ( f == user_documents) | ||
| { | ||
| std::string msg = "Failed to get Documents directory"; |
There was a problem hiding this comment.
Pls parse and print the value of HRESULT hr = SHGetKnownFolderPath(... - there are additional failure cases as well
Addresses #5707
Tracked on: DSO-13589