Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
By slide-rule at 2004-09-05 22:01
First off, my system is a MDK10 fresh install. After I saw the "save window settings" option, I was intrigued, only to be dismayed a day later to learn that some of the settings saved where which virtual desktop something is saved to. Not caring for this behavior, I couldn't find how (via normal GUI operations) to make it "forget". I didn't want to dump my whole profile or start fresh either, and a few searches on Google came back empty. (For the few who find this obvious, I wasted a few hours on this, not finding anything written down anywhere.)
Anyway, you'll note/recall that kde stores your preferences in your ~/.kde directory. The file affecting us is ~/.kde/share/config/kwinrc . In this file is a section which starts off with [Fake Session], and in this section is a series of settings in "key=value" format. Scroll down a little ways to "resourceNameX" (X is some number) to find the application you're interested in. All of the "fooX" key=value pairs need to be removed. ALSO, note near the top of the section is a "count" key. With careful, surgical editing, you can cause KWin to forget window settings without resorting to more drastic measures (like getting frustrated and deleting your whole .kde subdirectory, etc).
Now, the catch is that, if you're current KDE session gets saved on logout, the file will probably be regenerated, so you'll need to edit this file while NOT being logged in. One way might involve logging in as root and doing the operation. (Careful setting the user's file permissions, depending on your editor.) Another safer way is to, after logging the user out, switch to a virtual terminal (ctrl-alt-f2, for example). Log in as the user on the console, edit the file, log out, switch back via (ctrl-alt-f7), and resume normal graphical operations.
For myself, I just whacked all the few settings I had accumulated, and set the "count" key to 0, which meant this was the only key in this section of the file. If you just remove one in particular, you'll most likely want to renumber things that come after it... I don't know how intelligent the settings loader is if you've skipped a number. (Minor obvious note: set the highest number to the number you deleted rather than shifting everything one at a time).
I believe from what little I've seen through my googling that KDE 3.3's KWin has better features for what it saves, so this might not be necessary in the future.
Alternatively you can opt to do the following:
kcontrol --> KDE Components --> Session Manager --> On Login --> Set to "Start with an empty session