Version: (using Devel) OS: Linux Installed from: Compiled sources KDE 4.1.87 (KDE 4.2 >= 20090101) After creating new activity and changing activity type to Folder, the new activity is missing from subsequent logins. Desktop activities, on the other hand, are properly retained.
I can't reproduce. I added a new folder activity to the default desktop and I restarted plasma, the folder activity is still there. Can you attach your plasmarc and plasma-appletsrc config files please? Thanks in advance
I can't reproduce it either. Here are the steps I took: * Zoom out * Click Add Activity * Zoom in on new activity * Open the Appearance Settings dialog * Select Folder View as the Activity Type * press Ok * kquitapp plasma * plasma there it was. i also tried doing this and then kill -9'ing it shortly after it was set (~15s) and the config saving worked nicely even in those poor conditions (simulating a crash, really). Fred: if your steps were different than the ones above, please enumerate them as i did there so i can try and reproduce *exactly*.
Actually the behavior is very inconsistently incorrect, depending upon from which activity you logout. But, the key is logging out and back in rather than restarting plasma manually. Here are the steps... * Before login, rm $HOME/.kde/share/config/plasmarc to ensure start with clean default activity config. * Login * Zoom out * Click Add Activity * Zoom in on new activity * Open the Appearance Settings dialog * Select Folder View as the Activity Type * Press Ok * Zoom out * Zoom in on original activity * Logout * Login * Zoom out * Observe missing activity Recommend trying various combinations of logging out and back in from different activities - without restarting plasma manually. This will give you some idea of the other inconsistencies I mentioned.
Obviously, there is some active development on this feature. After upgrading to the latest KDE 4.1.96 (KDE 4.2 RC1), the behavior has improved somewhat. Still not quite right, unfortunately. :( Now, after creating the activity, setting to Folder type, logging out and back in, the new activity exists, but is now the default activity. Also, it's set back to Desktop instead of Folder and there is no longer a Delete option when you zoom out. FWIW, my general observation of this feature over the last months has been that it's been very buggy. While gradually improving, there are still some bugs to be resolved before the final 4.2 release. Keeping my fingers crossed. :)
Correction. The delete button is only absent because it's the active activity, which I presume is by design and makes sense.
I cannot reproduce any missing activity, I followed your steps in comment #3. Please reproduce with KDE 4 rc1 and attach plasmarc and plasma-appletsrc before and after missing activity (before meaning after you add the new activity, set it as folderview then zoom out) You are also saying that you see a different behaviour with logging out and using kquitapp plasma and restarting plasma, is that true? About the default activity: I can't reproduce either. I keep the default folderview activity I set up. Again, please attach plasma config files before logging out and after logging back in so we can see what is happening. Thanks in advance.
Created attachment 30028 [details] plasmarc and plasma-appletsrc files As requested, attached are the plasmarc and plasma-appletsrc. Note that the original reported behavior has returned - the activity is missing completely after relogin.
" depending upon from which activity you logout. But, the key is logging out and back in rather than restarting plasma manually" there is actually zero difference between logging out and `kquitapp plasma`. there is no "are we saving session" code in plasma at all, and all application shutdowns are treated equally. if you are receiving different results between logging out and restarting plasma then either the log out is *killing* rather than existing plasma (which is incorrect behaviour on the part of whatever is doing the logout; e.g. ctrl+alt+backspace is not logging out, but rather killing the session) or plasma is experiencing a crash-on-exit during log out only. that's a possibility, of course, though not something we're seeing in the general case. "my general observation of this feature over the last months has been that it's been very buggy." well, let's see: it's a new feature, and a complex one at that. so it's unsurprising that its going to have bugs at first. so .. i have tried, again, to replicate the issue and it is working exactly as expected here. "the original reported behavior has returned" intermitent behaviour like this says to me that its crash related. now, looking at the configurations you uploaded (thanks for such a thorough collection of them), at no point is there any record of another activity or a folderview activity that i can see. there is a folderview applet on the desktop activity, but that's it. hum, hum, hum. <-- the sound of me thinking.
containment->init(); containment->updateConstraints(Plasma::StartupCompletedConstraint); KConfigGroup cg = containment->config(); containment->save(cg); q->requestConfigSync(); containment->flushPendingConstraintsEvents(); and as can be seen from the above snippet of code, plasma does save the creation of the activity to the config file immediately. so .. dunno what's going on for you. were the "step2-addactivity" settings taken from after adding the activity, but before logging out or otherwise quitting plasma? if they were not taken while plasma was running, please try adding a new activity, wait 30 seconds, then grab plasma-appletsrc without shutting down plasma. in any case, this behaviour you are seeing really looks like 4.1 where we assumed a half-working installation (these days we assume that people and/or their distributions will simply break their plasma installation and that we can't trust it) rather than 4.2.
Perhaps you're correct that logout isn't gracefully shutting plasma down. One interesting observation with this (KDE4Daily/Debian) distribution is that clicking logout causes an immediate logout without the normal KDE Logout prompt. Not sure why. Is there a command that I can run to ensure graceful logout? Anyway, here's an explanation of what I provided. Step1 - Upon clean, initial login. Step2 - Immediately after adding activity. Step3 - Immediately after setting folder type. Step4 - Immediately after returning to previous desktop activity. Step5 - Immediately after logging out and logging back in. Hope this helps.
May be the incorrect logout is because of bug 179978 (which I'm experiencing too)
Good catch, Dario. Bug 179978 appears to be the problem here as well. Switching to another theme apparently prevents ksmserver crash, provides proper logout confirmation and correctly saves the plasma activity config. Subsequent logins now retains the new folder activity.
This appears to have been caused by the Oxygen theme not gracefully logging out and preventing the plasma updates from occurring. This appears to have been fixed. As the original reporter I'm closing the bug report.