You are not logged in.
So I got up the other morning to my jwm desktop being unresponsive. Perhaps subsequent to a pacman -Syu I did on Monday. The system has no login manager and I've always started X via startx and .xinitrc. There have been no recent changes to that file, btw. Here is the content of .xinitrc
#!/bin/sh
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
export EDITOR="$(if [[ -n $DISPLAY ]]; then echo 'nano'; else echo 'nano'; fi)"
remind -z /home/user/sys-maint.rem &
urxvtd -q -o -f &
exec /usr/bin/jwmI killed the unresponsive gui using ctl-alt-del (I have that specified in /etc/X11/xorg.conf.d/00-keyboard.conf) and tried restarting it by issuing startx. That got me a black, blank display. I looked at X logs but could not find any show-stopping errors, just a couple of warnings. I continued trying to determine where the problem might lie by running commands located in .xinitrc from the command line and they all seemed to run without problems.
Finally, I decided to just issue xinit /usr/bin/jwm. Lo and behold, that got me a working display with the jwm dm desktop I have configured in .jwmrc.
So I'm seeking suggestions for troubleshooting why startx no longer works (meaning I get a blank black display when I run that command). Input will be appreciated. Thanks
Offline
I looked at X logs but could not find any show-stopping errors, just a couple of warnings.
Share the full log(s) here, you might have missed something.
Does this work:
startx /usr/bin/jwmIf it does then check
stat ~/.xinitrcEDIT: and what's that EDITOR check about? And why are you using a bash test with a /bin/sh shebang? Arch links /bin/sh to bash by default but it's still irritating me.
Last edited by Head_on_a_Stick (2023-12-27 18:46:11)
Jin, Jîyan, Azadî
Offline
The shebang in xinitrc is meaningless, but the "export EDITOR" line can cause aneurisms when looking at it…
Start with
#!/bin/sh
# [[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
### like wtf, seriously # export EDITOR="$(if [[ -n $DISPLAY ]]; then echo 'nano'; else echo 'nano'; fi)"
# export EDITOR=nano
# remind -z /home/user/sys-maint.rem &
# urxvtd -q -o -f &
exec /usr/bin/jwmand run startx. If that works uncomment lines one by one until startx fails.
Offline
Even if you wanted EDITOR set conditionally:
[[ -n "$DISPLAY" ]] && export EDITOR=nano || export EDITOR=nanu-nanu"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Though in this particular case the test for $DISPLAY is kinda moot.
And for a GUI environment the correct line is oc
export EDITOR=sqriptor # ;POffline
You're all wrong:
~$ grep '^EDITOR' /etc/environment
EDITOR=ed
~$![]()
(Sorry OP)
Jin, Jîyan, Azadî
Offline