In Windows, if explorer.exe crashes and for some reason doesn’t restart, you can double click on the desktop to restart explorer.exe, and if that fails, you can do Ctrl+Alt+Del > Task Manager > File > Run > “explorer.exe”
Since plasmashell crashes quite often, and doesn’t always restart automatically, how can I restart it manually? If I switch to one of the virtual terminals, I can’t start it because it can’t find the display.
If I have a terminal window open when plasmashell does this, I can restart it using “kstart plasmashell”, but if I don’t have a terminal window open, then I’m stuck.
What’s the way to restart plasmashell manually, without having to lose your login session?
I have defined a keyboard shortcut for this via System Settings > Keyboard > Shortcuts, and now I just press Meta+Backspace to execute the command plasmashell —-replace
However, you might also look into the reasons why plasmashell crashes quite often in your case.
I don’t think so, or at least it doesn’t act that way. I may well have been doing it wrong all these years, for sure.
However, I have never seen an issue using it this way in krunner. I am guessing that krunner isn’t using that session or acting similar to kstart here.
I know when I run it from the terminal, it won’t detach and return to the prompt, and killing that terminal session will kill plasmashell…
So maybe krunner or kstart is the better way to start it?
I guess the other question that remains, if I use one of the other ttys that don’t have wayland running on them, how can I start plasmashell on the tty that does have the display on it?
I put that in a bash script and copied it to bin ‘prestart’ for plasma restart… ’ cos I can’t remember last time it crashed, but I remember prestart because I used it during some theming.
So, if i do systemctl status --user plasma-plasmashell.service it says the service is disabled and not running, even when plasmashell IS running.
It doesn’t seem on Fedora 43 that plasma is running via systemd
So is this ACTUALLY the right way to do it? Is this a Fedora specific quirk?
I posted this earlier and deleted it.
I was wrong, on a fresh boot, systemd WAS responsible for starting plasmashell, and status would show that it was running. So I guess systemd is the best way to (re)start plasmashell.
Maybe the command for an alias and/or keyboard shortcut should better be like this (to include a fallback if the preferred one fails)? systemctl restart --user plasma-plasmashell.service || plasmashell --replace