Davide-sd / shutdown_or_switch

Plasma 5 widget to quickly access the shutdown options or switch user.
GNU General Public License v2.0
10 stars 10 forks source link

Support Plasma 6 (Port to KF6) #6

Closed Svenum closed 8 months ago

Svenum commented 8 months ago

Please port this widget to KDE Framework 6. The guidelines are here.

Svenum commented 8 months ago

I have written my own version of this Plasmoid. Feel free to use it and make issues if needed. :) https://github.com/Svenum/quick_shutdown

@Davide-sd if you want to merge this plugin to yours I would be happy :)

Davide-sd commented 8 months ago

Hello @Svenum ,

Thanks for letting me know about Plasma 6, and sorry for my late reply.

How does your plugin differ from mine, except being written for Plasma 6?

Also, I assume that in order to test a Plasma 6 widgets, Plasma 6 must be installed on the system. Do you know of any Debian-based distribution that ships with it?

Svenum commented 8 months ago

I have taken the 'user-switch' plugin (qt6 version) as a base like you. And then add the options for the power modes. To shutdown and reboot and so on I use the session manager instead of dbus calls.

I use the unstable NixOS version with plasma6. I heard that arch has plasma6 too, but not that any debian base distro has upgraded already.

Svenum commented 8 months ago

If you want I can make an PR for my version into your repo, or would you contribute to my if you are not so active on GitHub?

Davide-sd commented 8 months ago

Ok, I've managed to complete the porting. I didn't ask your to make a PR because I needed to build experience with Plasma 6, because I have to port another widget.

Thank you again for letting me know about this! I'm closing this issue.