diff options
author | makefu <github@syntax-fehler.de> | 2018-11-05 18:20:42 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-11-05 18:20:42 +0100 |
commit | 254e9e62b95951cecadd2b4800c03ef96f95b3c0 (patch) | |
tree | 6892ca816d01eb712b80af9dbd79cc6690f21752 /lass/3modules | |
parent | 8b57f04ff84b53742ef6a8a9677560745075ffb1 (diff) | |
parent | 100ca928ad483471d61b36bd9e977e34441d404b (diff) |
Merge remote-tracking branch 'lassul.us/master'
Diffstat (limited to 'lass/3modules')
-rw-r--r-- | lass/3modules/xjail.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lass/3modules/xjail.nix b/lass/3modules/xjail.nix index 5b450ed42..974e11c6e 100644 --- a/lass/3modules/xjail.nix +++ b/lass/3modules/xjail.nix @@ -120,10 +120,13 @@ with import <stockholm/lib>; ${pkgs.coreutils}/bin/kill $WM_PID ${pkgs.coreutils}/bin/kill $XEPHYR_PID ''; + # TODO fix xephyr which doesn't honor resizes anymore sudo_ = pkgs.writeDash "${cfg.name}-sudo" (if cfg.vglrun then '' /var/run/wrappers/bin/sudo -u ${cfg.name} -i ${vglrun_} "$@" '' else '' - /var/run/wrappers/bin/sudo -u ${cfg.name} -i env DISPLAY=:${cfg.display} ${cfg.script} "$@" + #/var/run/wrappers/bin/sudo -u ${cfg.name} -i env DISPLAY=:${cfg.display} ${cfg.script} "$@" + /var/run/wrappers/bin/sudo -u ${cfg.name} -i ${cfg.script} "$@" + ''); vglrun_ = pkgs.writeDash "${cfg.name}-vglrun" '' DISPLAY=:${cfg.display} ${pkgs.virtualgl}/bin/vglrun ${cfg.extraVglrunArgs} ${cfg.script} "$@" @@ -163,7 +166,7 @@ with import <stockholm/lib>; lass.xjail-bins = mapAttrs' (name: cfg: nameValuePair name (pkgs.writeScriptBin cfg.name '' - ${scripts.${name}.existing} "$@" + ${scripts.${name}.sudo} "$@" '') ) config.lass.xjail; }; |