Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-06 18:59:05 +0530
committeradvaithm <advaith.madhukar@gmail.com>2021-04-06 18:59:05 +0530
commit29d939cfcab3a55cd2531ccdeb493e9c4d898560 (patch)
tree4188dde2a2815b9ebb7bf84225dfaa62dfe47c85
parent5057035f3ed9ad14630c99f90a9bd6ffe095704e (diff)
added egl-wayland and changed prompt
-rw-r--r--profiles/applications/kde.py5
-rw-r--r--profiles/kde.py8
2 files changed, 8 insertions, 5 deletions
diff --git a/profiles/applications/kde.py b/profiles/applications/kde.py
index c0972d50..fc42223b 100644
--- a/profiles/applications/kde.py
+++ b/profiles/applications/kde.py
@@ -1,2 +1,5 @@
import archinstall
-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
+packages = "plasma-meta kde-applications-meta sddm plasma-wayland-session"
+if "nvidia" in _gfx_driver_packages:
+ packages = packages + " egl-wayland"
+installation.add_additional_packages(packages) \ No newline at end of file
diff --git a/profiles/kde.py b/profiles/kde.py
index 09cdab13..04dcaaa4 100644
--- a/profiles/kde.py
+++ b/profiles/kde.py
@@ -1,6 +1,6 @@
# A desktop environement using "KDE".
-import archinstall, os, shutil
+import archinstall, os
# TODO: Remove hard dependency of bash (due to .bash_profile)
@@ -22,11 +22,11 @@ def _prep_function(*args, **kwargs):
def _post_install(*args, **kwargs):
if "nvidia" in _gfx_driver_packages:
- print("Plasma wayland is currently in an unusable state on Nvidia cards")
+ print("Plasma Wayland has known compatibility issues with the proprietary Nvidia driver")
choice = input("Would you like plasma-wayland to be the default session [Y/n] ").lower()
if choice == "y":
- shutil.move("/usr/share/xsessions/plasma.desktop","/usr/share/xsessions/plasmax11.desktop")
- shutil.move("/usr/share/wayland-sessions/plasmawayland.desktop","/usr/share/wayland-sessions/plasma.desktop")
+ installation.arch_chroot("mv /usr/share/xsessions/plasma.desktop /usr/share/xsessions/plasmax11.desktop")
+ installation.arch_chroot("mv /usr/share/wayland-sessions/plasmawayland.desktop /usr/share/wayland-sessions/plasma.desktop")
# Ensures that this code only gets executed if executed
# through importlib.util.spec_from_file_location("kde", "/somewhere/kde.py")
# or through conventional import kde