i hesitate to write because i do not want to be accused of spanking in
public…it is, of course, good to be helpful here…and, all
appreciate your willingness to help…however, it is not helpful to
pass on to even newer folks the idea that logging into Gnome (or KDE,
Xfce, etc etc) as root is something which is alright to do…
it is not ok…not even for a quick little admin task and then log
back in as yourself…
never do that…i can’t think of a single situation in which that is
the only way to solve a problem…can you think of one?
deleting one of your own hidden directories is certainly not such a
situation…so, it is best to NOT suggest breaking this ‘rule’:
Do not log into any Linux desktop (gnome, kde, etc) as root, ever.
cite: http://docs.kde.org/stable/en/kdebase-runtime/userguide/root.html
http://en.opensuse.org/SDB:Login_as_root
http://tinyurl.com/6ry6yd
(and thousands of others)
it is common on some boards to give the quick/easy direction you gave,
so you are therefore NOT spanked, but rather encouraged to continue
helping but please give only helpful help…the direction to log in
as root which you gave could easily cause more damage than it fixes…
especially if the n00b you help gets the idea that step one on the
route to fixing problems in Linux is to log in as root…
oh, so to address each of your points:
> If I delete the gnome, kde or whatever other window manager files, suse
> will recreate the basic profile again when I next login.
yes, correct…
> You cannot do this when you are logged in,
are you sure? have you tried it? HINT: do NOT do as you told the OP to
and delete your .gnome2 as yourself…but, you might wanna try:
- open a terminal (as yourself)
- issue this command then press enter
mv /home/[you]/.gnome2 /home/[you]/.gnome2.saved
- use your normal procedure to close Gnome and login again
when you do, you will see that you successfully renamed your old
…gnome2 directory and the system built a new one, and ALL of your
customizations were lost…but, since you didn’t actually delete it,
it can be reinstated…
so, there is one no root powers required way to get done what you
suggested doing…
> so you have the choice of
> logging in as root or as yourself in runlevel 3.
no! there is no choice…do not lot into Gnome (or KDE, Xfce, etc) as
root…ever!
from the two choices you give, you should always choose the NOT logged
into the GUI as root way…
in this case, you actually have other choices because you may
also add the one i gave above and: delete the directory as root, while
in runlevel 3 (since that runlevel is not in X it doesn’t violate the
rule)
> I am not proposing you stay logged in as root permanently, only to do
> an admin task,
only doing an admin task is not an option…
Do NOT log into Gnome (etc) as root ever. not for one second.
> which for many users is easier using a gui than from the
> command line.
easier is not an option…
Do NOT log into Gnome (etc) as root ever.
unless you are looking for an easy way to kill your system!
> Once you have done whatever admin, I implied the user should log out
> and login as himself again.
no, the user should never log into a *nix GUI as root, ever.
> There are other ways of recreating the default menu, but this is
> probably the quickest and easiest.
then always elect to give advice here which is correct and does not
open even the possibility of doing it the wrong way (need i say which
way is wrong, again?)…
> If you want to make sure that you haven’t lost anything in the process,
> you could copy .gnome to .gnome.bak say and if it didn’t work, just
> restore the original.
yes, that is the correct way and in my opinion is also the only
correct advice to give…
advising a new user (this was the first post of csuRAMpage here) to
delete all his previous customizations is not a nice thing to do…
all that said, i’m not sure that the only way (or even the best way)
to fix the poster’s problem is to kill .gnome2…(for all i know the
menu items in Gnome are the same as the menu items in KDE [if you
switch from one to the other] so, maybe they are kept somewhere
outside of .gnome2, i do not know…do you know for sure that your
prescription will solve the posters problem, and not cause more damage
than it fixes?
–
platinum