No idea how this happened. plasmashell was crashing after consuming 6gb memory and I'd tried removing ~/.cache. Shortly after all plasmashell would do is start my desktop background with a wallpaper but wouldn't give me any taskbar and I couldn't bring up a menu by right clicking the desktop.

Restarting it or rebooting the whole machine didn't help.

share|improve this question
up vote 27 down vote accepted

jozxyqk's answer is correct, but it is fairly drastic. It will blow away all of your toolbar customizations, app favorites , etc.

Depending on the cause of this issue in your case, you may be able to fix it by editing your plasma-org.kde.plasma.desktop-appletsrc file and then performing

kquitapp plasmashell && kstart plasmashell

One cause I've run into is the buggy multimonitor functionality sometimes "losing" the taskbar from my laptop screen after I've connected to an external monitor and later disconnected (this was in plasma 5.5 or 5.6, I think). In this scenario, I've found the problem to be the lastScreen setting in the taskbar configuration. To fix this, find the section of text in plasma-org.kde.plasma.desktop-appletsrc that looks like:

[Containments][1]
activityId=
formfactor=2
immutability=1
lastScreen=1
location=4
plugin=org.kde.panel
wallpaperplugin=org.kde.image

(Some of these lines may vary in your configuration. In mine, this section was only a dozen lines down in the file, but I have no idea how much that may vary.)

Setting lastscreen=0 fixed the problem for me. I assume that 0 represents my laptop screen, and 1 is the external monitor.

If in doubt, you can always perform the procedure in jozxyqk's answer, and compare the newly generated plasma-org.kde.plasma.desktop-appletsrc with your saved plasma-org.kde.plasma.desktop-appletsrc.bak before restoring an edited version of your saved copy.

share|improve this answer
    
Heh, one of those "Wish I had read that first" things :) – Dmitri DB Jul 14 '16 at 20:27
    
Thank you very much, how did you find it? – Pavel Dec 27 '16 at 3:12
    
@Pavel, if I remember correctly, I found it like this: jozxyqk's answer lead me to the correct file. I saved my file and used his solution, and then compared the new file to my old file. lastScreen seemed a likely candidate so I tried it (replacing my old file with a change to that one thing). – EricS Jan 1 '17 at 0:52

Update: Please see EricS's answer first as you may be able to avoid losing your KDE config.


I ended up removing random config files with the name plasma in them. The one that worked was:

cd ~/.config
mv plasma-org.kde.plasma.desktop-appletsrc \
   plasma-org.kde.plasma.desktop-appletsrc.bak

Then restart plasmashell:

kbuildsycoca5 && kquitapp plasmashell && kstart plasmashell
share|improve this answer
    
This just happened to me as well. Your solution worked, but I had to chown ~/.cache/sycoca5 to my username first. – Geremy Aug 3 '15 at 0:52
    
I could kiss you!!! – DrorCohen Jun 2 '16 at 1:32
    
A million thank yous for this: your fix helped. I had completely run out of ideas. – lightonphiri Jul 20 '16 at 12:34
    
You saved me a tonne of time. Thank you. – lightonphiri Mar 29 '17 at 1:05

I have also found this condition occurring when a plasma-org.kde.plasma.desktop-appletsrc.lock file is left in the ~/.config directory. Removing the lock file cleared the problem immediately.

share|improve this answer
    
convert to comment – IT Snuggles May 5 '17 at 2:15

In my case with KDE 5.8.8 removing the following two config files helped:

rm ~/.config/plasma-org.kde.plasma.desktop-appletsrc
rm ~/.config/plasmashellrc

Then starting KDE again.

For some reason, default widgets like taskbar were not configured on initial setup during some upgrades etc.

share|improve this answer

Edit plasma-appletsrc and delete this section.

[PlasmaViews][Panel 46][Horizontal1600]
alignment=132
maxLength=1600
minLength=1600
offset=0
panelVisibility=0
thickness=36

Then reboot.

share|improve this answer
1  
Your instructions are very unclear. I'm not sure people could implement your solution based on what you've written. Can you be more explicit? – fixer1234 Nov 3 '16 at 3:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.