Disable post-install hooks for now
This commit is contained in:
parent
db068dfe06
commit
25309dcfb8
|
|
@ -177,7 +177,7 @@ class Profile(Script):
|
||||||
if hasattr(imported, '_prep_function'):
|
if hasattr(imported, '_prep_function'):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
"""
|
||||||
def has_post_install(self):
|
def has_post_install(self):
|
||||||
with open(self.path, 'r') as source:
|
with open(self.path, 'r') as source:
|
||||||
source_data = source.read()
|
source_data = source.read()
|
||||||
|
|
@ -193,6 +193,7 @@ class Profile(Script):
|
||||||
with self.load_instructions(namespace=f"{self.namespace}.py") as imported:
|
with self.load_instructions(namespace=f"{self.namespace}.py") as imported:
|
||||||
if hasattr(imported, '_post_install'):
|
if hasattr(imported, '_post_install'):
|
||||||
return True
|
return True
|
||||||
|
"""
|
||||||
|
|
||||||
def is_top_level_profile(self):
|
def is_top_level_profile(self):
|
||||||
with open(self.path, 'r') as source:
|
with open(self.path, 'r') as source:
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,13 @@ def _prep_function(*args, **kwargs):
|
||||||
else:
|
else:
|
||||||
print('Deprecated (??): xorg profile has no _prep_function() anymore')
|
print('Deprecated (??): xorg profile has no _prep_function() anymore')
|
||||||
|
|
||||||
|
"""
|
||||||
def _post_install(*args, **kwargs):
|
def _post_install(*args, **kwargs):
|
||||||
if "nvidia" in _gfx_driver_packages:
|
if "nvidia" in _gfx_driver_packages:
|
||||||
print("Plasma Wayland has known compatibility issues with the proprietary Nvidia driver")
|
print("Plasma Wayland has known compatibility issues with the proprietary Nvidia driver")
|
||||||
print("After booting, you can choose between Wayland and Xorg using the drop-down menu")
|
print("After booting, you can choose between Wayland and Xorg using the drop-down menu")
|
||||||
return True
|
return True
|
||||||
|
"""
|
||||||
|
|
||||||
# Ensures that this code only gets executed if executed
|
# Ensures that this code only gets executed if executed
|
||||||
# through importlib.util.spec_from_file_location("kde", "/somewhere/kde.py")
|
# through importlib.util.spec_from_file_location("kde", "/somewhere/kde.py")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue