-
Bug
-
Resolution: Fixed
-
Minor
-
master
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.