Spaces:
Configuration error
Configuration error
VHSgunzo commited on
Commit ·
2b428f5
1
Parent(s): e2cc3e7
Fix removing shortcuts for broken apps
Browse filesFiles changed (2)
- lux-wine+37-4
- lwrap/PKGBUILD+1-1
194 unmodified lines1951961971981992002012001 unmodified lines2203220422052206220722082209221022112212221322142215221622174624 unmodified lines6842684368446845684668476848194 unmodified lines[ ! -n "$BATTLEYE" ] && export BATTLEYE=1[ ! -n "$EAC" ] && export EAC=1[ ! -n "$EXE_LWDB" ] && export EXE_LWDB=1# [ ! -n "$CHECK_LW_APPS" ] && export CHECK_LW_APPS=1[ ! -n "$MUST_HAVE_DLL" ] && export MUST_HAVE_DLL='Disabled'[ ! -n "$VKBASALT_FFX_CAS" ] && export VKBASALT_FFX_CAS="0.6"export DXVK_GIT_RELEASE_URL="https://api.github.com/repos/doitsujin/dxvk/releases"2001 unmodified linesif [ "$CHECK_LW_APPS" == 1 ]thenIFS=$'\n'LW_APPS_EXES=($(grep -Eiom1 " [\"']/.*\.exe| [\"']/.*\.bat" -r \"$LW_APPS_DIR" 2>/dev/null|sed "s|.*\.desktop: ['\"]||g"))if [ -n "$LW_APPS_EXES" ]thenfor exe in "${LW_APPS_EXES[@]}"do [ ! -f "$(ipath "$exe"|head -1)" ] && \NO_YAD=1 RM_ALL_EXE_APPS=1 lu_rmapp "$exe"donefifi)4624 unmodified linesthen(sleep 1 2>/dev/nullcheck_traywhile [[ -n "$TRAY_PID" && -d "/proc/$TRAY_PID" ]]do check_shrtcheck_traysleep 2 2>/dev/null194 unmodified lines1951961971981992002012001 unmodified lines2203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922504624 unmodified lines6875687668776878687968806881194 unmodified lines[ ! -n "$BATTLEYE" ] && export BATTLEYE=1[ ! -n "$EAC" ] && export EAC=1[ ! -n "$EXE_LWDB" ] && export EXE_LWDB=1[ ! -n "$CHECK_LW_APPS" ] && export CHECK_LW_APPS=1[ ! -n "$MUST_HAVE_DLL" ] && export MUST_HAVE_DLL='Disabled'[ ! -n "$VKBASALT_FFX_CAS" ] && export VKBASALT_FFX_CAS="0.6"export DXVK_GIT_RELEASE_URL="https://api.github.com/repos/doitsujin/dxvk/releases"2001 unmodified linesif [ "$CHECK_LW_APPS" == 1 ]thenIFS=$'\n'LW_APPS_RM=()SKIPAPPRMFL="$LW_DEF_TMP/skipcheckshrt.$LWPID"LW_APPS_RM_SKIP=($([ -f "$SKIPAPPRMFL" ] && cat "$SKIPAPPRMFL" 2>/dev/null))LW_APPS_EXES=($(grep -Eiom1 " [\"']/.*\.exe| [\"']/.*\.bat" -r \"$LW_APPS_DIR" 2>/dev/null|sed "s|.*\.desktop: ['\"]||g"))if [ -n "$LW_APPS_EXES" ]thenfor exe in "${LW_APPS_EXES[@]}"doAPPIPATH="$(ipath "$exe"|head -1)"if [[ ! -f "$APPIPATH" && ! "${LW_APPS_RM_SKIP[@]}" =~ "$exe" ]]then LW_APPS_RM+=("$exe")elif [[ -f "$APPIPATH" && "${LW_APPS_RM_SKIP[@]}" =~ "$exe" ]]thensed -i "s|$exe||g;/^$/d" "$SKIPAPPRMFL" 2>/dev/null && \LW_APPS_RM_SKIP=($([ -f "$SKIPAPPRMFL" ] && cat "$SKIPAPPRMFL" 2>/dev/null))fidonefiif [ -n "$LW_APPS_RM" ]thenif [ "${#LW_APPS_RM[@]}" -gt 1 ]thenif print_question "Lux Wine Shortcuts Remover" \"Several broken apps have been found:\n\n$(for app in "${LW_APPS_RM[@]}";do echo "$app";done)\n\nDo you want to remove the shortcuts for these apps?"thenfor app in "${LW_APPS_RM[@]}"do[[ -d "/proc/$LWPID" ]] && \NO_YAD=1 RM_ALL_EXE_APPS=1 lu_rmapp "$app"doneelsetry_mkdir "$LW_DEF_TMP"for app in "${LW_APPS_RM[@]}"do echo "$app" >> "$SKIPAPPRMFL"donefielse[[ -d "/proc/$LWPID" ]] && \NO_YAD=1 RM_ALL_EXE_APPS=1 lu_rmapp "$LW_APPS_RM"fififi)4624 unmodified linesthen(sleep 1 2>/dev/nullcheck_traywhile [[ -n "$TRAY_PID" && -d "/proc/$TRAY_PID" && -d "/proc/$LWPID" ]]do check_shrtcheck_traysleep 2 2>/dev/null
1 unmodified line23456781 unmodified linepkgname='lwrap'pkgver='0.80.7'pkgrel='6'pkgdesc='Lux Wine wrapper for RunImage container'arch=('x86_64')url='https://github.com/VHSgunzo/lux-wine'1 unmodified line23456781 unmodified linepkgname='lwrap'pkgver='0.80.7'pkgrel='7'pkgdesc='Lux Wine wrapper for RunImage container'arch=('x86_64')url='https://github.com/VHSgunzo/lux-wine'
lux-wine+37-4
lwrap/PKGBUILD+1-1