Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-06 18:59:05 +0530
committerDylan Taylor <dylan@dylanmtaylor.com>2021-04-08 09:51:11 -0400
commit56df79d647b8058bd7160238a418ef8606aef0b7 (patch)
treefbf698751fabd631b7fb9ea91290866784513f36 /profiles
parent130f5729a0939281e8bd2ccc22bfd6c1d3b35c43 (diff)
added egl-wayland and changed prompt
Diffstat (limited to 'profiles')
-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 89ff236f..7276f095 100644
--- a/profiles/kde.py
+++ b/profiles/kde.py
@@ -1,6 +1,6 @@
# A desktop environment 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