ayn2op / discordo

A lightweight, secure, and feature-rich Discord terminal client.
MIT License
2.25k stars 70 forks source link

asks for login everytime even with remember me checked #458

Closed prufaraSS closed 1 week ago

prufaraSS commented 1 week ago

here's what it tells: failed to get token from keyring err="The name is not activatable" using two factor authentification my specs: wayland, hyprland, no wlroots (aquamarine instead), kitty terminal, nvidia gpu (1050 ti), amd cpu, ssd (ext4), arch linux (linux-zen)

ayn2op commented 1 week ago

You need a keyring software that implements the DBus secret service API in order to securely store the authentication token. One such application is gnome-keyring.

prufaraSS commented 1 week ago

I've never heard anything about keyrings ever, so trying to make it work sent me to a medium-length rabbit hole. so what I've done to make things work:

  1. Installed gnome-keyring
  2. Made sure libsecret is installed
  3. Setup default keyring password:
    $ dbus-run-session -- sh
    sh-5.2$ gnome-keyring-daemon --unlock
    123 [Ctrl+D to exit]
    sh-5.2$ exit

    (Shoutout #413, Using keyring on headless linux systems)

  4. Setup system for using gnome keyrings: $ sudo nano /etc/pam.d/login
    
    #%PAM-1.0

auth ... ... auth optional pam_gnome_keyring.so account ... ... session ... ... session optional pam_gnome_keyring.so auto_start


(Basically saying to add _gnome keyring auth_ at the end of auth listings and _gnome keyring session_ below all session listings)
(Shoutout [Unable to log in - Arch Linux - Failed to store user ID to Keychain](https://forum.inkdrop.app/t/unable-to-log-in-arch-linux-failed-to-store-user-id-to-keychain/3045), [GNOME/Keyring: Using the keyring (PAM step) - ArchWiki](https://wiki.archlinux.org/title/GNOME/Keyring#Using_the_keyring))
5. Restarted the system and logged in discord account (Extra step: Closed Discordo and reopened it)
prufaraSS commented 1 week ago

For those who doesn't want to see a popup window of authentification every time discordo executed:

  1. Make sure discordo automatically connects to your discord account on startup
  2. Install seahorse
  3. Open the program and find "Login" category: image
  4. Press right mouse button on it and select "Change Password"
  5. Write your old password (on guide above used "123")
  6. Press "Continue" every time until new popups appear