View Single Post
Old 14th July 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by barti View Post
in the /root/.xinitrc file ?
/root/.xinitrc implies that you are logging into the system as root. This is not generally considered best practice. Users should log into their systems using non-root accounts using su(1) or sudo(8) only when needed. The point here is to minimize the possibility of doing irreparable damage from issuing incorrect commands.

As to the notation used earlier, ~/.xinitrc, the tilde, (~), expands to the home directory of the current user.

So, if you have logged in with a non-root account, /root/.xinitrc will have no effect since it customizes the X environment only for the root user.
Reply With Quote