Bug 1918940

Summary: fedora-welcome broken in current Rawhide: "JS ERROR: TypeError: Gtk.WindowType is undefined"
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 34CC: anaconda-maint-list, jonathan, kellin, mkolman, vanmeeuwen+fedora, vponcova, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: openqa
Fixed In Version: anaconda-34.20-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-30 07:40:48 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:

Description Adam Williamson 2021-01-21 18:12:35 UTC
In current Rawhide (Fedora-Rawhide-20210120.n.0), the welcome screen doesn't show when booting Workstation live. Trying to run it from a console shows the apparent problem:

[liveuser@localhost-live ~]$ /usr/share/anaconda/gnome/fedora-welcome
Gjs-Message: 13:07:40.019: JS WARNING: [/usr/share/anaconda/gnome/fedora-welcome 21]: Requiring Gdk but it has 3 versions available; use imports.gi.versions to pick one
Gjs-Message: 13:07:40.066: JS WARNING: [/usr/share/anaconda/gnome/fedora-welcome 25]: Requiring Gtk but it has 3 versions available; use imports.gi.versions to pick one
Gjs-Message: 13:07:40.498: JS WARNING: [/usr/share/anaconda/gnome/fedora-welcome 149]: Too many arguments to function Gtk.init: expected 0, got 2

(fedora-welcome:2890): Gjs-CRITICAL **: 13:07:41.860: JS ERROR: TypeError: Gtk.WindowType is undefined
_init@/usr/share/anaconda/gnome/fedora-welcome:58:49
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:82:27
_Base.prototype._construct@resource:///org/gnome/gjs/modules/script/_legacy.js:18:10
newClass@resource:///org/gnome/gjs/modules/script/_legacy.js:114:21
@/usr/share/anaconda/gnome/fedora-welcome:164:29
@/usr/share/anaconda/gnome/fedora-welcome:171:17


(fedora-welcome:2890): Gjs-CRITICAL **: 13:07:41.860: JS ERROR: TypeError: welcomeWindow is null
@/usr/share/anaconda/gnome/fedora-welcome:168:13
@/usr/share/anaconda/gnome/fedora-welcome:171:17

I guess something changed in gjs? Anyway, this is breaking the openQA tests so it's pretty important.

Comment 1 Adam Williamson 2021-01-21 18:31:22 UTC
Ah. Problem is it's trying to run against GTK+ 4 now.

https://github.com/rhinstaller/anaconda/pull/3110

Comment 3 Ben Cotton 2021-02-09 16:13:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.