Linking activities to virtual desktops

I tried to do this with
perVirtualDesktopViews=true
in plasmarc file. But after restarting plasma i have one virtual desktop with my old wallpaper and the other ones are black and not coresponding with my Activities. And also Activities are now unable to switch via cashew.

Some help?

well , its best to start with a blank plasmarc and plasma-appletsrc.

after you get it initially set up correctly , never add activities nor change the number of desktops.

also , never zoom out into plasma view.

other than that, after correcly set up , its pretty stable

Same problem here

Well I tried it on another computer, with just 4 desktops and 1 default Activity and the same problem again. :frowning:

I just found this work-around from Javier G in KDE bug #179755:

I’ll use as example that you have made 4 different activities for each virtual
desktop, then do these steps:
1º) Do a backup of plasmarc and plasma-appletrc files by precaution…
2º) logout your current session & start the session in the “safe mode” or
another different DE.
3º) open with a text editor and change ALL lines with “screen=-1” by
“screen=0” of plasmarc and plasma-appletrc files.

4º) change ALL “desktop=” values that you find by values from 0 to 3 (because
In this case you have 4 desktops). Those 4 values must be distributed to each
Containment/activity.
In my case, I distributed the values in this order:
[Containments][25] ----> desktop=0
[Containments][39] ----> desktop=1
[Containments][1] ----> desktop=2
[Containments][30] ----> desktop=3

Actually, there’s a slightly easier way to do the same thing:

Steps 1: same as Javier’s.

Step 2: Instead of logging out, just open Konsole and, as a normal user:
$kquitapp plasma

Steps 3 and 4 same as Javier’s

Step 5: back in Konsole: $plasma

Hope this helps someone else.

I just remembered something else important:

Don’t try mixing normal desktops with old “Folderview” style desktops. You get the same folderview on every desktop, and have to go back to step 1!

yep , that works.

currently applied it to a 6 activity, 6 virtual desktops setup

And my - I hope - last question - before doing these changes do I have to configure 4 Activities with cashew?
Or only 4 desktops?

tleskac:

And my - I hope - last question - before doing these changes do I have to configure 4 Activities with cashew?
Or only 4 desktops?

I would not recommend that! As Yagami said,

after you get it initially set up … never zoom out into plasma view.

After I got mine working roughly, I just right-clicked on each desktop, chose Appearance Settings from the context menu and changed my wallpaper from there. After that I added different folderviews and other widgets to each desktop - restarting plasma every now and then to make sure changes were being saved, and nothing else was going wrong.

In hindsight, after each successful restart, it would have been a good idea to back up my plasmarc and plasma-appletrc files, so that if anything went wrong with the next set of modifications, I could always go back.

Sorry tleskac, I didn’t read your question properly before. You are asking whether to configure with cashew before doing these changes.

Well, I don’t think it would be necessary. I’m almost certain I didn’t zoom out at all during my setup, having had so many problems with it before.

Anyway, if you open your plasma-appletrc file, and there are already enough desktop activities in there for the number of desktops you have, you shouldn’t need to do anything else before editing the file (except for stopping plasma).

I’m not sure exactly how this works, but after you have edited your file as per Javier’s instructions, and restarted plasma, you will see that, if you have more desktop activities than desktops, the redundant activities will be set to screen=-1 again.

The problem seems to be that in the initial setup, something is setting all but one of the desktop activities to screen=-1, thus black desktops and the need to hand-edit the file.

Currently there are few more rules to the work-around:

  • Create the necessary desktops first.
  • Never zoom out to activities view.
  • Never change the type of desktop (Desktop, folderview) when perVirtualDesktopViews=true
  • Never add & use the activities widget.

Optional:

  • Do a backup of the 2 plasma config files for when you break any rule… restore it.

I hope Plasma developers fix it soon in the SVN :slight_smile: