[Tokodon] [Bug 473787] Accounts do not persist on software restart

2024-01-15 Thread Joshua Goins
https://bugs.kde.org/show_bug.cgi?id=473787

--- Comment #11 from Joshua Goins  ---
> 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 :-)

-- 
You are receiving this mail because:
You are watching all bug changes.

[Tokodon] [Bug 473787] Accounts do not persist on software restart

2024-01-15 Thread FiNeX
https://bugs.kde.org/show_bug.cgi?id=473787

--- Comment #10 from FiNeX  ---
(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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Tokodon] [Bug 473787] Accounts do not persist on software restart

2024-01-13 Thread Joshua Goins
https://bugs.kde.org/show_bug.cgi?id=473787

Joshua Goins  changed:

   What|Removed |Added

 Status|CONFIRMED   |RESOLVED
  Latest Commit||https://invent.kde.org/netw
   ||ork/tokodon/-/commit/2b4e90
   ||ff2699164a717a98bc522923473
   ||17fc9b1
 Resolution|--- |FIXED

--- Comment #9 from Joshua Goins  ---
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-0src/CMakeLists.txt
M  +3-0src/config.kcfg
A  +59   -0src/content/ui/InitialSetup/SetupNotifications.qml [License:
GPL(3+eV) GPL(v3.0) GPL(v2.0)]
A  +37   -0src/content/ui/InitialSetup/SetupPassword.qml [License:
GPL(3+eV) GPL(v3.0) GPL(v2.0)]
A  +47   -0src/content/ui/InitialSetup/SetupWelcome.qml [License:
GPL(3+eV) GPL(v3.0) GPL(v2.0)]
M  +8-1src/content/ui/Main.qml
A  +100  -0src/utils/initialsetupflow.cpp [License: GPL(3+eV) GPL(v3.0)
GPL(v2.0)]
A  +26   -0src/utils/initialsetupflow.h [License: GPL(3+eV) GPL(v3.0)
GPL(v2.0)]

https://invent.kde.org/network/tokodon/-/commit/2b4e90ff2699164a717a98bc52292347317fc9b1

-- 
You are receiving this mail because:
You are watching all bug changes.

[Tokodon] [Bug 473787] Accounts do not persist on software restart

2024-01-09 Thread Joshua Goins
https://bugs.kde.org/show_bug.cgi?id=473787

--- Comment #8 from Joshua Goins  ---
(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 :-)

-- 
You are receiving this mail because:
You are watching all bug changes.

[Tokodon] [Bug 473787] Accounts do not persist on software restart

2024-01-08 Thread FiNeX
https://bugs.kde.org/show_bug.cgi?id=473787

FiNeX  changed:

   What|Removed |Added

 CC||fi...@finex.org

--- Comment #7 from FiNeX  ---
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?

-- 
You are receiving this mail because:
You are watching all bug changes.

[Tokodon] [Bug 473787] Accounts do not persist on software restart

2023-11-29 Thread Colin J Thomson
https://bugs.kde.org/show_bug.cgi?id=473787

Colin J Thomson  changed:

   What|Removed |Added

 CC|colin.thom...@g6avk.co.uk   |

-- 
You are receiving this mail because:
You are watching all bug changes.

[Tokodon] [Bug 473787] Accounts do not persist on software restart

2023-11-15 Thread Joshua Goins
https://bugs.kde.org/show_bug.cgi?id=473787

Joshua Goins  changed:

   What|Removed |Added

 Status|NEEDSINFO   |CONFIRMED
 Ever confirmed|0   |1
 Resolution|WAITINGFORINFO  |---

-- 
You are receiving this mail because:
You are watching all bug changes.

[Tokodon] [Bug 473787] Accounts do not persist on software restart

2023-11-02 Thread Colin J Thomson
https://bugs.kde.org/show_bug.cgi?id=473787

--- Comment #6 from Colin J Thomson  ---
(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

-- 
You are receiving this mail because:
You are watching all bug changes.

[Tokodon] [Bug 473787] Accounts do not persist on software restart

2023-10-19 Thread Joshua Goins
https://bugs.kde.org/show_bug.cgi?id=473787

Joshua Goins  changed:

   What|Removed |Added

 Resolution|--- |WAITINGFORINFO
 Status|REPORTED|NEEDSINFO

--- Comment #5 from Joshua Goins  ---
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Tokodon] [Bug 473787] Accounts do not persist on software restart

2023-09-13 Thread Colin J Thomson
https://bugs.kde.org/show_bug.cgi?id=473787

--- Comment #4 from Colin J Thomson  ---
Thanks for the info..

-- 
You are receiving this mail because:
You are watching all bug changes.

[Tokodon] [Bug 473787] Accounts do not persist on software restart

2023-09-13 Thread Joshua Goins
https://bugs.kde.org/show_bug.cgi?id=473787

--- Comment #3 from Joshua Goins  ---
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Tokodon] [Bug 473787] Accounts do not persist on software restart

2023-09-12 Thread Colin J Thomson
https://bugs.kde.org/show_bug.cgi?id=473787

--- Comment #2 from Colin J Thomson  ---
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

-- 
You are receiving this mail because:
You are watching all bug changes.

[Tokodon] [Bug 473787] Accounts do not persist on software restart

2023-09-11 Thread Joshua Goins
https://bugs.kde.org/show_bug.cgi?id=473787

--- Comment #1 from Joshua Goins  ---
You can confirm this is 23.08 right? I would check if the account information
is saved on disk, which would be under /home//.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?

-- 
You are receiving this mail because:
You are watching all bug changes.

[Tokodon] [Bug 473787] Accounts do not persist on software restart

2023-09-01 Thread Colin J Thomson
https://bugs.kde.org/show_bug.cgi?id=473787

Colin J Thomson  changed:

   What|Removed |Added

 CC||colin.thom...@g6avk.co.uk

-- 
You are receiving this mail because:
You are watching all bug changes.