mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 08:36:41 +01:00
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
1 changed files with 11 additions and 1 deletions
|
@ -32,6 +32,13 @@ in
|
|||
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 = {
|
||||
|
@ -79,7 +86,10 @@ in
|
|||
startOn = "started 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…
Reference in a new issue