Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/default_profiles
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
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')
-rw-r--r--archinstall/default_profiles/desktops/awesome.py6
-rw-r--r--archinstall/default_profiles/desktops/budgie.py4
-rw-r--r--archinstall/default_profiles/desktops/cinnamon.py4
-rw-r--r--archinstall/default_profiles/desktops/cutefish.py4
-rw-r--r--archinstall/default_profiles/desktops/deepin.py4
-rw-r--r--archinstall/default_profiles/desktops/enlightenment.py4
-rw-r--r--archinstall/default_profiles/desktops/gnome.py4
-rw-r--r--archinstall/default_profiles/desktops/hyperland.py4
-rw-r--r--archinstall/default_profiles/desktops/i3.py4
-rw-r--r--archinstall/default_profiles/desktops/kde.py4
-rw-r--r--archinstall/default_profiles/desktops/lxqt.py4
-rw-r--r--archinstall/default_profiles/desktops/mate.py4
-rw-r--r--archinstall/default_profiles/desktops/qtile.py4
-rw-r--r--archinstall/default_profiles/desktops/sway.py4
-rw-r--r--archinstall/default_profiles/desktops/xfce4.py4
-rw-r--r--archinstall/default_profiles/xorg.py6
16 files changed, 6 insertions, 62 deletions
diff --git a/archinstall/default_profiles/desktops/awesome.py b/archinstall/default_profiles/desktops/awesome.py
index 79e0eb71..3833ce71 100644
--- a/archinstall/default_profiles/desktops/awesome.py
+++ b/archinstall/default_profiles/desktops/awesome.py
@@ -1,4 +1,4 @@
-from typing import List, Optional, Any, TYPE_CHECKING
+from typing import List, Any, TYPE_CHECKING
from archinstall.default_profiles.profile import ProfileType
from archinstall.default_profiles.xorg import XorgProfile
@@ -28,10 +28,6 @@ class AwesomeProfile(XorgProfile):
'xsel',
]
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
-
def install(self, install_session: 'Installer'):
super().install(install_session)
diff --git a/archinstall/default_profiles/desktops/budgie.py b/archinstall/default_profiles/desktops/budgie.py
index 93be320f..68506d45 100644
--- a/archinstall/default_profiles/desktops/budgie.py
+++ b/archinstall/default_profiles/desktops/budgie.py
@@ -24,7 +24,3 @@ class BudgieProfile(XorgProfile):
@property
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Lightdm
-
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
diff --git a/archinstall/default_profiles/desktops/cinnamon.py b/archinstall/default_profiles/desktops/cinnamon.py
index 22fd0d9d..a819b4d1 100644
--- a/archinstall/default_profiles/desktops/cinnamon.py
+++ b/archinstall/default_profiles/desktops/cinnamon.py
@@ -25,7 +25,3 @@ class CinnamonProfile(XorgProfile):
@property
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Lightdm
-
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
diff --git a/archinstall/default_profiles/desktops/cutefish.py b/archinstall/default_profiles/desktops/cutefish.py
index 6f88c47a..c4202920 100644
--- a/archinstall/default_profiles/desktops/cutefish.py
+++ b/archinstall/default_profiles/desktops/cutefish.py
@@ -23,9 +23,5 @@ class CutefishProfile(XorgProfile):
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Sddm
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
-
def install(self, install_session: 'Installer'):
super().install(install_session)
diff --git a/archinstall/default_profiles/desktops/deepin.py b/archinstall/default_profiles/desktops/deepin.py
index 054c8fdf..e6a9f6b5 100644
--- a/archinstall/default_profiles/desktops/deepin.py
+++ b/archinstall/default_profiles/desktops/deepin.py
@@ -22,7 +22,3 @@ class DeepinProfile(XorgProfile):
@property
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Lightdm
-
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
diff --git a/archinstall/default_profiles/desktops/enlightenment.py b/archinstall/default_profiles/desktops/enlightenment.py
index 164f64fe..7dd7822a 100644
--- a/archinstall/default_profiles/desktops/enlightenment.py
+++ b/archinstall/default_profiles/desktops/enlightenment.py
@@ -21,7 +21,3 @@ class EnlighenmentProfile(XorgProfile):
@property
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Lightdm
-
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
diff --git a/archinstall/default_profiles/desktops/gnome.py b/archinstall/default_profiles/desktops/gnome.py
index 3cbd49bd..24ade437 100644
--- a/archinstall/default_profiles/desktops/gnome.py
+++ b/archinstall/default_profiles/desktops/gnome.py
@@ -21,7 +21,3 @@ class GnomeProfile(XorgProfile):
@property
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Gdm
-
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
diff --git a/archinstall/default_profiles/desktops/hyperland.py b/archinstall/default_profiles/desktops/hyperland.py
index e55dd7c4..58ee8cca 100644
--- a/archinstall/default_profiles/desktops/hyperland.py
+++ b/archinstall/default_profiles/desktops/hyperland.py
@@ -25,7 +25,3 @@ class HyperlandProfile(XorgProfile):
@property
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Sddm
-
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
diff --git a/archinstall/default_profiles/desktops/i3.py b/archinstall/default_profiles/desktops/i3.py
index 93c38906..9c2994de 100644
--- a/archinstall/default_profiles/desktops/i3.py
+++ b/archinstall/default_profiles/desktops/i3.py
@@ -27,7 +27,3 @@ class I3wmProfile(XorgProfile):
@property
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Lightdm
-
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
diff --git a/archinstall/default_profiles/desktops/kde.py b/archinstall/default_profiles/desktops/kde.py
index cd02e069..b65a9620 100644
--- a/archinstall/default_profiles/desktops/kde.py
+++ b/archinstall/default_profiles/desktops/kde.py
@@ -26,7 +26,3 @@ class KdeProfile(XorgProfile):
@property
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Sddm
-
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
diff --git a/archinstall/default_profiles/desktops/lxqt.py b/archinstall/default_profiles/desktops/lxqt.py
index 60bf47f2..5d75e08d 100644
--- a/archinstall/default_profiles/desktops/lxqt.py
+++ b/archinstall/default_profiles/desktops/lxqt.py
@@ -29,7 +29,3 @@ class LxqtProfile(XorgProfile):
@property
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Sddm
-
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
diff --git a/archinstall/default_profiles/desktops/mate.py b/archinstall/default_profiles/desktops/mate.py
index 0ddaaaab..d3c4a6e1 100644
--- a/archinstall/default_profiles/desktops/mate.py
+++ b/archinstall/default_profiles/desktops/mate.py
@@ -21,7 +21,3 @@ class MateProfile(XorgProfile):
@property
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Lightdm
-
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
diff --git a/archinstall/default_profiles/desktops/qtile.py b/archinstall/default_profiles/desktops/qtile.py
index 66c6fa1b..96e93b1d 100644
--- a/archinstall/default_profiles/desktops/qtile.py
+++ b/archinstall/default_profiles/desktops/qtile.py
@@ -21,7 +21,3 @@ class QtileProfile(XorgProfile):
@property
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Lightdm
-
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
diff --git a/archinstall/default_profiles/desktops/sway.py b/archinstall/default_profiles/desktops/sway.py
index 25d74a88..c757797d 100644
--- a/archinstall/default_profiles/desktops/sway.py
+++ b/archinstall/default_profiles/desktops/sway.py
@@ -73,9 +73,5 @@ class SwayProfile(XorgProfile):
def do_on_select(self):
self._ask_seat_access()
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
-
def install(self, install_session: 'Installer'):
super().install(install_session)
diff --git a/archinstall/default_profiles/desktops/xfce4.py b/archinstall/default_profiles/desktops/xfce4.py
index bd6c3038..a7f0a7e6 100644
--- a/archinstall/default_profiles/desktops/xfce4.py
+++ b/archinstall/default_profiles/desktops/xfce4.py
@@ -24,7 +24,3 @@ class Xfce4Profile(XorgProfile):
@property
def default_greeter_type(self) -> Optional[GreeterType]:
return GreeterType.Lightdm
-
- def preview_text(self) -> Optional[str]:
- text = str(_('Environment type: {}')).format(self.profile_type.value)
- return text + '\n' + self.packages_text()
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 [