From df98abf47399c2fdb87cf20b09c1d82fe7c651a7 Mon Sep 17 00:00:00 2001 From: Christian Heimlich Date: Fri, 5 Jul 2024 21:31:32 -0400 Subject: [PATCH] TExec: Fix swap of .bat to .sh Was using sizeof() instead of size(). --- app/src/task/t-exec_linux.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/task/t-exec_linux.cpp b/app/src/task/t-exec_linux.cpp index d4fe9a6..21f173b 100644 --- a/app/src/task/t-exec_linux.cpp +++ b/app/src/task/t-exec_linux.cpp @@ -89,12 +89,11 @@ QString TExec::resolveExecutablePath() * of how the system would handle it. */ - // Exception: If a windows batch script is called for (shouldn't happen), see if there is a matching shell script - // as a last resort + // Exception: If a windows batch script is called for by this point (uncommon), see if there is a matching shell script QFileInfo execInfo(mExecutable); if(execInfo.suffix() == SHELL_EXT_WIN) { - execInfo.setFile(mExecutable.chopped(sizeof(SHELL_EXT_WIN)) + SHELL_EXT_LINUX); + execInfo.setFile(mExecutable.chopped(SHELL_EXT_WIN.size()) + SHELL_EXT_LINUX); emit eventOccurred(NAME, LOG_EVENT_FORCED_BASH); }