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:28:18 +0530
committerDylan Taylor <dylan@dylanmtaylor.com>2021-04-08 09:51:11 -0400
commit130f5729a0939281e8bd2ccc22bfd6c1d3b35c43 (patch)
treecb3e044ad45c1db659d18622b53c0ffebe8a7132
parent210e53ca3e19920ce7350743dc92f0f648f764c7 (diff)
ask user for default session over asking if they want wayland
-rw-r--r--profiles/applications/kde.py2
-rw-r--r--profiles/kde.py14
2 files changed, 6 insertions, 10 deletions
diff --git a/profiles/applications/kde.py b/profiles/applications/kde.py
index 87a266b0..c0972d50 100644
--- a/profiles/applications/kde.py
+++ b/profiles/applications/kde.py
@@ -1,2 +1,2 @@
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
diff --git a/profiles/kde.py b/profiles/kde.py
index d1174923..89ff236f 100644
--- a/profiles/kde.py
+++ b/profiles/kde.py
@@ -1,6 +1,6 @@
# A desktop environment using "KDE".
-import archinstall, os
+import archinstall, os, shutil
# TODO: Remove hard dependency of bash (due to .bash_profile)
@@ -22,15 +22,11 @@ def _prep_function(*args, **kwargs):
def _post_install(*args, **kwargs):
if "nvidia" in _gfx_driver_packages:
- print("Plasma wayland is currently in a buggy state on Nvidia cards")
- choice = input("Kde plasma has a wayland support would you like to install the required binaries [Y/n] ").lower()
+ print("Plasma wayland is currently in an unusable state on Nvidia cards")
+ choice = input("Would you like plasma-wayland to be the default session [Y/n] ").lower()
if choice == "y":
- packages = "plasma-wayland-session"
- # if the package selection can be reduced go for it
- if "nvidia" in _gfx_driver_packages:
- packages = packages + " egl-wayland"
- installation.add_additional_packages(packages)
-
+ 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")
# 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