Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-4949

agl-demo-control-panel crashes if started without a configuration file

XMLWordPrintable

      With latest agl-demo-control-panel, I discovered that it dies with an exception on start if there is no configuration file present:

      root@qemux86-64:/usr/libexec/agl-demo-control-panel# python3 main.py
      QStandardPaths: runtime directory '/run/user/200' is not owned by UID 0, but a directory permissions 0700 owned by UID 200 GID 200
      Traceback (most recent call last):
        File "/usr/libexec/agl-demo-control-panel/main.py", line 175, in <module>
          window = MainWindow()
        File "/usr/libexec/agl-demo-control-panel/main.py", line 53, in __init__
          self.setupUi(self)
        File "<string>", line 350, in setupUi
        File "/usr/libexec/agl-demo-control-panel/Widgets/settings.py", line 124, in __init__
          self.set_settings(default_config_name)
        File "/usr/libexec/agl-demo-control-panel/Widgets/settings.py", line 285, in set_settings
          new_config = config.select_config(config_name)
        File "/usr/libexec/agl-demo-control-panel/extras/config.py", line 108, in select_config
          raise ValueError(
      ValueError: Config section user-session not found in config.ini
      

      I have worked around this by adding installation of the .ini file from the source tree to the build, but ideally it should not crash in this case, either exiting with an error message or using some canned default configuration values would be preferable.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            suchinton2001 Suchinton Chakravarty
            scottm Scott Murray
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: