Skip to content
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

Black screen on Fedora 36 #433

Closed
madjxatw opened this issue Aug 25, 2022 · 6 comments
Closed

Black screen on Fedora 36 #433

madjxatw opened this issue Aug 25, 2022 · 6 comments
Labels
bug This issue or pull request discusses a bug clue This issue or pull request contains valuable information

Comments

@madjxatw
Copy link

madjxatw commented Aug 25, 2022

I had ly installed on a Fedora 36 machine but got a black screen with the flickering underscore. Executing sudo ly on the text console has no problem. It may have the same cause as #211 but I have no idea how to fix a potential SELinux issue with display manager. Please advice if anybody has managed to fix this, and waiting for some progress of #310

@madjxatw
Copy link
Author

After executing the following commands and now I've managed to login.

ausearch -c 'ly' --raw | audit2allow -M my-ly
semodule -X 300 -i my-ly.pp

But there are still two major issues:

  • The first attempt of login (pressing Enter after password typed) always results in logout, and the second attempt succeeds.
  • systemctl restart ly.service does not work , the login interface doesn't show on tty2.

@AnErrupTion AnErrupTion added the bug This issue or pull request discusses a bug label Aug 28, 2022
@GeorgeBroughton
Copy link

GeorgeBroughton commented Sep 13, 2022

I'm having this problem too.
running as root will at least get me to a shell, but if i try starting sway for example, it's a no-go regardless of whether it runs as root, or whether or not i add an exception for it in SELinux.

On further inspection, i added some lines to my bashrc file to try debugging the situation.

/home/user/.bashrc

sway -d >/var/log/sway.log 2>&1

/var/log/sway.log

XDG_RUNTIME_DIR is not set in the environment. Aborting.

So, for shiggles, i exported the variable it wanted in my bashrc file:
/home/user/.bashrc

export XDG_RUNTIME_DIR='/run/user/1000'
sway -d >/var/log/sway.log 2>&1

worked that time!

Edited /etc/ly/wsetup.sh to have this line just before exec $@:

export XDG_RUNTIME_DIR="/run/user/$UID"

now works for all users

@AnErrupTion AnErrupTion added the clue This issue or pull request contains valuable information label Dec 7, 2022
@umop3plsdn
Copy link

i noticed the change that added $XDG_RUNTIME_DIR for ly but what actually creates that folder /run/user/$UID because i have to manually mkdir and chown it for my non root user

@jagjordi
Copy link
Contributor

I still have this problem in Fedora 37, using the latest master branch. Could some one help me troubleshooto it?

@Cavernosa
Copy link
Contributor

i noticed the change that added $XDG_RUNTIME_DIR for ly but what actually creates that folder /run/user/$UID because i have to manually mkdir and chown it for my non root user

(e)logind. From the pam module.

@jlucier
Copy link

jlucier commented Jan 16, 2023

same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request discusses a bug clue This issue or pull request contains valuable information
Projects
None yet
Development

No branches or pull requests

7 participants