Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TB128] Cannot save settings #201

Open
nicolamori opened this issue Oct 3, 2024 · 7 comments
Open

[TB128] Cannot save settings #201

nicolamori opened this issue Oct 3, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@nicolamori
Copy link

Describe the bug
In Thunderbird 128 the preferences set in the Add-on Options page seems to be not correctly saved. All of the option and radio buttons are deselected, if I select something and then click on Save then I'm sent to the Windows tab and all the settings are vanished again. When I click on Save I get this error in the console:

JavaScript error: moz-extension://1c1d4986-3fb1-466c-b74e-456bccf57c78/options.js, line 1279: TypeError: account.folders is undefined

but I don't know if it's relevant.

To Reproduce
Go to the Add-on Settings page, set something and then save. You will be redirected to the Windows tab and no setting will be selected.

Expected behavior
After saving, all the settings should be properly stored and remembered.

Desktop (please complete the following information):

  • OS / distribution: ArchLinux
  • Architecture: 64 bit
  • Desktop type / Window Manager: Plasma
  • Thunderbird version and arch: TB 128.2.3esr 64-bit
  • Thunderbird package type: Arch repository
  • Run echo $XDG_SESSION_TYPE in a terminal and report the results: wayland (but I start TB with GDK_BACKEND=x11 thunderbird)
  • Add-on version: 0.9.10
  • App version: 0.9.10
  • Install type: pacman.
  • Used Qt library: default system repository
@nicolamori nicolamori added the bug Something isn't working label Oct 3, 2024
@Ximi1970
Copy link
Owner

Ximi1970 commented Oct 6, 2024

I tried to replicate your problem but I did not succeed. Looks like somehow the filter storage has been corrupted.
Maybe the filter conversion went wrong somehow when upgrading from 115 to 128.
The only thing you can try is the "Reset preferences button". This will wipe all settings from the storage for Systray-X and you have to setup all your preferences again.
Then restart TB and try again.

@nicolamori
Copy link
Author

Tried the reset procedure to no avail. It still behaves like before.

@nicolamori
Copy link
Author

I tried to remove the systray-x-kde Arch package and reinstall, but still it fails. How can I manually completely purge Systray-X? I have nothing related to it in my Thunderbird profile folder:

$ find .thunderbird/ -name systray*
$ find .thunderbird/ -name Systray*
$ find .thunderbird/ -name SysTray*
$ find .thunderbird/ -name Ximi*   
$

Also, what about the error message reported on the first post? I'm not a javascript programmer so I cannot understand much from it, except that it seems to be due to accounts being of wrong type (and thus not having a folders field).

@nicolamori
Copy link
Author

I tried to create a new profile and with that Systray-X works flawlessly. So there's definitely something screwed within my account, I'd need to understand how exactly to clean it up completely from any Systray-X setting (hoping that this will be sufficient...).

@Ximi1970
Copy link
Owner

Ximi1970 commented Oct 8, 2024

The accounts var is being filled with data from the Mail tab. It should display each account with its subfolders. If there is an account without any folders (but that should not be possible) the resulting folders key would be empty and cause the error.
Are all the accounts and their folders nicely displayed in that preferences tab?

If you install the plugin using a repository the addon is installed in the system files not in your own profile directory.
The files can be found here:

/usr/bin/SysTray-X
/usr/lib/mozilla/native-messaging-hosts/SysTray_X.json
/usr/lib//thunderbird/distribution/extensions/[email protected]

So removing the package should remove all these files.

The only things stored in your profile dir are the chosen settings. Pressing the reset button should clean all the settings of SysTray-X from the profile storage.

But if you are having problems with the imap directory structure, I hope not you triggered the TB128 imap bug. Your imap structure will be scrambled.
See Betterbird for restoring your structure. (And do not use TB128!)

https://www.betterbird.eu/ -> Read the red warning about "Betterbird 128.3.0esr-bb11 "preview" released on 30th September 2024"

@nicolamori
Copy link
Author

nicolamori commented Oct 9, 2024

The directory structure in the Systray-X configuration seems ok at first sight, but I noticed that each folder of my main mail account contains a screwed subfolder named ^ Add base folder:
Screenshot_241009_090302

This looks different from the TB128 bug described at your link, anyway I tried to repair the folders but it didn't help. I don't even know if this might be related to my problem or not. By the way, if I add a new folder and then a new subfolder they are correctly reflected in the Systray-X tree, but the screwed folder is also present as well.

About the reset button, I suspect it does not work as well. How can I manually remove all the settings from my profile storage?

@nicolamori
Copy link
Author

I tried to downgrade to TB115 to see if this would fix the problem but this is not allowed: the downgraded version refuses to work on a profile that was used by a more recent version. So I had to go back to TB128.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants