From 7f7cb6b89b38f32beb411e112001e3230aa972ed Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 30 Sep 2020 11:52:28 +0000 Subject: Forgot to replace the xinitrc data after replacing lines. --- profiles/applications/awesome.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'profiles/applications') diff --git a/profiles/applications/awesome.py b/profiles/applications/awesome.py index 62d57d65..d81f6283 100644 --- a/profiles/applications/awesome.py +++ b/profiles/applications/awesome.py @@ -6,10 +6,9 @@ with open(f'{installation.mountpoint}/etc/X11/xinit/xinitrc', 'r') as xinitrc: xinitrc_data = xinitrc.read() for line in xinitrc_data.split('\n'): - print('twm &' in line, line) - if 'twm &' in line: xinitrc_data.replace(line, f"# {line}") - if 'xclock' in line: xinitrc_data.replace(line, f"# {line}") - if 'xterm' in line: xinitrc_data.replace(line, f"# {line}") + if 'twm &' in line: xinitrc_data = xinitrc_data.replace(line, f"# {line}") + if 'xclock' in line: xinitrc_data = xinitrc_data.replace(line, f"# {line}") + if 'xterm' in line: xinitrc_data = xinitrc_data.replace(line, f"# {line}") xinitrc_data += '\n' xinitrc_data += 'xscreensaver -no-splash &\n' -- cgit v1.2.3-70-g09d2