New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic startx doesn't work #1772
Comments
I gave this a shot, and it worked ok for me (although I'm running Debian, not Arch, so I don't have XDG_VTNR set and had to change the script to remove that test). It might be worth changing the |
After checking this out on my Funtoo installation, I cannot confirm any XDG_VTNR variable to exist. I suggest omitting it, since DISPLAY will be set as long as the X server is started (and a display is connected). |
Does |
I installed fish (2.1.1) on my Arch system (3.18.2-2-ARCH #1 SMP PREEMPT Fri Jan 9 07:37:51 CET 2015 x86_64 GNU/Linux) today and ran into the same issue. My ~/.config/fish/config.fish is identical to the one in the initial post. When I login on tty1, nothing happens, and eventually I fall back to a login prompt. If I comment out the I investigated a bit further by adding some debug echoes to /usr/bin/startx, and found that it was hanging on this command: I tried switching window managers in my ~/.xinitrc (from i3 to openbox) to rule out any window-manager-specific interactions. Same behavior. Here's what
I added I'm not sure how to debug any further. Please let me know if any additional information would be helpful. Edit:
|
It might be worth using something like |
Any update on what exactly is causing this? I'm still having this exact issue with 2.1.1 |
Possibly related to #367? |
Using |
I have the same issue on my machine (oh-my-fish and arch linux). |
I seem to have found the issue. Newer versions of # Start X at login
if status --is-login
if test -z "$DISPLAY" -a $XDG_VTNR = 1
exec startx -- -keeptty >~/.xorg.log ^&1
end
end You can use whichever file you want for the log; it doesn't have to be |
Nice work @mrak. I don't know of any differences offhand but there may be one. What causes the symptom - is it the redirection to xorg.log? |
@ridiculousfish I just verified that only # Start X at login
if status --is-login
if test -z "$DISPLAY" -a $XDG_VTNR = 1
exec startx -- -keeptty
end
end |
The forum thread I found that described this fix is in Arch Linux Forums / xorg-server 1.16 issues. The main gist is that X seems to lose track of which tty it's on while using fish in this way unless |
Thanks @mrak :) |
I can reproduce this, now the question is if this needs a change in fish, one in X or a workaround in documentation. |
Thank @mrak Effectivelly, it works ! |
@faho Does this still occur? Did @krader1961's tty PR affect this one way or the other? |
@floam: I can't reproduce this anymore with vanilla 2.3.0. I'm closing this as fixed there. If anyone still has this problem, please yell at me! |
For those who are using fish in interactive mode please use:
|
I appended the following to my ~/.config/fish/config.fish as suggested here https://wiki.archlinux.org/index.php/Start_X_at_login:
Unfortunately, this doesn't work. It just hangs and after a while I get kicked out and see the login prompt again. If I omit the 'exec'. It also hangs and I get to a shell after a while. If I manually enter 'startx', everything works fine. Is there a fix for that? I already saw Issue #1281 and that's not the problem. My '/usr/bin/startx' has the '#!/bin/sh' line as the very fist line.
The text was updated successfully, but these errors were encountered: