Registered Member
|
If you are new to KDE or if you have recently helped someone move over to KDE, you may find from time to time getting used to environment can cause issues, i.e. unusable desktop, menus all missing etc etc..
Or if widgets have crashed and you have never managed to get them back on and wish to go back to the beginning like a new profile without removing all your useful information menus etc then I have written a script that does this for you. open a shell in your home folder mkdir scripts cd scripts vi restore-plasma.sh copy and paste below code into it chmod 755 restore-plasma.sh then at any point run (as the user not root or other user but user with messed up config) run : cd ~/scripts ./restore-plasma.sh [if you wish to restore back the config that was last backed up from the last time the script was ran] run ./restore-plasma.sh -restore Hope it is of some use - you may have a family member who consistently messes up their desktop and having this script accessible on their desktop or sym linked to home-folder so its viewable can mean they can fix their own desktop..
I have been testing it and it seems to work fine for me ....
Last edited by vahid on Mon Jun 22, 2009 10:36 pm, edited 1 time in total.
|
Global Moderator
|
Good stuff. However, disappearing settings should not occur unless you are using ext4
Debian testing
|
Registered Member
|
make that two items ext4 and kids using KDE on ext3 seriously I got handed a machine running kde obvious novice users and somehow the kid had managed to destroy dekstop, when I finally got in after resetting their pass to blank.. i found that it was totally unusuable two widgets locked and not responding to any mouse clicks the task bar was well half there and not responding It was a mess I just made a new user for them and didnt look back, hence the reason for writing this script. |
Registered Member
|
I tried running your script but got this error;
./restore-plasma.sh: line 115: unexpected EOF while looking for matching `"' ./restore-plasma.sh: line 118: syntax error: unexpected end of file I've tried to edit it in Kate but still get the same message, not sure if it's the html that is messing up the script or what. Any ideas? Thanks |
Registered Member
|
You got these error messages because the closing '"' is missing in line 108.
Thanks for the script vahid, it saved me lots of time. |
Administrator
|
Notice that in versions >= 4.4 Plasma comes with "templates" that can be used to restore the default layouts.
"Violence is the last refuge of the incompetent."
Plasma FAQ maintainer - Plasma programming with Python |
Registered users: Bing [Bot], Evergrowing, Google [Bot]