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

Graphics Environment xhost issue on Fedora 34 #153

Closed
createyourpersonalaccount opened this issue Nov 18, 2021 · 3 comments
Closed

Graphics Environment xhost issue on Fedora 34 #153

createyourpersonalaccount opened this issue Nov 18, 2021 · 3 comments

Comments

@createyourpersonalaccount
Copy link

createyourpersonalaccount commented Nov 18, 2021

Hello,

I am trying out Alloy for the first time. I downloaded the 6.0.0 release (org.alloytools.alloy.dist.jar) from https://github.com/AlloyTools/org.alloytools.alloy/releases and I get this error.

[user@fedora bin]$ uname -a
Linux fedora 5.14.17-201.fc34.x86_64 #1 SMP Mon Nov 8 14:01:06 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[user@fedora bin]$ java -version
openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment 18.9 (build 11.0.13+8)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.13+8, mixed mode, sharing)
[user@fedora bin]$ java -jar org.alloytools.alloy.dist.jar 
Unable to start the graphical environment.
If you're on Mac OS X:
   Please make sure you are running as the current local user.
If you're on Linux or FreeBSD:
   Please make sure your X Windows is configured.
   You can verify this by typing "xhost"; it should not give an error message.
[user@fedora bin]$ xhost
access control enabled, only authorized clients can connect
SI:localuser:user

How can I fix it? Fedora 34 by default uses Wayland. Is this perhaps part of the issue?

@pkriens
Copy link
Contributor

pkriens commented Nov 18, 2021

This is a Linux problem, your xserver is not authorized for you. Are you running this from a shell?

I am closing this since it is not a problem with our software. You can ask for help on a Fedora forum or maybe someone on alloy.discourse.net can help.

@pkriens pkriens closed this as completed Nov 18, 2021
@createyourpersonalaccount
Copy link
Author

Yeah I'm running it from the shell as you can see in the code snippet above. I will ask people knowledgeable with Fedora and report back.

@createyourpersonalaccount
Copy link
Author

createyourpersonalaccount commented Nov 19, 2021

Indeed this is Fedora 34 related. I fixed it with the following steps:

$ dnf install java-latest-openjdk
$ alternatives --config java

In the alternatives command menu, I chose the latest openjdk. After that, I could run Alloy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants