Bug 506317 - By default screencapture created with no extension
Summary: By default screencapture created with no extension
Status: REPORTED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 24.12.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-28 16:42 UTC by gudvinr+kde
Modified: 2025-09-04 07:24 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gudvinr+kde 2025-06-28 16:42:30 UTC
SUMMARY

When I run recording, it produces files with no extensions.
Turns out, default recording format is nothing (i.e. combobox with empty string).

Recording isn't failing and screencap is webm.
Thus, combobox default should just match default format.

STEPS TO REPRODUCE
1. Start spectacle
2. Start recording

OBSERVED RESULT
Recordings do not have any extension

EXPECTED RESULT
Recordings have extension of default format

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 John Veness 2025-07-03 10:11:26 UTC
Confirmed here too.

Operating System: openSUSE Tumbleweed 20250701
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.4-1-default (64-bit)
Graphics Platform: Wayland
Comment 2 Nate Graham 2025-08-18 19:14:34 UTC
> default recording format is nothing (i.e. combobox with empty string).

Do you see this if you click the "Defaults" button in the config window? What about if you remove ~/.config/spectaclerc and restart spectacle?
Comment 3 John Veness 2025-08-18 20:11:32 UTC
For me, doing either of those things (pressing Defaults in the config window, or removing spectaclerc) fixes the problem. My spectaclerc before doing that (i.e. from older versions of Plasma), which demonstrates the no extension problem was:

[Annotations]
ellipseStrokeColor=255,0,0

[General]
launchAction=DoNotTakeScreenshot

[GuiConfig]
captureMode=0
includeShadow=false

[ImageSave]
lastImageSaveAsLocation=file:///home/john/Pictures/Screenshots/Discover accessibility icon.png
lastImageSaveLocation=file:///home/john/Pictures/Screenshots/Discover accessibility icon.png
translatedScreenshotsFolder=Screenshots

[VideoSave]
preferredVideoFormat=0
translatedScreencastsFolder=Screencasts
Comment 4 Nate Graham 2025-08-19 17:14:05 UTC
In my config file, I have "videoContainerFormat=mp4" under the "[GuiConfig]" group.

For testing purposes, if you add that to your config file and re-open Spectacle, does that fix the issue?
Comment 5 John Veness 2025-08-20 20:25:05 UTC
Nope, that makes no difference.

I noticed that if I delete the preferredVideoFormat=0 line it works OK (puts a .webm extension on the filename).
Comment 6 Bug Janitor Service 2025-09-04 03:47:48 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 gudvinr+kde 2025-09-04 07:24:25 UTC
(In reply to Nate Graham from comment #2)
> Do you see this if you click the "Defaults" button in the config window?
> What about if you remove ~/.config/spectaclerc and restart spectacle?

Nope and nope. 

> preferredVideoFormat=0

Same for me. I am pretty sure what happens is someone at some point added check like "if (param == "") || (param == nullptr) { format = defaultFormat; }" and then there's something like "switch format { case webm:; case mp4:; case default:; }" and 0 isn't handled by anything.

BUT someone at some point also added writing "default" option to config file on save and default option for format was zero value of integer (which is 0) instead of "nothing".