Stop installing xorg packages for Wayland profiles#4348
Stop installing xorg packages for Wayland profiles#4348dylanmtaylor wants to merge 4 commits intoarchlinux:masterfrom
Conversation
|
Ah, I spotted a bug. Need to fix that. |
4540650 to
2da7280
Compare
|
I still need to test this, but it's probably not too far off from correct. |
|
I believe you will run into one issue is that you will need to hide def _find_available_profiles(self) -> list[Profile]:
"""
Search the profile path for profile definitions
"""
profiles_path = Path(__file__).parents[2] / 'default_profiles'
profiles = []
for file in profiles_path.glob('**/*.py'):
# ignore the abstract default_profiles classes
# and wayland standalone
if file.name in ('profile.py', 'wayland.py'):
continue |
2da7280 to
7edd317
Compare
Ah, nice callout. I implemented the code from this comment. |
7edd317 to
27fbd36
Compare
|
We can remove 'xorg-xinit', from awesome since it's in the base class now. |
27fbd36 to
6d41940
Compare
h8d13
left a comment
There was a problem hiding this comment.
Looks great, and a nice gain in download/install size + unnecessary attack surface
|
@dylanmtaylor instead of using inheritance for this, can we move this to a composition pattern instead as it will make refactoring easier in the future. Also the creating a wayland profile indicates that this is a standalone profile which it isn't. |
I already have handled it not being reported as a standalone pattern in this change as it currently gets excluded from profile selection but I'll rethink the approach. |
f3927ba to
99b592f
Compare
|
This block is now necessary for the base Xorg profile (no desktop) to install its own packages: |
|
This is tested (again) and still working after the refactor. |
6f41bad to
4504bb3
Compare
|
@svartkanin Is this closer to what you were thinking now? |


Wayland profiles no longer pull in xorg-server and xorg-xinit.
Adds an is_wayland property to Profile. Wayland profiles (GNOME, KDE Plasma, Cosmic, hyprland, sway, niri, river, labwc) extend Profile directly instead of XorgProfile. X11 profiles stay on XorgProfile.