| Summary: | Grouping by Filename is behaving differently on MacOS than on Linux Mint | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | T Hauser <npc+kdebug> |
| Component: | Albums-ItemsGroup | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | caulier.gilles, metzpinguin |
| Priority: | NOR | ||
| Version First Reported In: | 9.0.0 | ||
| Target Milestone: | --- | ||
| Platform: | macOS (DMG) | ||
| OS: | macOS | ||
| Latest Commit: | https://invent.kde.org/graphics/digikam/-/commit/f3a5c941d6e9fc98cb4cc3a6a71744ae42dda99c | Version Fixed/Implemented In: | 9.1.0 |
| Sentry Crash Report: | |||
|
Description
T Hauser
2026-03-11 17:28:54 UTC
No, such filenames don't work under Linux either, because the filename is different (01.COVER != 02.ORIGINAL). We could only compare them using the so-called base name (PXL_20260228_152016807). This isn't a bug, but a feature request. Maik Would a video help? I just grouped exactly those files yesterdas on Linux. I think I have read somewhere that only the first part of the filename BEFOREjthe dot are grouped, this is why I thought its a bug. I tested it under Linux with the filenames and the current code also says it cannot work at the moment.
QString fname = it->name().left(it->name().lastIndexOf(QLatin1Char('.')));
Maik
Hi Maik, Perhaps the different behavior between Linux FS and macOS FS (as Windows FS) is the non case-sensitive FS ? Gilles Hi Gilles, No, case sensitivity is irrelevant here, since the filenames in this example are different. We're checking up to the last dot in the filename, meaning we're checking the complete filename. It's not a problem to check only the first dot in the filename and thus use the base filename. The only question is whether this would break the behavior for other users. Maik Git commit f3a5c941d6e9fc98cb4cc3a6a71744ae42dda99c by Maik Qualmann. Committed on 12/03/2026 at 20:34. Pushed by mqualmann into branch 'master'. use only the base filename to group by filename FIXED-IN: 9.1.0 M +1 -1 NEWS M +2 -2 core/app/items/utils/itemviewutilities.cpp https://invent.kde.org/graphics/digikam/-/commit/f3a5c941d6e9fc98cb4cc3a6a71744ae42dda99c |