Skip to content

Commit 1f8d8fb

Browse files
committed
fix(init): notice on re-run when prefix exists, suppress wineboot stderr noise
1 parent 2a4a94b commit 1f8d8fb

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

lib/prefix.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ restore() {
7070

7171
# Initialise a fresh Wine prefix with all required dependencies.
7272
init() {
73-
print_info "Initializing Wine prefix..."
73+
if [ -d "${WINEPREFIX:-}" ]; then
74+
print_info "Prefix already exists at $WINEPREFIX — re-running dependencies non-destructively"
75+
print_info "(Use './setup full' to start completely fresh)"
76+
else
77+
print_info "Initializing Wine prefix..."
78+
fi
7479

7580
# Install system-level apt packages required by wine-gaming tooling.
7681
# icoutils: wrestool + icotool — extract and convert .exe icons for desktop shortcuts.
@@ -85,7 +90,7 @@ init() {
8590
mkdir -p "${HOME}/.config/winetricks"
8691
touch "${HOME}/.config/winetricks/enable-latest-version-check"
8792

88-
wineboot -u
93+
wineboot -u 2>/dev/null
8994

9095
print_info "Installing Wine dependencies via winetricks..."
9196
# vcrun*: Visual C++ runtimes | d3dcompiler/d3dx: DirectX | dxvk/vkd3d/d9vk: GPU layers

0 commit comments

Comments
 (0)