This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Wrong virtual desktop displayed at startup

Tags: None
(comma "," separated)
pranavar
Registered Member
Posts
5
Karma
0
I use 4 different virtual desktops and on startup the 4th virtual desktop is always displayed instead of the first one.
I have the option "Use different widgets for each desktop" enabled. I want the first virtual desktop to be shown by default on startup . I tried renaming the kwinrc file, but it did not work. I lost my configuration, but the 4th virtual desktop was loaded again at startup. Iam running Netrunner Rolling release edition. This issue cropped up only recently. It used to work fine before.
luebking
Karma
0
Is this plasma/5?
in doubt:
Code: Select all
qdbus org.kde.KWin /KWin supportInformation | grep -i "kwin version"
pranavar
Registered Member
Posts
5
Karma
0
No , it is not plasma 5.
KWin version: 4.11.17
I still have this problem and it is a bit annoying. Is there any solution to this?
luebking
Karma
0
run "kcmshell4 smserver", check the "On Login" group, ensure it's not set to "restore manually saved session"

If it's set to "restore previous session", check the contents of ~/.kde/share/config/session.

There should be _one_ file "kwin_<hash>", check it's contents.
If there's an entry
desktop=4
there's your reason.

Ensure you've write permission on the file and ~/.kde/share/config/session/ dir, and edit it to
desktop=1

Ensure to be on desktop 1, logout, login.
If you're on desktop 4 again, check ~/.kde/share/config/session/ again. If the file has a new
desktop=4

entry, "something" sets the VD to #4 right on logout, otherwise right after login (that's quite important to figure)

If you have no client on VD#4, that "something" will be plasma-desktop, resp. some plasmoid.

~/.kde might be ~/.kde4 in your distro.
pranavar
Registered Member
Posts
5
Karma
0
Well, I checked that file and it says Desktop=1. This remains unchanged unless I log out from a different virtual desktop. Still, when I log out from the first virtual desktop and then log in again, the 4th virtual desktop is displayed. This is really frustrating! I don't know as to whether this is of any relevance but the kwin_<> file also contains these lines desktop1=-1 desktop2=-1.I even tried deleting the .kde4 folder and starting afresh.But, when the option "Different widgets for each desktop" is enabled, the issue persists.
luebking
Karma
0
Desktop "-1" is "on all desktops"

> But, when the option "Different widgets for each desktop" is enabled, the issue persists.

This being the trigger?
plasma-desktop or some plasmoid likely adjusts the virtual desktop after login then (after the session actually loaded)
This might happen since by this setting every virtual desktop gets its own desktop widget.

Basic approach: make a window rule (run "kcmshell4 kwinrules", use the detect button) for the desktop window(s) and set the focus stealing prevention level to "extreme" (please don't be frustrated if it shouldn't work, windows can still forcefully become active)
pranavar
Registered Member
Posts
5
Karma
0
Thank you so much, that solved my problem. You saved the day!!!! :) But, what's the difference between substring match and exact match in the edit window specific settings dialogue ?
luebking
Karma
0
"plasma" would be a substring match for "plasma-desktop", "plasmashell" or even "supplasmatic", but only an exact match for "plasma"
pranavar
Registered Member
Posts
5
Karma
0
Well, my problem is solved. Thanks a lot!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft