Open GribouilleVert opened 2 years ago
Which distributable format were you using? Try native if you've tested Flatpaks, on Fedora RPMs are recommended.
Also I wasn't able to reproduce this, it's definitely not an issue on my side. A similar issue I've encountered when merging between Electron 15 and 16, but it was resolved for quite a long time and I haven't encountered any logouts since then. Since WebCord saves its data normally in $XDG_CONFIG_HOME/WebCord
or ~/.config/WebCord
and I'm pretty sure Flatpaks normally save their data somewhere else (I'm not sure if this directory is persistent or not) due to sandboxing, my first guess this is not an issue with WebCord, but a problem with Flatpak sandboxing that I am not going to fix as I'm not a maintainer of Flatpak releases.
@GribouilleVert If you can reproduce this on officially-supported releases, just reply here. I'll reopen this as long as it is reproducible.
Hi,
Thanks for all the help, i've switch from flatpak to the rpm on the release page, unefortunately, the issue is still there :/, Additionally since i'm on fedora, i've checked se-linux logs but the is nothing.
Do not hesitate to ask for any additional details :)
I still can't reproduce it, my guesses are either WebCord's data is cleaned after each reboot or it is somehow stored in RAM (I don't know much how your .config
or XDG_CONFIG_DATA
is stored).
I have no clue why logout happens for you, in earlier WebCord version there was a bug with Electron 16 (I believe it hasn't been resolved yet through in newer releases) but it is now workarounded so that should not happen anymore (if it ever happened before in WebCord's stable releases, I believe I've found this bug and prepared WebCord before I moved to next Electron version)...
Huh, could you precise your thoughts about .config and XDG_CONFIG_DATA, maybe i can checks things for you, as far as i am aware, my .config folder is stored on my disk, i use ButterFS so maybe this is an issue (altough i highly doubt it),
The XDG_CONFIG_DATA environment variable doesn't seem to exists on my system, maybe this is causing the issue ? (tried echo $XDG_CONFIG_DATA
and it cas blank (fish shell))
Huh, could you precise your thoughts about .config and XDG_CONFIG_DATA
It was that WebCord data is stored in ~/.config/WebCord
or in case XDG_CONFIG_DATA
is set (AFAIK) WebCord's data will be made in the path this variable stores.
(…) i use ButterFS so maybe this is an issue (altough i highly doubt it),
I've never tested how Electron behaves on brtfs
, so I have no clue. I also doubt it, unless it messes up some Linux permission in some way, it should rather be functional. But just to be safe, you might check whenever it behaves correctly in a clean VM on ext4
or maybe just clean enviroment on brtfs
.
I have the same problem on a fresh Arch Linux install (using the official rpm). Given that it doesn't forget everything (i.e. it still remembers what account was logged in, since it asks for reauthentication) I wonder if and how the auth token is stored differently from the rest. My system also runs on btrfs, but I don't have problems with other Electron based apps forgetting data.
I've tried on fresh installs in VMs (ext4 and btrfs) and same issue ! Also, i use EFI, maybe this causes issues, altough i doubt it.
I also saw this issue (using the AUR package webcord
), but maybe it's an issue with your .config
getting messed up? I just moved ~/.config/Webcord
elsewhere (so the app can recreate the config folder) and the issue went away for me.
I also saw this issue (using the AUR package
webcord
), but maybe it's an issue with your.config
getting messed up? I just moved~/.config/Webcord
elsewhere (so the app can recreate the config folder) and the issue went away for me.
It could be that, but I'm pretty sure that if he tested WebCord for like the three times in the row in VM on official releases (runs with Flatpaks shouldn't count) [this also happens with the clean ~/.config/WebCord
].
I have the same problem on a fresh Arch Linux install (using the official rpm).
You mean Fedora? Arch got webcord
or webcord-*
packages, where webcord-git
is the only package maintained by me right now.
Also, does it reproduce only on the reboot or when app is restarted (not hidden to the tray)?
Also, does it reproduce only on the reboot or when app is restarted (not hidden to the tray)?
I've tried to qui it from the tray and then launch it again, and i'm still connected. However when my gmd session stops/crashes (aka. when i logout from my computer) and then log-back in without rebooting, webcord logs me out the same.
I wonder if and how the auth token is stored differently from the rest.
As of that, it's not stored differently from anything, AFAIK Discord stores all data in the localStorage
. And as long this is a thing:
I've tried to qui[t] it from the tray and then launch it again, and i'm still connected. (...)
…I don't think this is a bug with the Electron. I would suspect something's messed up once the logout or login occurs. I definitely can't fix it myself if WebCord works fine after it is being relaunched. I can't also reproduce this issue at all.
I also saw this issue (using the AUR package
webcord
), but maybe it's an issue with your.config
getting messed up? I just moved~/.config/Webcord
elsewhere (so the app can recreate the config folder) and the issue went away for me.
I can confirm deleting my ~/.config/Webcord
folder made the issue dissappear for me as well. I'm also using the same AUR package webcord
.
Reopening the issue ticket since it seems that this has never been fixed...
I'm having the same issue on Arch (aur/webcord
).
Deleted ~/.config/Webcord
but it didn't help, still getting logged out on every restart.
Aknowledgements
[X] I have checked that there's no other issue describing the same or similar problem that I currently have, regardless if it has been closed or open.
[X] I can confirm that this is not an issue with the Discord website, but it is a problem specific to the WebCord itself. I have tested if this bug occurs on Chromium/Chrome or any other Chromium-based browser that uses unpatched/upstream Chromium engine.
[ ] I have tried running the build from the
master
branch and it does not have any fixes implemented according to my issue.[ ] My issue describes one of the unstable and/or not fully implemented features.
[ ] I have found a workaround to mitigate or temporarily fix this issue in affected releases (please write it in Additional context section below).
Operating System / Platform
🐧️ Linux
Operating system architecture
x64 (64-bit Intel/AMD)
Electron version
20.1.0
Application version
v3.8.1
Bug description
When my system reboots webcords logs me out and shows me this screen:
I then need to relog, i have not encoutered this issue with the official discord client for linux.
Additional context
I am on Fedora 36, linux kernel 5.19.4-200.fc36.x86_64, i'm using Gnome 42