LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
PortableMode.cpp File Reference
#include "PortableMode.hpp"
#include <system_error>
#include <unistd.h>
#include <climits>
Include dependency graph for PortableMode.cpp:

Namespaces

namespace  util
 Utility components and helper types for the LogViewer application.
 
namespace  util::portable
 
namespace  util::portable::anonymous_namespace{PortableMode.cpp}
 

Functions

std::filesystem::path & util::portable::anonymous_namespace{PortableMode.cpp}::Override ()
 
std::filesystem::path util::portable::anonymous_namespace{PortableMode.cpp}::RealExecutableDir ()
 
std::filesystem::path util::portable::ExecutableDir ()
 Directory containing the running executable (empty if it cannot be found).
 
bool util::portable::IsPortable ()
 True when the marker file exists next to the executable.
 
std::filesystem::path util::portable::DataDir ()
 <executable dir>/data in portable mode, empty otherwise. Not created here.
 
void util::portable::OverrideExecutableDirForTesting (const std::filesystem::path &dir)
 Tests: pretend the executable lives in dir. Empty path restores the real one.