Renaming several picture files with a date pattern is aberrant

Open
#188 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
desktop

Research direction

No source file or test is identified in the issue. Reproduce the multi-file rename in Pix on Mint 21.2 with %D{%Y-%m-%d__%H-%M-%S}%E, then trace the rename and date-pattern handling; done means producing names like 2016-03-17__10-48-01.jpg instead of the reported extra punctuation.

Written by the indexing model from the issue text.

Description

Distribution

Mint 21.2

Package version

3.0.2

Frequency

Always

Bug description

Hello. I've always renamed my pictures files with the pattern:
%D{%Y-%m-%d__%H-%M-%S}%E (— are 2 underscores)
with a result in the form of:
2016-03-17__10-48-01.jpg
Since Mint 21.2: "Pix, which was originally based on gThumb 3.2.8, was rebased on gThumb 3.12.2. ".
Now the resulting name of the files is in the form:
--——-2023-08-04--14.51.11-.jpg (--——- are 2 dashes, 2 underscores, 1 dash)
See attached picture:
Pix File Name Format Bug

Steps to reproduce

Try to rename several files with the pattern:
%D{%Y-%m-%d__%H-%M-%S}%E (— are 2 underscores)

Expected behavior

The resulted names should be in the form of:
2016-03-17__10-48-01.jpg (— are 2 underscores)
but they are in the form of:
--——-2023-08-04--14.51.11-.jpg (--——- are 2 dashes, 2 underscores, 1 dash)

Additional information

No response

Dominant language
C
Stars
270
Forks
47
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/pix

All issues in linuxmint/pix

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.