this post was submitted on 20 Nov 2024
14 points (100.0% liked)

Linux

8396 readers
60 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

I tried searching prior to me asking here, the best I could find was: https://old.reddit.com/r/kde/comments/sej9no/configure_sddm_to_show_password/

https://forum.manjaro.org/t/login-screen-no-longer-has-show-password-icon-in-password-form-text-box/78041

Unfortunately the SDDM page on Archlinux is devoid of any solutions to this so I thought someone here might know better.

And for clarification I'm looking to modify SDDM to show the reveal password button during the first chance users have to input in their password. This is the same button that appears on the right-hand side of the password box during an incorrect attempt.

top 2 comments
sorted by: hot top controversial new old
[โ€“] bisby 3 points 1 month ago (1 children)

Which version of of SDDM (and presumably KDE) are you using?

One of the comments one of those threads you linked points out that the bugs you're sharing are for has changed.

The components have been reworked since the button was disabled so maybe that helped. It used to be a PlasmaComponents2.TextField, now it's a PlasmaExtras.PasswordField.

PlasmaExtras.PasswordField has the button enabled! However, the implementation in the theme explicitly disables it.

If you open up /usr/share/sddm/themes/breeze/Login.qml and scroll down to line 106. You'll see rightActions: [] -- this bit of code basically overrides the default behavior. It says "normally you have some actions here, but instead use this list, but [] is an empty list.

So if you just comment that line out by adding // to the front of it... Everything should just work, since it will then revert back to using the built in value.

However, the reason this was removed in the first place is in a comment on line 105: // Disable reveal password action because SDDM does not have the breeze icon set loaded

If the icon set fails to load for whatever reason (if youre using a custom icon theme or something, i dunno why it might not be loaded), the button will fail to load again.

You can test drive the SDDM lockscreen by running sddm-greeter-qt6 --test-mode --theme /usr/share/sddm/themes/breeze/ from the terminal.

And this all assumes that you're using the default breeze theme. If you are trying to use a different theme, not sure if any of this applies.

[โ€“] [email protected] 1 points 1 month ago

It's 0.21.0 as of Nov 23, 2024

Sorry for the late reply!
I'm currently battling a cold that was passed on by my family so I've been phasing in and out of fever dreams for the past couple of days