subhra74 / xdm

Powerfull download accelerator and video downloader
https://xtremedownloadmanager.com/
GNU General Public License v2.0
6.76k stars 1.1k forks source link

XDM should daemonize itselft to run background #149

Open souravdas142 opened 4 years ago

souravdas142 commented 4 years ago

Checklist

Description

Extreme download manager should run daemonizing mode. I want to start xdm on startu up without being pop up the main window. You have done a very good job but without cli options this tools lacks of tons of feature. It also can't pass download url from terminal. The best thing would be make this client server mode

subhra74 commented 4 years ago

That feature is already there. You can open terminal and type xdman -u <download_url> Also XDM runs on system startup by default, unless it is disabled explicitly in configuration.

souravdas142 commented 4 years ago

I am using Arch + i3 . Xdm is not run on system startup. Is there any config file i have to copy? does have any command line inter inface(not only for -u option. is there any other option also)? if I start xdman with i3, xdman gui also shows. I want not to show xdman gui on start up. Is there any command to hide xdman gui on startup? @subhra74

subhra74 commented 4 years ago

I do not have much experience with i3 but if below option is selected, a desktop file will be create in ~/.config/autostart folder, which should be launched as loon as user logs in to DE. You can check if XDM is already running or not by using ps -ef|grep xdman If you want to manually launch XDM in background then use xdman -m I will create a list of command line option that XDM supports but not getting enough time.

image

souravdas142 commented 4 years ago

Thanks a lot for your reply @subhra74 . Definately you should create a man page for cli usage or list them as you mention. It helps a lot. Take your time.

One more objection. Give some convient name for WINDOW_{CLASS,TITLE,STATE,INSTANCE}. This make window controlling from i3 more convient. When I check them from xprop it shows nothing appropriate and it's difficult to set it up in i3 config.

subhra74 commented 4 years ago

As off now the window is created in Java and it wraps all platform specific properties, so there is no easy way to do this. Will implement this feature using JNA but it will take more time to implement. So adding to backlog.

souravdas142 commented 4 years ago

ok, I understand. Thanks for adding this in "To do" list. Thanks a lot @subhra74

fivestones commented 3 years ago

That feature is already there. You can open terminal and type xdman -u <download_url> Also XDM runs on system startup by default, unless it is disabled explicitly in configuration.

How can you do this when running the java version from the command line? (e.g., I start XDM with java -jar xdman.jar but putting in java -jar xdman.jar -u <url> doesn't seem to do anything other than opening XDM.)

I'm wondering if this would be usable on a headless server.