You are not logged in.

#1 2018-01-06 11:31:39

CenTrrikK
Member
From: Lund, Sweden
Registered: 2018-01-06
Posts: 3

[SOLVED]xinitrc ignores 'exec i3' and starts X

G'day everybody,
my time has finally come to register and ask a question instead of just lurking around. Thanks to everybody in advance, your help is appreciated!

Summary:
After installing Arch (LVM on LUKS) i dedcided to install i3 as tiling manager. I already did this on other machines and never had any issues. However, today I had one.

Issue:
After installing xorg, xorg-apps, xorg-xinit, xorg-server, xterm ,i3 (I tried both with and without i3-gapps) and adding exec i3 to my /etc/X11/xinit/xinitrc I copied it to ~/.xinitrc.
Afterwards I executed 'startx' but only X Windows was starting.

Troubleshooting I've done:
1. started the i3-config-wizard from X window.
2. executed startx as root
3. added a new user with the following command 'useradd -m -g users -G wheel,storage,power -s /bin/bash username'
4. read through quite a few posts about similar issues, but most of these guys just forgot to install xorg-xinit
5. reinstalled xorg-xinit




SOLUTION provided by slithery:
xinitrc does ignore all exec commands after the first one. I needed to delete all exec commands but the exec i3 part.


Cheers,
CenTrrikK

Last edited by CenTrrikK (2018-01-06 11:58:43)

Offline

#2 2018-01-06 11:32:13

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED]xinitrc ignores 'exec i3' and starts X

Welcome to the forums CenTrrikK smile

Please post your ~/.xinitrc

Last edited by Slithery (2018-01-06 11:33:19)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-01-06 11:44:10

CenTrrikK
Member
From: Lund, Sweden
Registered: 2018-01-06
Posts: 3

Re: [SOLVED]xinitrc ignores 'exec i3' and starts X

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# 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

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

Offline

#4 2018-01-06 11:47:17

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED]xinitrc ignores 'exec i3' and starts X

Nothing else is executed after the first exec command, which in this case is stating xterm. You need to remove the following lines....

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

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2018-01-06 11:56:16

CenTrrikK
Member
From: Lund, Sweden
Registered: 2018-01-06
Posts: 3

Re: [SOLVED]xinitrc ignores 'exec i3' and starts X

Wow, I can't believe how easy you fixed an issue, that I just couldn't solve. I literally changed nothing on this file execpt for the exec i3 line.
Thank you very much for moving my brokeness one step to the right. I hope you had and keep on having a great start into this day.

I'll mark the thread as closed.

Cheers,
Giuliano

Last edited by CenTrrikK (2018-01-06 11:57:00)

Offline

#6 2018-01-06 12:03:14

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED]xinitrc ignores 'exec i3' and starts X

Glad I could help.

For future reference this is covered in the wiki...
https://wiki.archlinux.org/index.php/Xinit#xinitrc


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2018-01-06 15:44:07

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [SOLVED]xinitrc ignores 'exec i3' and starts X

CenTrrikK wrote:

...
2. executed startx as root...

Don't do that.

Now that you have marked this as solved, I hope upon hope you are running startx as your regular user.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB