-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xorg server removal #5485
Xorg server removal #5485
Conversation
7ccb461
to
3888b31
Compare
Could you please use |
3888b31
to
1ff8525
Compare
Please reword like so:
|
1ff8525
to
01f49fc
Compare
Thanks! I really didn't want an email every time this commit got refreshed, cherry-picked, or forked. 😅 |
No problem, I didn't want to share your email publicly without your consent, so I used your GitHub username. Fixed now :D |
/build-image --boot.iso |
Images built based on commit 01f49fc:
Download the images from the bottom of the job status page. |
Is there a reason this isn't tagged for F40? |
When we are at it I suggest we mention also @halfline, as he helped me a lot with my PR & an important part of it was provided by him - run-in-new-session.py script, even though it might not be evident from the way the PR was structured:
|
01f49fc
to
c606672
Compare
c606672
to
7d07509
Compare
In order to fully support Wayland, we need to remove libxklavier and drop xrandr and xrdb. While I think that the xrandr change can be merged in Fedora -as it doesn't affect the live session and the Spins-, the change libxklavier removal would affect the spins. #5463 relies on GNOME Kiosk to configure the keyboard layouts, which won't be available in other environments. Until we find an API that works across DEs or we implement different backends, this PR can't be merged for Fedora. @M4rtinK could correct me if I'm wrong. I've been working on Anaconda literally one month part time, he knows way better than me how the different images work. |
Yes, the keyboard layout thing is an issue. Most of the compositors support being live reconfigured through locale1, GNOME is the only exception at the moment. |
Could we put all the the GNOME Kiosk/Mutter stuff into its own class and make the display.py module a "simple" class like I did in #5401? I would like to be able to rebase #5401 for shipping with CentOS Hyperscale and a few other things, and I expect other distributions using Anaconda (such as ROSA et al) would like to be able to easily plug in alternative compositors (such as KWin or Cage). |
Agreed, I think we can merge the xrandr change into Fedora, but I would like to do that to Rawhide, rather than piling more stuff on Fedora 40 by this point.
So with this change, we do cover the boot.iso/netinst images, as those always have GNOME Kiosk, but indeed the problem is with the spins. On the other hand I'm pretty sure we already can't change the keyboard in all the spins that switched to Wayland, but this would potentially also break all the other spins that still have Xorg & libXklavier still works. I'm not saying we can totally avoid breaking at least some of the spins eventually, but I think this definitely needs to be a process that starts with an announcement & most likely a Fedora Change as well, to make it possible to the various Spin stakeholders to react if they have the capacity to do something about it. Best options would be if at least the major spins adopted the localed keyboard API - IIRC KDE already does and possibly others ? |
599353f
to
854f26c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can tell, looks good to me. Thank you.
854f26c
to
528561f
Compare
/build-image --boot.iso |
Images built based on commit 528561f:
Download the images from the bottom of the job status page. |
528561f
to
c16a46a
Compare
/kickstart-test --skip-testtypes knownfailure,manual,skip-on-rhel,skip-on-rhel-10,gh576,gh640,gh804,gh1090,gh1104,gh1106,gh1105,gh1108,gh1109,gh1107,gh1110 |
1 similar comment
/kickstart-test --skip-testtypes knownfailure,manual,skip-on-rhel,skip-on-rhel-10,gh576,gh640,gh804,gh1090,gh1104,gh1106,gh1105,gh1108,gh1109,gh1107,gh1110 |
Hi, there are two RHEL issues which should be mentioned in these commits before merging: Adding blocker flag for this. |
c16a46a
to
3d4051a
Compare
@jkonecny12 I just added a "Resolves: RHEL-38399" tag to the right commit: 4788bb2 @M4rtinK would need to add a reference to RHEL-38407 in the RDP pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few minor notes otherwise a great job done here! :)
Just a note. Please do not forget dropping the last commit before merge. I would keep the blocked
label to make this visible.
pyanaconda/ui/gui/xkl_wrapper.py
Outdated
""" | ||
|
||
self._engine.lock_group(0) | ||
layouts = self._keyboard_manager.GetCompositorLayouts() | ||
if len(layouts) < 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check could be
if not layouts:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. :)
pyanaconda/ui/gui/xkl_wrapper.py
Outdated
|
||
self._rec.set_options(new_options) | ||
layouts = self._keyboard_manager.GetCompositorLayouts() | ||
if len(layouts) < 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. :)
scripts/makeupdates
Outdated
def generate_dbus_code(srcdir): | ||
os.system('gdbus-codegen ' | ||
'--interface-prefix org.fedoraproject.Anaconda.Modules. ' | ||
'--c-namespace An ' | ||
'--generate-c-code an-localization ' | ||
'--output-directory %s/widgets/src ' | ||
'%s/widgets/src/dbus/org.fedoraproject.Anaconda.Modules.Localization.xml' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this logic should be part of Makefile.am not makebumpver
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is in the (widgets) makefile: https://github.com/rhinstaller/anaconda/pull/5485/files#diff-1f27decebb07d587ad45222e1df48fbb14aa33b42ff0f314f3f4abe4b3f02c55R138
This instance is just for convenience when generating updates images. IIRC we do something similar for other cases where we need to compile something before stuffing it into the updates image ?
widgets/src/LayoutIndicator.c
Outdated
const gchar *layout, | ||
AnacondaLayoutIndicator *self) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
3d4051a
to
0ead06c
Compare
Thanks & will make sure the RDP PR also points to the right Jiras. :) |
a782596
to
c98f5af
Compare
/kickstart-test --testtype smoke |
/kickstart-test --skip-testtypes knownfailure,manual,skip-on-rhel,skip-on-rhel-10,gh576,gh640,gh804,gh1090,gh1104,gh1106,gh1105,gh1108,gh1109,gh1107,gh1110 |
Start GNOME Kiosk as a Wayland compositor and run Anaconda as a native Wayland client. This commit is a follow up on the work done by Neal Gompa [1], Martin Kolman and Ray Strode [2]. Credit goes to them for the code I copied and pasted. [1] rhinstaller#5401 [2] rhinstaller#5309 Co-authored-by: Neal Gompa <neal@gompa.dev> Co-authored-by: Martin Kolman <mkolman@redhat.com> Co-authored-by: Ray Strode <rstrode@redhat.com> Resolves: RHEL-38399
Resolves: RHEL-38399
c98f5af
to
27b097e
Compare
/kickstart-test --testtype smoke |
Drop the X.Org server dependency
Start GNOME Kiosk as a Wayland compositor and run Anaconda as a native
Wayland client.
This commit is a follow up on the work done by @Conan-Kudo [1] and
@M4rtinK [2]. Credit goes to them for the code I copied and pasted.
[1] #5401
[2] #5309
Please note that the last patch ("Drop the X.Org server dependency") is the only change intended in this PR.
I cherry picked my patches removing libxklavier and xrandr as they are required to support a Wayland session.
I'll rebase this PR once the mentioned dependencies are merged.