Plasma developer David Edmundson demonstrates how a desktop using Wayland, Qt6 and KWin can recover from a catastrophic crash as if nothing had happened.
http://blog.davidedmundson.co.uk/blog/qt6_wayland_robustness/
You will lose no data, the video you were watching will not skip a frame, and the contents of your clipboard will remain intact.
... And can provide a way to save *the state* of an application to disk, stopping the app in its tracks and removing it from memory, so that later you can restore it just where you left off.
@kde Yo, application snapshots? Switching DEs within seconds? What is this sorcery?
Really though, I can already think of a certain handheld gaming PC that would really benefit from saving and restoring the state of applications to and from disk, both in a gaming context and for more seamless switching between gaming and desktop modes.
Not only switching desktops in seconds, but you take all your open windows with you, all the graphical applications in the exact same state they were on the other desktop!
@Bro666 @kde That will be a really great power-saving measure for Linux phones in particular.
Application has been sitting there, doing nothing for a while? Instead of just closing it, just commit the state to disk, and put a marker somewhere to signify that the app should be restored on next launch.
...actually... if two systems are close enough in terms of installed packages, kernel and package versions and hardware, I wonder if you could transfer the state of an application between them.
@kde this opens up great possibilities, thrilled for the future (power saving possibilities, seamless movement between devices, switching DEs/WMs…)
@user8e8f87c @kde The ability to quickly switch to GNOME for testing every now and then also makes me very excited, everyone wins from this.
@kde checkpoint restore would be a godsend for debugging issues that are hard to reproduce!
Much more useful than "send me the logs" and praying that logging has sufficient details.
@kde I wonder how this will enable new ways to share apps. Pretty interesting concept. And fantastic for mobile devices.
This would be amazing for games that take forever to load. When you want to exit the game just save it’s state to the disk, and the next time you want to play it just resume and boom! Instead of waiting for 3 minutes, you can play it almost immediately.
cough GTA cough
@kde this feels like forbidden magic. Will probably take a lot of work to get this done and integrated into plasma, but it would be worth it.
@kde Could be helpful for the steam deck. Switching between desktop and gaming mode
@kde
Changing between Wayland and X?
I think there may be more fundamental issues to be dealing with. I found Gnomes tracker3 service to be stuck in a loop permanently eating cpu when installing kde on Ubuntu LTS 22.04. I had to chmod 000 gnomes tracker3 binaries as systemd was impotent. An average user would have degraded KDE expereience due to Gnomes fault! This happened on one system but not another with the obvious symptom being that the laptops fans were always on.
@kde really wish there was a guide on how to implement this
The same principles can be applied to jumping from one desktop environment to another, for example, from #Plasma to #Gnome…
tube.kockatoo.org/w/gT1rKp7QWu7S4GYsKtw87x
… And can provide a way to save the state of an application to disk, stopping the app in its tracks and removing it from memory, so that later you can restore it just where you left off.
That’s so cool, love to see advancements like this
Fantastic
Compositor handoff to switch between desktops looks legendary! I super hope something like that becomes stable and officially supported somewhere, it would be so fun to use
@kde@floss.social @kde@lemmy.kde.social the future is now! I like how many cool technologies emerge from wayland
@TheStroyer @kde@floss.social @kde@lemmy.kde.social
Th combination Wayland/KWin is killing it. We recently had Arjen Hiemstra showing how you can access a remote desktop:
https://quantumproductions.info/articles/2023-08/remote-desktop-using-rdp-protocol-plasma-wayland
Something that was seemingly destined to die with X11.
we keep saying: KWin Wayland is genuinely great these days
@kde@floss.social @kde@lemmy.kde.social Enlightenment had this features for years. Not only on wayland but in xorg too.
Hoorah for Enlightenment then?
Hopefully there will be more support for this than just Qt6, especially for stuff like Firefox
Holy fucking shit this is incredible
I can’t wait until this makes it to gnome
@kde@floss.social @kde@lemmy.kde.social Very cool. Here’s hoping to see this in @gnome one day too.
PS. I’m sure you’re aware of it but, just in case, the window positions/dimensions appear to be lost on the restart. (An issue I have on GNOME too whenever it returns from suspend.)
Gloom OPPS I meant Gnome is a dirt word.
This is so cool, I can’t wait for KDE plasma 6
@kde@floss.social @kde@lemmy.kde.social this robustness feature is one of the most of exciting things to happen in a long time (especially for any of us who have experienced issues with graphics drivers).
David also mentions on his blog post how it's sped up KDE development - anyone who has done any sort of livecoding will be familiar with that feeling.
https://blog.davidedmundson.co.uk/blog/qt6_wayland_robustness/
What about Gtk ?
There is #Gtk 4 patch:
https://invent.kde.org/plasma/kwin/-/wikis/Restarting#gtk-4
It depends on a #Mesa patch -
https://invent.kde.org/plasma/kwin/-/wikis/Restarting#mesa