Over that, I have 2 java applications running : one server without GUI and one JavaFx with GUI.
Both are launched with java -jar Name.jar.
In the bash file for launching the JavaFx application, there is the command “export DISPLAY=:0”
May I remember that was running well during several months…
Also, I tried to launch another JavaFx application and I got a different error message :
Authorization required, but no authorization protocol specified
Is there somebody who can explain the lauching of JavaFx (with GUI) applications with Dietpi ?
With Google, I found that the “Invalid MIT-MAGIC-COOKIE-1 key” error (object of this request) could be solved by deleting the .XAuthority file. But it seems that this file does not exist in the Dietpi installation ?
dietpi@DietPi:~$ xauth list
xauth: file /home/dietpi/.Xauthority does not exist
@Jappe
Yes, I run an app with GUI
Yes, I execute "“export DISPLAY=:0” before launching it
No, I don’t use SSH. I use a bash file with "java -jar Name of myAppli.jar
1°) I am using Putty only for “testing”
In production, the Java server (running on the Pi) launchs the Java Gui application by executing a shell command which executes a bash file containing “export DISPLAY=:0” and "java -jar nameofJavaFxapplication.jar)
2°) I reboot the system. I log as root and I execute
xauth generate :0 . trusted
xauth list
And I get the same list of 4 MIT-MAGIC-COOKIE-1
(see my picture sent before)
3°) I am (truly) not a specialist but I think the issue is not the way of connecting (all was running well for months before). From my (poor) understanding (built with Google), the issue is coming from these keys in the .Xauthority file ??? Is it possible to remove the .Xauthority file (depending of Google, a new file will be created at the next connection eliminating the “invalid MIT-MAGIC-COOKIE-1 key” error) ? What is the rule of these keys in the file ?