From e4bc3ce9823899e28192e5355e45396e5e8941f0 Mon Sep 17 00:00:00 2001 From: Mooneer Salem Date: Thu, 22 Aug 2024 15:45:57 -0700 Subject: [PATCH] Only show filename and not any folders. --- src/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 549fe582..76ce106a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -206,10 +206,8 @@ bool MainApp::OnCmdLineParsed(wxCmdLineParser& parser) wxConfigBase::Set(pConfig); // On Linux/macOS, this replaces $HOME with "~" to shorten the title a bit. - wxFileName fn(configPath); - fn.ReplaceEnvVariable("HOME", "~"); - - customConfigFileName = fn.GetShortPath(); + wxFileName fn(configPath); + customConfigFileName = fn.GetFullName(); } pConfig->SetRecordDefaults();