We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a475347 commit 500c906Copy full SHA for 500c906
ImFileDialog.cpp
@@ -413,8 +413,11 @@ namespace ifd {
413
uid = geteuid();
414
pw = getpwuid(uid);
415
if (pw) {
416
+#ifdef __APPLE__
417
+ std::string homePath = "/Users/" + std::string(pw->pw_name);
418
+#else
419
std::string homePath = "/home/" + std::string(pw->pw_name);
-
420
+#endif
421
if (std::filesystem::exists(homePath, ec))
422
quickAccess->Children.push_back(new FileTreeNode(homePath));
423
if (std::filesystem::exists(homePath + "/Desktop", ec))
0 commit comments