Bug 2327897

Summary: [error/trace] when opening preferences of the gnome-shell-extension-caffeine extension
Product: [Fedora] Fedora EPEL Reporter: Leon Fauster <leonfauster>
Component: gnome-shell-extension-caffeineAssignee: Jeremy Newton <alexjnewt>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel9CC: alexjnewt
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gnome-shell-extension-caffeine-42.1-1.el9 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-04-03 00:42:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
hotfix none

Description Leon Fauster 2024-11-21 19:36:18 UTC
Description of problem:
On RHEL9.4 or RHEL9.5 when trying to open the prefs I get following trace:

<trace>

The settings of extension caffeine had an error:
```
TypeError: method Gtk.CssProvider.load_from_data: At least 2 arguments required, but only 1 passed
```

Stack trace:
```
_init@/usr/share/gnome-shell/extensions/caffeine/prefs.js:195:25
_init@/usr/share/gnome-shell/extensions/caffeine/prefs.js:393:31
buildPrefsWidget@/usr/share/gnome-shell/extensions/caffeine/prefs.js:410:12
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:219:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:128:33
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
```

</trace>


Version-Release number of selected component (if applicable):
$ rpm -q gnome-shell-extension-caffeine gnome-shell
gnome-shell-extension-caffeine-42-2.20230922.git6e71c3b.el9.noarch
gnome-shell-40.10-22.el9_5.x86_64

How reproducible:
Open the preds of the extension via gnome-extensions-app

Actual results:
The above error

Expected results:
User can edit the prefs

Comment 1 Leon Fauster 2024-11-26 01:37:17 UTC
Created attachment 2059786 [details]
hotfix

Comment 2 Jeremy Newton 2025-03-25 21:33:27 UTC
Ah sorry I missed this. I just made a build and verified it worked.

Comment 3 Fedora Update System 2025-03-25 21:35:15 UTC
FEDORA-EPEL-2025-a549a42f7d (gnome-shell-extension-caffeine-42.1-1.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-a549a42f7d

Comment 4 Fedora Update System 2025-03-26 01:34:43 UTC
FEDORA-EPEL-2025-a549a42f7d has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-a549a42f7d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-04-03 00:42:20 UTC
FEDORA-EPEL-2025-a549a42f7d (gnome-shell-extension-caffeine-42.1-1.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.