Preferences screen opens at every start
Version: 1.16.0
Every time the application opens, the preferences screen shows. This happens even after the first start and with a running and properly configured mopidy instance.
Analysis
If Argos has the right default value for URL and the user doesn't edit any other setting, then nothing is written to the dconf database.
Possible fix: To avoid triggering the welcome dialog on every starts, one should save the default settings to the dconf database on application exit if no settings found in database.
Thanks @CajuM for reporting.
I'll need more informations:
-
What is the OS of Argos host? What distribution in case of Linux? Is it using X or Wayland?
-
How did you install Argos (DEB package, Flatpak, other) ?
-
Is the "preferences screen" you're refering too, the dialog box shown in the following screenshot (let's call it the "preferences dialog") or the dialog box shown in the second screenshot (let's call it the "welcome dialog")? I am asking because there's no automatic mechanism in the code to popup the former but there's one for the latter...
The OS is NixOS 25.05 with Wayland. Oddly enough, both appear. In the proper order, as if the application was starting from scratch.
I've reset the dconf keys under /io/github/orontee/Argos/ and removed .cache/argos and .config/argos. The behavior is the same.
(...) as if the application was starting from scratch.
No, when the application starts from scratch the preferences dialog isn't shown.
Since there's no mechanism to display the preferences dialog in the source code, I suspect the problem comes from the Wayland compositor and something in the environment.
Maybe the configuration isn't serialized (though it won't explain that the preferences dialog is shown)...
@CajuM Can you post the output of dconf dump /io/github/orontee/Argos/ :
- When the application is running and after everything has been configured
- After the application has been closed
- When the application is restarted and both dialogs are shown
Note that my knowledge of NixOs is very limited... Do you use something called "Home Manager"? Are you a power user?
While running:
[/] window-position=[26, 23] window-size=[805, 362]
Here:
↳ dconf dump /io/github/orontee/Argos/
[/]
index-mopidy-local-albums=true
information-service=true
mopidy-base-url='http://192.168.1.24'
prefer-dark-theme=true
window-position=[26, 23]
window-size=[908, 590]
After close: same When both dialogs are show: same
Too bad.
Apparently nothing gets written in dconf... It seems like Argos does not automatically save your settings when you close the preferences dialog. OK, so everything works fine if you type something in the URL input box. I didn't have to as the default URL worked just fine.
Ah, ah.
Thank you, looks like it's a true bug, a corner case not present here!
Is the first image from an unreleased version?
No.
@CajuM Sorry I just realized I edited your last comment instead of replying...
It's bad practice to edit GitHub message history... maybe except the last one if it's yours. Otherwise things get confusing.
Yes it's a mistake. I used to edit the last one if mine and the first one as a summary of the discussion.
yeah, it's tough to coordinate... do you have a Matrix channel or something?
yeah, it's tough to coordinate... do you have a Matrix channel or something?
No. Not sure it would help. Flathub reports <30 download the day of new releases; Not sure there's more users of the DEB package. Argos is a niche project.
Whatever I am maintaining (my children and I rely on Argos to listen to music at home, no alternative), and I really appreciate your feedback.
yeah, it's tough to coordinate... do you have a Matrix channel or something?
No. Not sure it would help. Flathub reports <30 download the day of new releases; Not sure there's more users of the DEB package. Argos is a niche project.
Whatever I am maintaining (my children and I rely on Argos to listen to music at home, no alternative), and I really appreciate your feedback.
So, ugh, Huawei has been developing their phone OS and one of its main features is that it can transfer state between devices. Mopidy is so far the latest and greatest music daemon with clients on Android, Web and GNOME. Your project has a future in this hyper-converged world. I am not using Argos as of yet as my main music client, but I expect to in the future.