I see what's going on.... ::facepalm::
If you take a look at your first screenshot in post #27
above - the file you have open is
So what happened there is:
Because you used
when you copied the
- you were acting as root, so it copied the file to the root users home directory at
In my first post, I recommended copying the file using
and I deliberately made no mention
because it was absolutely not necessary
to do so.
muddied the waters by recommending using
and I responded with a long post on why using
was a terrible idea in this instance. (and it turned out to be a slightly worse idea than I actually thought it was!)
With your later post, when you said you couldn't find
, I just assumed you didn't know that you were dealing with a hidden config file.
However, I'd actually forgotten that if you use the
shortcut when logged in as root, or using
, it expands to
. So if you used @wizardfromoz
suggestion, then yes - it all makes sense now. You copied the .xinitrc file as root to roots home at
, NOT to your personal directory. Which is why it was not there!
And when you used
sudo nano ~/.xinitrc
you ended up opening the copy of
that you accidentally copied to
! Ha ha!
So I will say it one, hopefully final time:
Whilst logged in as a normal user NOT ROOT
and definitely NOT
- copy the fallack
file to your
home directory, as I originally recommended.
cp /etc/X11/xinit/xinitrc ~/.xinitrc
And then make your edits.
- Alternatively, because you've already made the changes to the version in roots home directory - you could use
to move the file from
and then use
to give you ownership of the file.
sudo mv /root/.xinitrc /home/alex/.xinitrc
sudo chown alex:alex /home/alex/.xinitrc
That will move your edited
Pick one of those two solutions and that should fix things!