Description of problem: After I updated to mga6, I have the following issue with msec: the cron job launch by msec gives this result: /etc/cron.hourly/msec: Traceback (most recent call last): File "/usr/share/msec/msec.py", line 188, in <module> msec.commit(commit) File "/usr/share/msec/libmsec.py", line 726, in commit self.configfiles.write_files(really_commit) File "/usr/share/msec/libmsec.py", line 252, in write_files f.write() File "/usr/share/msec/libmsec.py", line 424, in write file = open(self.path, 'w') FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/config/kdm/kdmrc' run-parts: /etc/cron.hourly/msec exited with return code 1 How reproducible: Each time Steps to Reproduce: 1.Launch /etc/cron.hourly/msec FTR: grep -i kdm /usr/share/msec/plugins/msec.py KDMRC = '/usr/share/config/kdm/kdmrc' KDMRC_REGEXP = re.compile('(.*?)-nolisten tcp(.*)$') kdmrc = self.configfiles.get_config_file(KDMRC) str = kdmrc.get_shell_variable('ServerArgsLocal', 'X-\*-Core', '^\s*$') val_kdmrc = KDMRC_REGEXP.search(str) val_kdmrc = None if val_startx or val_xservers or val_kdmrc or val_gdmconf != 'false': if kdmrc.exists(): kdmrc.replace_line_matching('^(ServerArgsLocal=.*?)-nolisten tcp(.*)$', '@1@2', 0, 0, 'X-\*-Core', '^\s*$') if not val_startx or not val_xservers or not val_kdmrc or val_gdmconf != 'true' or not val_sddmconf: if not val_kdmrc: kdmrc.exists() and kdmrc.replace_line_matching('^(ServerArgsLocal=.*)$', '@1 -nolisten tcp', 'ServerArgsLocal=-nolisten tcp', 0, 'X-\*-Core', '^\s*$') kdmrc = self.configfiles.get_config_file(KDMRC) oldval_kdmrc = kdmrc.get_shell_variable('AllowShutdown', 'X-:\*-Core', '^\s*$') if kdmrc.exists(): if oldval_kdmrc != 'All': self.log.info(_('Allowing Shutdown/Reboot in KDM')) kdmrc.set_shell_variable('AllowShutdown', 'All', 'X-:\*-Core', '^\s*$') if kdmrc.exists(): if oldval_kdmrc != 'None': self.log.info(_('Forbidding Shutdown/Reboot in KDM')) kdmrc.set_shell_variable('AllowShutdown', 'None', 'X-:\*-Core', '^\s*$') ''' Allow display managers (kdm and gdm) to display list of local users.''' kdmrc = self.configfiles.get_config_file(KDMRC) oldval_kdmrc = kdmrc.get_shell_variable('ShowUsers', 'X-\*-Greeter', '^\s*$') if kdmrc.exists(): if oldval_kdmrc != 'NotHidden': self.log.info(_("Allowing list of users in {}").format('KDM')) kdmrc.set_shell_variable('ShowUsers', 'NotHidden', 'X-\*-Greeter', '^\s*$') if kdmrc.exists(): if oldval_kdmrc != 'Selected': self.log.info(_("Forbidding list of users in {}").format('KDM')) kdmrc.set_shell_variable('ShowUsers', 'Selected', 'X-\*-Greeter', '^\s*$')
Assignee: bugsquad => mageiatools
I have started to clean the code.
CC: (none) => yves.brungard_mageia
commit 290d4d1cf9413ce91e44000d7ccc858eab409da2 Author: Papoteur <papoteur@...> Date: Sat Sep 2 21:41:30 2017 +0200 Suppress managing kdm (mga#21648) --- Commit Link: http://gitweb.mageia.org/software/msec/commit/?id=290d4d1cf9413ce91e44000d7ccc858eab409da2
No more complaint, thus closing.
Resolution: (none) => FIXEDStatus: NEW => RESOLVED
$ grep -i kdm /usr/share/msec/plugins/msec.py $ so indeed not an issue anymore