Bug 492147

Summary: System tray icon shown during recording is blank
Product: [Applications] Spectacle Reporter: Marcus <marcus>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: arojas, cherkaba, itumaykin+kde, kde, varun.basavaraj.patil
Priority: NOR Keywords: regression, usability
Version: 24.08.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Video demonstrating what the icon looks like
256-status-media-recording-started.webp

Description Marcus 2024-08-24 22:23:02 UTC
Created attachment 172916 [details]
Video demonstrating what the icon looks like

SUMMARY


STEPS TO REPRODUCE
1. Open Spectacle
2. Click on Recording
3. Click on any of the recording region options

OBSERVED RESULT
Recording indicator is blank on the system tray, but it does exist because it adds a gap between icons.

EXPECTED RESULT
Recording indicator is a a visible red dot on the system tray.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.6-arch1-1 (64-bit)
Graphics Platform: Wayland


ADDITIONAL INFORMATION
Processors: 8 × AMD Ryzen 7 4700U with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Comment 1 Filip 2024-09-03 13:24:57 UTC
*** Bug 492589 has been marked as a duplicate of this bug. ***
Comment 2 Noah Davis 2024-10-24 22:50:40 UTC
*** Bug 495267 has been marked as a duplicate of this bug. ***
Comment 3 Noah Davis 2024-10-24 22:56:48 UTC
Unfortunately, I cannot reproduce this. The icons are bundled into the program's code, so there should be no way for the icons to be unavailable. Maybe you somehow don't have support for animated webp images?
Comment 4 Noah Davis 2024-10-24 22:58:19 UTC
Created attachment 175203 [details]
256-status-media-recording-started.webp

Can you view this animated webp image in gwenview?
Comment 5 Marcus 2024-10-24 23:29:31 UTC
(In reply to Noah Davis from comment #4)
> Created attachment 175203 [details]
> 256-status-media-recording-started.webp
> 
> Can you view this animated webp image in gwenview?

No.

It says "Loading ‘test.webp’ failed Gwenview cannot display documents of type image/webp."
Comment 6 Noah Davis 2024-10-25 00:05:59 UTC
(In reply to Marcus from comment #5)
> No.
> 
> It says "Loading ‘test.webp’ failed Gwenview cannot display documents of
> type image/webp."

Then you are missing something in your system. Do you have the following two packages installed?

- https://archlinux.org/packages/extra/x86_64/libwebp/
- https://archlinux.org/packages/extra/x86_64/qt6-imageformats/
Comment 7 Marcus 2024-10-25 02:12:59 UTC
(In reply to Noah Davis from comment #6)
> (In reply to Marcus from comment #5)
> > No.
> > 
> > It says "Loading ‘test.webp’ failed Gwenview cannot display documents of
> > type image/webp."
> 
> Then you are missing something in your system. Do you have the following two
> packages installed?
> 
> - https://archlinux.org/packages/extra/x86_64/libwebp/
> - https://archlinux.org/packages/extra/x86_64/qt6-imageformats/

I have libwebp installed, but not qt6-imageformats.
This is a bug in Arch Linux. The qt6-imageformats package should be a dependency of spectacle.
Comment 8 Noah Davis 2024-10-25 17:00:53 UTC
Antonio Rojas, do you know if there's a way to ensure distros always install qt-imageformats from the app developer side, maybe via CMake? I don't think there's a way to just require it with find_package() in CMake since the WebP support comes from a plugin that gets loaded.
Comment 9 Antonio Rojas 2024-10-25 17:16:20 UTC
(In reply to Noah Davis from comment #8)
> Antonio Rojas, do you know if there's a way to ensure distros always install
> qt-imageformats from the app developer side, maybe via CMake? I don't think
> there's a way to just require it with find_package() in CMake since the WebP
> support comes from a plugin that gets loaded.

There is a Qt6QWebpPluginConfig.cmake installed by qtimageformats, so you could use that.
Comment 10 Bug Janitor Service 2024-11-01 16:13:21 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/416
Comment 11 Noah Davis 2024-11-01 17:45:24 UTC
Git commit 8efeb1fcad7c112250e8545db710e737bf59f81f by Noah Davis.
Committed on 01/11/2024 at 16:40.
Pushed by ndavis into branch 'master'.

Require webp for recording system tray icon

M  +4    -0    CMakeLists.txt

https://invent.kde.org/graphics/spectacle/-/commit/8efeb1fcad7c112250e8545db710e737bf59f81f
Comment 12 Antonio Rojas 2024-11-06 07:23:47 UTC
*** Bug 495863 has been marked as a duplicate of this bug. ***