when taking screenshot by Spectacle it is saved with PNG extension, while the actual format is HEIC.
Spectacle 6.5.3 \ QT 6.10 \ Arch Linux
Some web results said it was fixed in 2018, but it isn’t.
reproduce:
$ spectacle -nbfo screenshot.png $ file screenshot.png screenshot.png: ISO Media, HEIF Image HEVC Main or Main Still Picture Profile
I’ve updated my system several times in the past year, and this bug still exists.
It causes several problems (programs crash, image viewers can’t show it, user must do extra step) is most of the other programs rely on the extension, and fail opening it. For example, “Capture2text” → uses Pillow → ImageGrab → which uses Spectacle → and crashes due to this mismatch.
This works fine on Fedora (Qt 6.10.0, Plasma 6.5.2), so it is at least not generally broken.
$ spectacle -nbfo screenshot.png
$ file screenshot.png
screenshot.png: PNG image data, 1920 x 1080, 8-bit/color RGBA, non-interlaced
The default format is set to JPG for me.
i would then try your arch install with a new user and if the issue persists file a bug report at bugs.kde.org under the plasma 6.5.3, spectacle product.
does the same thing happen when using the GUI or is this just a command like issue?
if the new user works as expecte, then you might try deleting your .cache folder and then changing the spectacle default away from PNG to some third format and see what the result is after a relog.
just add the line then, or change the default from the GUI and it should add the line for you.
if this still does not work you have bigger issues, but it looks like you rc file just got corrupted somehow and that line was deleted.
as a test you could rename your rc file and relog, and a new one should get created with all the defaults populated… if this line still does not show , then that is an issues with your distro.