Merge lp:~ken-vandine/signon-ui/lp_1112680 into lp:signon-ui

Proposed by Ken VanDine
Status: Merged
Approved by: Alberto Mardegan
Approved revision: 77
Merged at revision: 77
Proposed branch: lp:~ken-vandine/signon-ui/lp_1112680
Merge into: lp:signon-ui
Diff against target: 23 lines (+11/-2)
1 file modified
src/main.cpp (+11/-2)
To merge this branch: bzr merge lp:~ken-vandine/signon-ui/lp_1112680
Reviewer Review Type Date Requested Status
Alberto Mardegan (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+146177@code.launchpad.net

Commit message

Default daemonTimeout to 30, which can be overridden with SSOUI_DAEMON_TIMEOUT (LP: #1112680)

Description of the change

Default daemonTimeout to 30, which can be overridden with SSOUI_DAEMON_TIMEOUT (LP: #1112680)

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alberto Mardegan (mardy) wrote :

Thanks (I wouldn't mind having even a shorter timeout, actually)!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/main.cpp'
--- src/main.cpp 2012-09-25 06:12:49 +0000
+++ src/main.cpp 2013-02-01 17:19:31 +0000
@@ -51,8 +51,17 @@
51 setLoggingLevel(value);51 setLoggingLevel(value);
52 }52 }
5353
54 int daemonTimeout =54 /* default daemonTimeout to 30 */
55 environment.value(QLatin1String("SSOUI_DAEMON_TIMEOUT")).toInt();55 int daemonTimeout = 30;
56
57 /* override daemonTimeout if SSOUI_DAEMON_TIMEOUT is set */
58 if (environment.contains(QLatin1String("SSOUI_DAEMON_TIMEOUT"))) {
59 bool isOk;
60 int value = environment.value(
61 QLatin1String("SSOUI_DAEMON_TIMEOUT")).toInt(&isOk);
62 if (isOk)
63 daemonTimeout = value;
64 }
5665
57 QSettings::setPath(QSettings::NativeFormat, QSettings::SystemScope,66 QSettings::setPath(QSettings::NativeFormat, QSettings::SystemScope,
58 QLatin1String("/etc"));67 QLatin1String("/etc"));

Subscribers

People subscribed via source and target branches

to all changes: