Summary: | Accounts do not persist on software restart | ||
---|---|---|---|
Product: | [Applications] Tokodon | Reporter: | kde |
Component: | general | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | carl, finex, josh |
Priority: | NOR | ||
Version: | 23.08.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/network/tokodon/-/commit/2b4e90ff2699164a717a98bc52292347317fc9b1 | Version Fixed In: | |
Sentry Crash Report: |
Description
kde
2023-08-27 03:27:39 UTC
You can confirm this is 23.08 right? I would check if the account information is saved on disk, which would be under /home/<your username>/.local/share/KDE/tokodon/tokodonstaterc. You should see some human readable text, including the instance url and the username. If that exists, I suspect that the password is not being saved in your system keychain correctly. If Tokodon can't read the password, it will throw you back on the login screen which isn't the best UX right now. I'm not sure what Cinnamon uses, do you have GNOME keychain or something similar? I'll comment on what I see on this box. If I do not log out of Tokodon it stays logged in between reboot's and shutdown's fine. The interesting thing I see here is if I log out the "tokodonstaterc" vanishes from .local/share/KDE/tokodon/ and of course then I have to provide the details get a new token again. Operating System: Fedora Linux 38 KDE Plasma Version: 5.27.7 KDE Frameworks Version: 5.110.0 Qt Version: 5.15.10 KDE Apps 23.08.0 Kernel Version: 6.5.2-301.fc38.x86_64 (64-bit) Graphics Platform: Wayland That's to be expected, and what software using KConfigXT does (which is a lot of KDE software). If there is no settings set to something non-default, it will remove the config file. You can see this happen with regular Tokodon settings (~/.config/tokodonrc) as well, but there's some state-related things in there still but not from us. Thanks for the info.. Can you see if you experience this issue still with 23.08.2? I'm restarting my Flatpak here constantly, and can't get it to log out without me explicitly doing so. I suspect that it's asking you to log in again because of an invalid token/other issue, which is something that will be clearer in the next release. (In reply to Joshua Goins from comment #5) > Can you see if you experience this issue still with 23.08.2? I'm restarting > my Flatpak here constantly, and can't get it to log out without me > explicitly doing so. I suspect that it's asking you to log in again because > of an invalid token/other issue, which is something that will be clearer in > the next release. I'm not sure who this question is for, but FYI it works the same here with 23.08.2 as it did with 23.08.0 details in comment2 Hi, I'm also experiencing this issue. I've reproduced on a AwesomeWM session. If I start kwalletmanager before starting Tokodon, then the account login is saved. Maybe Tokodon should instantiate the wallet manager if anything is found? (In reply to FiNeX from comment #7) > Hi, I'm also experiencing this issue. I've reproduced on a AwesomeWM > session. If I start kwalletmanager before starting Tokodon, then the account > login is saved. Maybe Tokodon should instantiate the wallet manager if > anything is found? Technically this is not our doing, it's the underlying library called QtKeychain (https://github.com/frankosterfeld/qtkeychain). I would think that having Tokodon starting a wallet manager is problematic, what application would start on something like AwesomeWM? It could a libsecret service, GNOME Keyring, KWallet, etc. I think a solution can be found though, and that would benefit everything that use QtKeychain :-) Git commit 2b4e90ff2699164a717a98bc52292347317fc9b1 by Joshua Goins. Committed on 13/01/2024 at 21:19. Pushed by redstrate into branch 'master'. Add initial setup flow where required This adds several new pages for "initial setup" in places where this is needed. In some cases, the environment does not have a password service so Tokodon refuses to continue in order to prevent logging in and losing your credentials. On Android, the notifications permission is prompted here too. In the ideal KDE Plasma desktop setup (or GNOME Desktop) there is no setup. Related: bug 477927 M +7 -0 src/CMakeLists.txt M +3 -0 src/config.kcfg A +59 -0 src/content/ui/InitialSetup/SetupNotifications.qml [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)] A +37 -0 src/content/ui/InitialSetup/SetupPassword.qml [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)] A +47 -0 src/content/ui/InitialSetup/SetupWelcome.qml [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)] M +8 -1 src/content/ui/Main.qml A +100 -0 src/utils/initialsetupflow.cpp [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)] A +26 -0 src/utils/initialsetupflow.h [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)] https://invent.kde.org/network/tokodon/-/commit/2b4e90ff2699164a717a98bc52292347317fc9b1 (In reply to Joshua Goins from comment #8) > (In reply to FiNeX from comment #7) > > Hi, I'm also experiencing this issue. I've reproduced on a AwesomeWM > > session. If I start kwalletmanager before starting Tokodon, then the account > > login is saved. Maybe Tokodon should instantiate the wallet manager if > > anything is found? > > Technically this is not our doing, it's the underlying library called > QtKeychain (https://github.com/frankosterfeld/qtkeychain). I would think > that having Tokodon starting a wallet manager is problematic, what > application would start on something like AwesomeWM? It could a libsecret > service, GNOME Keyring, KWallet, etc. I think a solution can be found > though, and that would benefit everything that use QtKeychain :-) I understand. Maybe there is a way to know which service call? For example when I start Krusader (on a AwesomeWM session) and KWallet is not yet active, it's executed by Krusader itself. > I understand. Maybe there is a way to know which service call? For example
> when I start Krusader (on a AwesomeWM session) and KWallet is not yet
> active, it's executed by Krusader itself.
I don't think there's a way to do this yet, but this has been a common enough need in applications I work on where I feel like we can add this upstream. In the next version (not 24.02) there's a clearer setup stage where if Tokodon doesn't detect a password service it will refuse to function, to prevent situations like this. If I can put a more specific name of the service it's attempting to contact (Kwallet, GNOME password, etc) then that would be even better :-)
|