From f3ba0d810aecc3d0c5ef6ef4948cbc4ee38d0e6e Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Thu, 26 Jun 2025 18:03:06 +0200 Subject: [PATCH] check if DHFS_BUNDLE_PATH is set --- launcher/gui/src/LauncherAppMainFrame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/launcher/gui/src/LauncherAppMainFrame.cpp b/launcher/gui/src/LauncherAppMainFrame.cpp index 8ed55117..89bce8ae 100644 --- a/launcher/gui/src/LauncherAppMainFrame.cpp +++ b/launcher/gui/src/LauncherAppMainFrame.cpp @@ -79,6 +79,8 @@ void LauncherAppMainFrame::OnStartStopButtonClick(wxCommandEvent& event) { options.xmx = "512m"; options.mount_path = wxFileConfig::Get()->Read(kMountPointSettingsKey); options.data_path = wxFileConfig::Get()->Read(kDataDirSettingsKey); + if (wxGetenv("DHFS_BUNDLE_PATH") == NULL) + throw Exception("DHFS_BUNDLE_PATH environment variable is not set"); std::string bundlePath = wxGetenv("DHFS_BUNDLE_PATH"); options.jar_path = bundlePath + "/app/Server/quarkus-run.jar"; options.webui_path = bundlePath + "/app/Webui";