#1
|
|||
|
|||
JDownloader Linux Unit/Service - But with GUI
I'm trying to run JDownloader on linux as a service so it can start with a certain user/group. But I wish not to run it headless. I would like the GUI to spawn on my desktop too! - Is there something I'm missing in this unit file?
Code:
[Unit] Description=JDownloader Service After=network.target [Service] Environment="DISPLAY=:0" Environment=JD_HOME=/opt/jdownloader Type=oneshot ExecStart=/usr/bin/java -jar /opt/jdownloader/JDownloader.jar RemainAfterExit=yes User=jdownloader Group=vault [Install] WantedBy=graphical.target I found this in the JDownloader logfile: Code:
java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable. Last edited by excidius; 04.05.2022 at 17:34. |
#2
|
||||
|
||||
@excidius:
That's not possible because at that stage there is no X11 environment available. You could create a shell script that first starts a decicated VNC server and then runs JDownloader in there Your desktop belongs to your user and you will have to tell root(systemd) where to look for the xauth files
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|