Skip to content

Commit 79c89c6

Browse files
committed
correct suffix for linux
1 parent cfd9033 commit 79c89c6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libs/openFrameworks/utils/ofFileUtils.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,11 @@ class ofFilePath {
452452
/// \returns the App name as native string
453453
static const auto getAppName(bool strip_debug = true) {
454454
auto name = ofFilePath::getCurrentExePathFS().filename().native();
455+
#if defined(TARGET_OSX)
455456
auto debug_suffix = std::filesystem::path("Debug").native();
457+
#else
458+
auto debug_suffix = std::filesystem::path("_debug").native();
459+
#endif
456460
auto dbsize = debug_suffix.size();
457461
if (strip_debug) {
458462
if (name.size() > dbsize && name.compare(name.size() -dbsize , dbsize, debug_suffix) == 0) {

0 commit comments

Comments
 (0)