lavue-org / lavue

Lightweight Live Viewer
GNU General Public License v2.0
8 stars 3 forks source link

configuration-path option doesn't work #777

Closed yuelongyu closed 2 months ago

yuelongyu commented 2 months ago

When starting lavue with configuration-path option, the configuration in the file is not loaded.

lavue -m expert --configuration-path /tmp/LaVue.conf
yuelongyu commented 2 months ago

I figured out how it works, looks like it searches conf file from configuration-path/organization/LaVue.conf. So if the organization name is default, it's important to copy the whole DESY folder instead of the LaVue.conf itself.

jkotan commented 2 months ago

Hi @yuelongyu, Yes, lavue stores configuration in QT standard way i.e. QtSettings, where location of the configuration is stored below: <base configuration path> / <organization or domain> / <program name [: instance] >.conf . Maybe we should change configuration path to base configuration path, what do you think?

yuelongyu commented 2 months ago

hi @jkotan , I think an error message should be enough. When starting lavue with configuration-path, if there is no config file, it shows an error message.

jkotan commented 2 months ago

@yuelongyu , but configuration file may not exist when you what to create a new configuration file from the scratch