https://bugs.kde.org/show_bug.cgi?id=528608

            Bug ID: 528608
           Summary: File mtimes sometimes get changed when opening files
                    from an mtp device (phone) in an application
    Classification: I don't know
           Product: kde
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
When copying a set of files from an mtp device (phone) using an application
(tested: gthumb, qimgv), some files retain their original mtimes, others in the
same set being transferred have mtimes changed to the time of transfer. I don't
see a pattern to which mtimes get changed but it happens quite often, perhaps
1/2 of the files that were transferred. This does not happen doing a copy
within Dolphin. 

Tested with a Galaxy S25 phone running Android, and an Alcatel A406DL running
KaiOS.
Tested using gthumb to do the copying, also qimgv.

STEPS TO REPRODUCE
1) For the Alcatel, "USB Storage" must be enabled in Settings.
2) Connect phone to computer using USB. 
3) On the Samsung phone, in USB settings, select Transferring files/Android
Auto. Authenticate as needed.  
4) Open device in Dolphin, navigate to desired files (e.g. /DCIM)
5) Note the file mtimes as listed in Dolphin. They will be as expected, related
to the time of exposure.
6) Select several files.
7) Use Dolphin context menu to open the files in an application, for example
qimgv (the default image viewer on my system) or gthumb. 

OBSERVED RESULT

Inspect the mtimes in the application. In my experience I find that for some of
the files the mtime is unchanged from what it looked like in Dolphin (correct),
but about 1/2 the time the mtime is changed to the current time (incorrect).
It's not clear there is a reproducible pattern to which files get changed
mtimes, even repeating this procedure with the same files and application.

If you use the application to copy the files somewhere else (e.g. qimgv's
"Quick Copy" context menu item), some of the new copies will have the changed
mtimes as well.

So far I have not noticed this happening when copying files within Dolphin (not
using some other application).

EXPECTED RESULT
Original file mtimes would be unchanged. 

SOFTWARE/OS VERSIONS
Operating System:  MX-25.3_KDE_x64 Infinity Nov 9 2025 base: Debian GNU/Linux
13 (trixie)
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: tk: Qt v: N/A

ADDITIONAL INFORMATION
Note: The application will actually be looking at copies of the files in
something like:
 /home/<username>/.cache/kioexec/krun/XXXXX_X   (X represents an integer)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to