diff --git a/pkg/cli/output.go b/pkg/cli/output.go index 5600e3a..64a6bc3 100644 --- a/pkg/cli/output.go +++ b/pkg/cli/output.go @@ -241,7 +241,9 @@ func PickDevice(devices []*model.Device, private bool) *model.Device { WithHeight(10), ), ) - form.Run() + if err := form.Run(); err != nil { + return nil + } return selected } diff --git a/scripts/pkg-postinstall.sh b/scripts/pkg-postinstall.sh index 26ca6c8..e56af8a 100644 --- a/scripts/pkg-postinstall.sh +++ b/scripts/pkg-postinstall.sh @@ -9,7 +9,8 @@ fi echo "LocalGo installed." echo "" -echo "To start as a system service:" -echo " sudo systemctl enable --now localgo" +echo "To start as a user service:" +echo " systemctl --user enable --now localgo" +echo " loginctl enable-linger \$USER # persist after logout" echo "" echo "Edit /etc/localgo/localgo.env to configure alias, port, etc."