-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enables the -nox version to optionally run in the background #35
Conversation
@@ -158,6 +160,20 @@ int main(int argc, char *argv[]) { | |||
// Create Application | |||
QString uid = misc::getUserIDString(); | |||
#ifdef DISABLE_GUI | |||
bool becomedaemon = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use camel case: "becomeDaemon", or even better "shouldDaemonize".
This functionality would be a great addition to qBittorrent! Thanks a lot. I hope you can take feedback into consideration and resubmit the pull request :) |
Added some suggestions for the previous commit from Christophe Dumez and made sure the argument directly after -d is looked at.
By movin the daemonizing 'till later in the code, qBittorrent will print 1 line to STDOUT when compiled with --enable-debug ("Preferences constructor"). But regular users won't compile with --enable-debug and everyone who does use --enable-debug will want to get as much info as possible so i am leaving it like this. |
Enables the -nox version to optionally run in the background
Thanks for the update. It is merged :) |
I find it more useful to run it in the background, here's a patch in case I'm not the only one...