From d567465ea17a2523b200fbf6213adaacfccd23da Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> Date: Thu, 22 Oct 2026 00:09:06 +0300 Subject: #6489 Mac viewer does not list any previously logged in users --- indra/llfilesystem/lldir.cpp | 2 ++ indra/llfilesystem/lldir_mac.cpp | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/indra/llfilesystem/lldir.cpp b/indra/llfilesystem/lldir.cpp index cfbf4361d1..cfbdb7be3b 100644 --- a/indra/llfilesystem/lldir.cpp +++ b/indra/llfilesystem/lldir.cpp @@ -1162,6 +1162,8 @@ const char* const LLDir::PORTABLE_USER_DATA_DIRNAME = "UserData"; // static bool LLDir::isPortableInstall(const std::string& install_root) { + // Todo: portable mac builds don't have a .portable marker file. + // Fix mac portable builds to include one. if (install_root.empty()) { return false; diff --git a/indra/llfilesystem/lldir_mac.cpp b/indra/llfilesystem/lldir_mac.cpp index 5c64beca78..da2289ceb1 100644 --- a/indra/llfilesystem/lldir_mac.cpp +++ b/indra/llfilesystem/lldir_mac.cpp @@ -163,9 +163,8 @@ LLDir_Mac::LLDir_Mac() // viewer is unaffected.if (!is_dmg && !is_translocated && !is_applications_install && !install_root.empty()) // macos doesn't have the .portable marker , but check it just in case. + // Todo: fix this, portable installs should have a marker file. bool is_portable = isPortableInstall(install_root); - // For a velopack build, assume that running nor from a dmg means 'portable'. - is_portable |= !is_dmg && !is_translocated && !is_applications_install && !install_root.empty(); if (is_portable) { @@ -213,6 +212,10 @@ LLDir_Mac::LLDir_Mac() mRunContextDescription = "Portable (extracted archive, " + install_root + ")"; } #endif // LL_VELOPACK + else if (!is_dmg && !is_translocated && !is_applications_install && !install_root.empty()) + { + mRunContextDescription = "Running from a non-standard folder (" + install_root + ")"; + } else if (!install_root.empty()) { // Bundle is present on local disk, intact, and not translocated -- cgit v1.3