You are not logged in.

#1 2015-03-26 07:49:56

SirMyztiq
Member
Registered: 2015-03-24
Posts: 118

[Solved]Missing .xinitrc and .xsession in /etc/skel

Hello,

I recently reinstalled Arch because my first two installations didn't go 100% well. This time I stuck to the wiki and followed it. I have an SSD + HDD setup with LVM using two different physical volumes to allow for moderation down the line.

Everything went well. No errors and the weird error I was getting in my previous two installations is gone it seems. I'm in the process of installing a window manager and I'm going with openbox. I installed intel video drivers after installed xorg-server because my CPU comes with built in graphics card. I know this probably wasn't necessary but it seemed harmless enough.

So I installed xorg-server, xorg-server-utils xorg-apps xorg-xinit. After all that I installed openbox, openbox-themes, pcmanfm and other things it mentioned in the Wiki. Now I'm trying to configure my .xsession it seems to be missing from my /etc/skel/ as well as .xinitrc. I found where xinitrc was in /etc/X11... and copied it over. I know .xsession just sources .xinitrc but I couldn't find where it's default location is. I also wanted to add openbox to .xinitrc but there is tons of writing in there and in my previous installation it was basically default stuff.

So my question is, has something changed in the way these things were installed? Why would they be missing from my /etc/skel? I followed the Wiki to the letter on this one and those files were there in my previous two tries so it's a bit confusing.

Last edited by SirMyztiq (2015-03-27 07:15:50)

Offline

#2 2015-03-26 08:14:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved]Missing .xinitrc and .xsession in /etc/skel


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-03-26 10:48:59

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: [Solved]Missing .xinitrc and .xsession in /etc/skel

What changed is the removal of the templates .xinitrc and .xsession in /etc/skel directory.
Instead of /etc/skel/.xinitrc you can:

cp /etc/X11/xinit/xinitrc ~/.xinitrc

Take care to rename it .xinitrc and to edit it for these changes:

from

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

to

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?* ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

It's because 'xdg-user-dirs' has no '.sh' at the end.

And replace at the end of the file:

twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login

with

...
<everything you want running in background without the exec command>
...
exec openbox-session

If you use startx to launch the graphical environment, you don't need the .xsession file.

Last edited by berbae (2015-03-26 15:40:09)

Offline

#4 2015-03-26 16:05:20

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: [Solved]Missing .xinitrc and .xsession in /etc/skel

It's because 'xdg-user-dirs' has no '.sh' at the end.

Shouldn't this be filed as a bug? Or at least added to the wiki. (and now I know why my infinality settings aren't applied properly either...)

Last edited by Alad (2015-03-26 16:12:36)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#5 2015-03-26 16:22:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: [Solved]Missing .xinitrc and .xsession in /etc/skel

Alad wrote:

It's because 'xdg-user-dirs' has no '.sh' at the end.

Shouldn't this be filed as a bug? Or at least added to the wiki. (and now I know why my infinality settings aren't applied properly either...)

https://bugs.archlinux.org/task/41471

Offline

#6 2015-03-27 07:16:40

SirMyztiq
Member
Registered: 2015-03-24
Posts: 118

Re: [Solved]Missing .xinitrc and .xsession in /etc/skel

Thanks for the help guys!

Offline

Board footer

Powered by FluxBB