Announcement

Collapse
No announcement yet.

kdewallet refuses to open on login when autologin is enabled

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [ABANDONED] kdewallet refuses to open on login when autologin is enabled

    I set my PC to login automatically, because I sometimes need to access it remotely. The remote desktop software doesn't launch until the session is logged in. I also use services like nextcloud, which require the use of a keyring or wallet on launch. On every login, I get a prompt from GNOME Keyring to create a default keyring, because the wallet just doesn't open. This prompt literally prevents me from doing anything else, until I deal with it.

    Things I've tried:
    - changing pam configuration for autologin (editing /etc/pam.d/sddm and /etc/pam.d/sddm-autologin adding the relevant lines)
    - empty password on wallet (i changed it back to my login password when this failed)
    - login script that tries pinging the wallet (kwallet-query -l kdewallet > /dev/null)

    My next step is to completely disable GNOME Keyring, but not certain if this will work, or if it's even wise.

    Any assistance on getting the wallet to open on every login (with autologin) would be very helpful.

    #2
    Note that the Gnome Keyring is a separate thing entirely from KDE's Kwallet.

    You don't need Gnome-keyring, it isn't a default part of Kubuntu or Plasma for that matter. Some applications do depend on it as a package, though in most cases it should be uninstallable without removing those applications that wanted it.

    Testing things by disabling it is what I'd try.
    Most things detect which desktop is being used, or at least which keyring is, so you likely are using Kwallet anyway and not the Gnome keyring, but there is still a chance that some Gnome-related apps might lose their saved passwords, maybe? Like the remote desktop software, perhaps?


    Do note that Kwallet doesn't work with autologin:

    Click image for larger version

Name:	Screenshot_20250802_215601.png
Views:	38
Size:	70.3 KB
ID:	687922

    Maybe the same trick works with the Gnome keyring itself?
    Use the Gnome tool Seahorse to do this from within KDE.
    As the popup is asking you to create a keyring, then you might be able to do so there, and give it a blank password that way.

    Comment


      #3
      I'm specifically trying to use kdewallet. I never saw this warning when turning on autologin. As stated, I've tried giving the wallet an empty password, but i still get the prompt for a new gnome keyring after a couple of boots. On such occasions, I've opened kwalletmanager to find that the wallet doesn't open, even with a blank password. The only reason it asks for a new keyring is because the wallet refuses to open.

      All of the apps that I use have put entries into kdewallet. After some additional research I've found out that remote desktop software can be configured to work before any session logs in. That means I can disable autologin.

      I find it odd that this issue wasn't addressed before the autologin feature was added to settings. I'll just disable autologin and mark this as abandoned.

      Comment


        #4
        Originally posted by jasoncollege24 View Post
        but i still get the prompt for a new gnome keyring
        As I mentioned, Gnome keyring is completely separate from and unrelated to KDE's Kwallet. Yes, this stinks, but it is a thing.\

        Originally posted by jasoncollege24 View Post
        I'm specifically trying to use kdewallet.
        But if the application that is requesting it only supports gnome-keyring..........


        You can try:
        • Disabling Gnome keyring
        • Uninstalling gnome-keyring --check what wants to be removed with it
        • Let Gnome Keyring create a (new) keyring, and give it a blank password.
        • As you discovered - configure your unspecified software to log in outside of or before the desktop session
        Originally posted by jasoncollege24 View Post
        I never saw this warning when turning on autologin.
        Odd, as it has been a message in System Settings for a number of years now, and before that it was a --ahem-- 'well known" thing long before that. The screenshot here is from a 100% fresh Kubuntu 24.04 install. And yes, such a message was needed many years before it was added.

        But KDE's mostly volunteer dev team does lack the manpower and resources that Gnome (via Red Hat) has access to. But even so, I think that this happens on Gnome as well

        Comment


          #5
          Originally posted by claydoh View Post
          But if the application that is requesting it only supports gnome-keyring..........
          Everything I'm using supports KDE Wallet. I never got GNOME keyring prompts until I used autologin. As for the warning message, it's entirely possible I saw and dismissed, or forgot about it. I don't have the best memory. Thanks for the help.

          Comment

          Users Viewing This Topic

          Collapse

          There are 0 users viewing this topic.

          Working...
          X