Bug 517441 - Grouping by Filename is behaving differently on MacOS than on Linux Mint
Summary: Grouping by Filename is behaving differently on MacOS than on Linux Mint
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-ItemsGroup (other bugs)
Version First Reported In: 9.0.0
Platform: macOS (DMG) macOS
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-11 17:28 UTC by T Hauser
Modified: 2026-03-12 20:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 9.1.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description T Hauser 2026-03-11 17:28:54 UTC
SUMMARY
I set my Pixel 9 Pro to save the RAW file along the JPG. When loading the files into Digikam to rate them, I want to only once rate the same files (JPG + RAW). I do this by grouping them by filename. This works fine on Linux, but fails on MacOS. I cannot add the files to the bug report, as they are too large. But the filenames are like this:
PXL_20260228_152016807.RAW-01.COVER.jpg
PXL_20260228_152016807.RAW-02.ORIGINAL.dng

As said it works fine in Linux

STEPS TO REPRODUCE
1. In Album View, select all files which the user want to group by filename
2. Right Click > Group > Group Selected Files by Filename

OBSERVED RESULT
Linux: works, the RAW and DNG files are grouped together
MacOS: no grouping takes place. 

EXPECTED RESULT
Linux: files are grouped together
MacOS: files are grouped together

SOFTWARE/OS VERSIONS
macOS: 26.3.1
KDE Frameworks Version: 6.20 (MacOS)
Qt Version: 6.10 (MacOS)

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2026-03-12 05:29:26 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
Comment 2 T Hauser 2026-03-12 05:56:00 UTC
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.
Comment 3 Maik Qualmann 2026-03-12 06:48:54 UTC
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
Comment 4 caulier.gilles 2026-03-12 07:25:58 UTC
Hi Maik,

Perhaps the different behavior  between Linux FS and macOS FS (as Windows FS) is the non case-sensitive FS ?

Gilles
Comment 5 Maik Qualmann 2026-03-12 08:32:14 UTC
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
Comment 6 Maik Qualmann 2026-03-12 20:35:39 UTC
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