Correct use of data_dir variable in wine install function

This commit is contained in:
the-sane
2025-06-07 19:30:35 -04:00
parent 18829baa2b
commit 32d3f1bbd8

View File

@ -2360,8 +2360,8 @@ install_game_wine() {
# Copy the bundled RSI Launcher icon to the .local icons directory # Copy the bundled RSI Launcher icon to the .local icons directory
if [ -f "$rsi_icon" ]; then if [ -f "$rsi_icon" ]; then
mkdir -p "$HOME/.local/share/icons/hicolor/256x256/apps" && mkdir -p "$data_dir/icons/hicolor/256x256/apps" &&
cp "$rsi_icon" "$HOME/.local/share/icons/hicolor/256x256/apps" cp "$rsi_icon" "$data_dir/icons/hicolor/256x256/apps"
fi fi
# $HOME/Desktop/RSI Launcher.desktop # $HOME/Desktop/RSI Launcher.desktop
@ -2383,7 +2383,7 @@ Path=$(echo $install_dir | sed 's/ /\\\s/g')/dosdevices/c:/Program\sFiles/Robert
# Update the .desktop file database if the command is available # Update the .desktop file database if the command is available
if [ -x "$(command -v update-desktop-database)" ]; then if [ -x "$(command -v update-desktop-database)" ]; then
debug_print continue "Running update-desktop-database..." debug_print continue "Running update-desktop-database..."
update-desktop-database "$HOME/.local/share/applications" update-desktop-database "$data_dir/applications"
fi fi
# Check if the desktop files were created successfully # Check if the desktop files were created successfully