LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Linux Answers > Applications / GUI / Multimedia
User Name
Password

Notices

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


  



All times are GMT -5. The time now is 08:30 PM.

Main Menu

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration