JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04.05.2022, 17:19
excidius excidius is offline
Vacuum Cleaner
 
Join Date: Apr 2011
Posts: 17
Default 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.
.. But I assure you that is my correct display.

Last edited by excidius; 04.05.2022 at 17:34.
Reply With Quote
  #2  
Old 04.05.2022, 17:58
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

@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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 17:53.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.