use login shell for reexec in nixos-edit init
This commit is contained in:
parent
315c4e3d05
commit
0f2dd8a3c1
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ pkgs.writeShellScriptBin "nixos-edit" ''
|
|||
echo please make sure xorg is running
|
||||
echo -n enter when ready
|
||||
read
|
||||
exec sudo -u tudbut nixos-edit init || exit 1
|
||||
exec sudo -iu tudbut nixos-edit init || exit 1
|
||||
fi
|
||||
if [ "$DISPLAY" = "" ] ; then
|
||||
export DISPLAY=:0
|
||||
|
|
Loading…
Add table
Reference in a new issue