Skip to content

Instantly share code, notes, and snippets.

@cybik
Last active July 7, 2024 09:49
Show Gist options
  • Save cybik/b643c7221c6f6f8e35a2910009db68b7 to your computer and use it in GitHub Desktop.
Save cybik/b643c7221c6f6f8e35a2910009db68b7 to your computer and use it in GitHub Desktop.
GDM with KDE: a dumb revelation

The Neckbeard

Hi. I'm cybik. Look for me around the internet.

The Background

I used Pop_OS. I kinda liked GDM because of its sleekiness, simplicity, yet overall subdued tones. But I use KDE since GNOME can't actually implement interesting features or actual desktop UX to save its life.

The Issue

When using GDM3 to log into KDE, usually KDE prompts me to unlock my KWallet. The reverse is not true: Gnome's wallet gets unlocked when using sddm.

The Diagnosis

pam.d files!

The fix

Edit gdm-* files in /etc/pam.d. Anywhere you find pam_gnome_keyring.so, duplicate that line, and on the new, duplicated line, replace pam_gnome_keyring.so with pam_kwallet5.so.

@Leonardo-Figueiredo
Copy link

Thanks a lot!

@cybik
Copy link
Author

cybik commented Aug 23, 2023

@Leonardo-Figueiredo i'm just glad it helped!

@queenbiscuit311
Copy link

good god thank you you're the actual only answer to this question on google

@cybik
Copy link
Author

cybik commented Nov 25, 2023

@queenbiscuit311 and the fix is so bloody simple, too.

A shame GNOME devs don't care beyond their realm while SDDM devs obviously do.

@rulatir
Copy link

rulatir commented Dec 10, 2023

Thank you! Perfect!

The one occurrence people will probably want the most is the session line in /etc/pam.d/gdm-password. Overlooked that one on my first attempt, and only after adding the missing fix there did the prompt go away. Makes sense, since I log in with a password like your regular human ;)

@cybik
Copy link
Author

cybik commented Dec 11, 2023

Fun fact for yall:

I'm using PikaOS/KDE now, AND I've been using Wayland on nVidia for a few weeks.

The traffic on this gist actually forced me to maybe experiment with GDM, since SDDM refuses to start up on Wayland but GDM had an option.

TURNS OUT, GDM/Wayland on the latest nVidia drivers, kinda works fine! So now I have a fully non-X11 desktop solution! Neato!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment