Skip to content

Commit

Permalink
Enable desktop if custom config is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed Dec 1, 2024
1 parent 9d12b3b commit b017560
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion exegol/manager/ExegolManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def __prepareContainerConfig(cls):
if ParametersManager().envs is not None:
for env in ParametersManager().envs:
config.addRawEnv(env)
if UserConfig().desktop_default_enable ^ ParametersManager().desktop:
if (UserConfig().desktop_default_enable ^ ParametersManager().desktop) or ParametersManager().desktop_config != "":
config.enableDesktop(ParametersManager().desktop_config)
if ParametersManager().comment:
config.addComment(ParametersManager().comment)
Expand Down
2 changes: 2 additions & 0 deletions exegol/utils/DataFileUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def _create_config_file(self):
os.chown(self._file_path, user_uid, user_gid)
except PermissionError as e:
logger.critical(f"Unable to open the file '{self._file_path}' ({e}). Please fix your file permissions or run exegol with the correct rights.")
except OSError as e:
logger.critical(f"A critical error occurred while interacting with filesystem: [{type(e)}] {e}")

def _parse_config(self):
data: Dict = {}
Expand Down

0 comments on commit b017560

Please sign in to comment.