Skip to content
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

Merged
merged 4 commits into from
Aug 19, 2012
Merged

Enables the -nox version to optionally run in the background #35

merged 4 commits into from
Aug 19, 2012

Conversation

ngaro
Copy link
Contributor

@ngaro ngaro commented Aug 18, 2012

I find it more useful to run it in the background, here's a patch in case I'm not the only one...

@@ -158,6 +160,20 @@ int main(int argc, char *argv[]) {
// Create Application
QString uid = misc::getUserIDString();
#ifdef DISABLE_GUI
bool becomedaemon = false;
Copy link
Contributor

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".

@cdumez
Copy link
Contributor

cdumez commented Aug 18, 2012

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.
@ngaro
Copy link
Contributor Author

ngaro commented Aug 19, 2012

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.

cdumez added a commit that referenced this pull request Aug 19, 2012
Enables the -nox version to optionally run in the background
@cdumez cdumez merged commit 9908935 into qbittorrent:master Aug 19, 2012
@cdumez
Copy link
Contributor

cdumez commented Aug 19, 2012

Thanks for the update. It is merged :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants