From faf5ee31ead2f55bfdcc6e75f8b741c0147d1f3d Mon Sep 17 00:00:00 2001 From: VHSgunzo Date: Tue, 2 Jan 2024 15:33:54 +0300 Subject: [PATCH] Fix prefix restore on first run with -init --- lux-wine | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lux-wine b/lux-wine index 466e978..cde4e5a 100755 --- a/lux-wine +++ b/lux-wine @@ -2528,9 +2528,10 @@ check_first_run() { update-desktop-database -q "$MENU_APPS_DIR" [ ! -L "$HOME/LuxWine" ] && \ try_ln "$LW_DIR" "$HOME/" - [ "$1" != "-init" ] && full_init + full_init touch "$LW_DIR/.firstrun" unset FIRST_RUN + [ "$1" != "-init" ]||exit fi }