Unable to restart plasmashell from terminal

There seem to be some recent changes to Plasma…

Usually i’m doing something like:

kquitapp5 plasmashell
kstart5 plasmashell > /dev/null 2>&1

Lately it throws error:

"Application plasmashell could not be found using service org.kde.plasmashell and path /MainApplication."

However if i ping:

kquitapp5 --help
kstart5 --help
plasmashell --help

At the very least they all still exist with same names…What am i missing? :thinking:

Dammit, sorry i’ve completely missed the new option in --help, seems now it’s:

plasmashell --replace &
4 Likes

I just tried this and it works on mine. The shell disappears and then comes back.

3 Likes

That’s weird, for me it doesn’t…

What is the man page?

ooops, meant:

plasmashell --help

More coffee i need…I need more coffee! :coffee:

1 Like

Where do these commands come from?

Edit:

kquitapp5 plasmashell
kstart5 plasmashell > /dev/null 2>&1

It was official way of doing that before, somewhere in depths of KDE knowledge base you could find it

If it’s in the Arch wiki I’m not looking. :rofl:

Edit: So does plasmashell --replace & work then?

Yep, doesn’t complain

I tried it and it just ran a bunch of stuff in the terminal? Then i tried the other commands and they still work.

It restarts whole plasmashell (panel etc) and applies some settings, handy for scripting.

Basically same stuff which KDE’s settings doing when applying some options

I have this alias I run in yakuake when plasmashell :poop: itself.

alias kp='killall plasmashell; kstart5 plasmashell&'

Sometimes the plasmashell process is beyond saving, it must be nuked, although plasmashell --replace& is probably a better first option.

1 Like

But does it still works fine for you?

Yep.

Killall blows away the process with SIGTERM KILL, a better option that --replace when there is a plasmashell memory leak.

1 Like

killall plasmashell && kstart5 plasmashell& still works fine for me, on multiple installations, updated a couple of hours ago.

3 Likes

Ok, thx guys…looks like my PC have some voodoo magic in it :rofl:

2 Likes

I never had to do that in 5-6 years of using Plasma. But yes, it should definitely work.

1 Like

I had some buggy behavior from Plasma for a few weeks back when it changed from KDE 4 to Plasma 5 (several years ago); that was the only time I ever had to kill plasmashell that I can recall.

The first few months of Plasma 5 were mildly rocky for me; it didn’t seem to help that mesa was undergoing some moderately heavy development then, too.

2 Likes

Well, I’d probably just reboot in a case like that. Not that I ever needed to, I pretty much only reboot after updating.

1 Like