ask user for default session over asking if they want wayland
This commit is contained in:
parent
210e53ca3e
commit
130f5729a0
|
|
@ -1,2 +1,2 @@
|
||||||
import archinstall
|
import archinstall
|
||||||
installation.add_additional_packages("plasma-meta kde-applications-meta sddm") # We'll support plasma-desktop (minimal) later iirc sddm should be part of plasma-meta
|
installation.add_additional_packages("plasma-meta kde-applications-meta plasma-wayland-session sddm") # We'll support plasma-desktop (minimal) later iirc sddm should be part of plasma-meta
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# A desktop environment using "KDE".
|
# A desktop environment using "KDE".
|
||||||
|
|
||||||
import archinstall, os
|
import archinstall, os, shutil
|
||||||
|
|
||||||
# TODO: Remove hard dependency of bash (due to .bash_profile)
|
# TODO: Remove hard dependency of bash (due to .bash_profile)
|
||||||
|
|
||||||
|
|
@ -22,15 +22,11 @@ def _prep_function(*args, **kwargs):
|
||||||
|
|
||||||
def _post_install(*args, **kwargs):
|
def _post_install(*args, **kwargs):
|
||||||
if "nvidia" in _gfx_driver_packages:
|
if "nvidia" in _gfx_driver_packages:
|
||||||
print("Plasma wayland is currently in a buggy state on Nvidia cards")
|
print("Plasma wayland is currently in an unusable state on Nvidia cards")
|
||||||
choice = input("Kde plasma has a wayland support would you like to install the required binaries [Y/n] ").lower()
|
choice = input("Would you like plasma-wayland to be the default session [Y/n] ").lower()
|
||||||
if choice == "y":
|
if choice == "y":
|
||||||
packages = "plasma-wayland-session"
|
shutil.move("/usr/share/xsessions/plasma.desktop","/usr/share/xsessions/plasmax11.desktop")
|
||||||
# if the package selection can be reduced go for it
|
shutil.move("/usr/share/wayland-sessions/plasmawayland.desktop","/usr/share/wayland-sessions/plasma.desktop")
|
||||||
if "nvidia" in _gfx_driver_packages:
|
|
||||||
packages = packages + " egl-wayland"
|
|
||||||
installation.add_additional_packages(packages)
|
|
||||||
|
|
||||||
# Ensures that this code only gets executed if executed
|
# Ensures that this code only gets executed if executed
|
||||||
# through importlib.util.spec_from_file_location("kde", "/somewhere/kde.py")
|
# through importlib.util.spec_from_file_location("kde", "/somewhere/kde.py")
|
||||||
# or through conventional import kde
|
# or through conventional import kde
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue