'Linux Unit/Service - But with GUI - JDownloader
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?
[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:
java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
.. But I assure you that is my correct display.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
