Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/default_profiles/xorg.py
diff options
context:
space:
mode:
authorHimadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com>2023-07-31 07:40:45 +0000
committerGitHub <noreply@github.com>2023-07-31 09:40:45 +0200
commitf8d269092033f49b9f9621580fa1862e0c3b6cdb (patch)
tree7d31fdc8650d49b6d90ca76cec0eaad6723b417d /archinstall/default_profiles/xorg.py
parentd878496a2fb9e3c7f48261f866cb285dfa987298 (diff)
move preview text method for profiles into xorg superclass, override when needed (#1918)
Co-authored-by: Anton Hvornum <anton@hvornum.se>
Diffstat (limited to 'archinstall/default_profiles/xorg.py')
-rw-r--r--archinstall/default_profiles/xorg.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/archinstall/default_profiles/xorg.py b/archinstall/default_profiles/xorg.py
index 13154818..c9abf4da 100644
--- a/archinstall/default_profiles/xorg.py
+++ b/archinstall/default_profiles/xorg.py
@@ -1,4 +1,4 @@
-from typing import Any, TYPE_CHECKING, List
+from typing import Any, Optional, TYPE_CHECKING, List
from archinstall.default_profiles.profile import Profile, ProfileType
@@ -20,6 +20,10 @@ class XorgProfile(Profile):
support_gfx_driver=True
)
+ def preview_text(self) -> Optional[str]:
+ text = str(_('Environment type: {}')).format(self.profile_type.value)
+ return text + '\n' + self.packages_text()
+
@property
def packages(self) -> List[str]:
return [