addwater
addwater copied to clipboard
[BUG] First install fails after app launch
Describe the bug The first time you try and apply the theme (either install or uninstall), the process will silently fail in the background and no notification will appear. Subsequent apply's do work and changing the target profile avoids this bug.
To Reproduce Steps to reproduce the behavior:
- Open the app
- Toggle Enable Theme on or off to show the Confirmation bar
- Click Apply
- Confirmation bar goes away but nothing else happens. The theme has not been installed/uninstalled and there is no notification of any error.
Example https://github.com/user-attachments/assets/77d4bc9a-f39a-49e6-9520-d45b46763109
Additional Details Running Add Water through terminal shows this error when this bug occurs:
[INFO] addwater.backend — 20:45 || beginning installation...
Traceback (most recent call last):
File "/app/share/addwater/addwater/page.py", line 235, in <lambda>
apply_action.connect("activate", lambda *blah: self.on_apply_action())
~~~~~~~~~~~~~~~~~~~~^^
File "/app/share/addwater/addwater/page.py", line 134, in on_apply_action
install_status = self.backend.begin_install(
self.profile_combobox.selected_profile, True
)
File "/app/share/addwater/addwater/backend.py", line 83, in begin_install
profile_path = join(app_path, profile_id)
File "<frozen posixpath>", line 90, in join
File "<frozen genericpath>", line 188, in _check_arg_types
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'
This is now fixed in the 1.3 update which should be released on Flathub today or tomorrow.