Bug 486995

Summary: Resulting image contains %Y%M%D_%H%m%S in its name instead of the actual date
Product: [Applications] Spectacle Reporter: Mircea Kitsune <sonichedgehog_hyperblast00>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: filip.kendes1, kde, sonichedgehog_hyperblast00
Priority: NOR    
Version: 24.02.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: filename format

Description Mircea Kitsune 2024-05-14 01:09:38 UTC
SUMMARY
Issue introduced in Plasma 6. When taking a screenshot with Spectacle, you'll be prompted to save it with the name "Screenshot_%Y%M%D_%H%m%S.png". Most likely some incorrect escaping and translation of the symbols occurs, causing things like %Y to not be converted to the actual year but displayed as is.

STEPS TO REPRODUCE
Open Spectacle to take a screenshot.

OBSERVED RESULT
When saving, the suggested file name contains the formula %Y%M%D_%H%m%S in it.

EXPECTED RESULT
That should be converted to numbers representing the current date and time.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.9.0-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Comment 1 Filip 2024-05-14 08:01:30 UTC
I can't reproduce the issue. can you go to "Spectacle -> Configure... -> Image Saving" and check the format in which the file is being saved. I uploaded SS how it looks for me
Comment 2 Filip 2024-05-14 08:01:48 UTC
Created attachment 169470 [details]
filename format
Comment 3 Filip 2024-05-14 08:32:19 UTC
Marked this as duplicate of https://bugs.kde.org/show_bug.cgi?id=484211
You can manually fix the issue for yourself so you don't need to wait for the fix in spectacle

*** This bug has been marked as a duplicate of bug 484211 ***