Fix synergy client.
* Add serverAddress option. * Evaluate the client daemon in foreground, otherwise upstart get the hand and tries to restart it. svn path=/nixos/trunk/; revision=18799
This commit is contained in:
parent
f4a6f9e84b
commit
05c23802bb
@ -32,6 +32,13 @@ in
|
|||||||
ourselfs to the server.
|
ourselfs to the server.
|
||||||
";
|
";
|
||||||
};
|
};
|
||||||
|
serverAddress = mkOption {
|
||||||
|
description = "
|
||||||
|
The server address is of the form: [hostname][:port]. The
|
||||||
|
hostname must be the address or hostname of the server. The
|
||||||
|
port overrides the default port, 24800.
|
||||||
|
";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
server = {
|
server = {
|
||||||
@ -79,7 +86,10 @@ in
|
|||||||
startOn = "started network-interfaces";
|
startOn = "started network-interfaces";
|
||||||
stopOn = "stopping network-interfaces";
|
stopOn = "stopping network-interfaces";
|
||||||
|
|
||||||
exec = "${pkgs.synergy}/bin/synergyc ${if cfgS.screenName == "" then "" else "-n ${cfgS.screenName}" }";
|
exec = ''${pkgs.synergy}/bin/synergyc \
|
||||||
|
-f ${if cfgC.screenName == "" then "" else "-n ${cfgC.screenName}"} \
|
||||||
|
${cfgC.serverAddress}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user