Commit a72356cf authored by Vitaly Lipatov's avatar Vitaly Lipatov

20240223-eter3

- winetricks: add work workaround for guest user (eterbug #17026) (github #2203)
parent a81b9514
From 49995a0022b81bef51c1dc0f7e911a06f66ef28d Mon Sep 17 00:00:00 2001
From: Nurlan Usenov <suren@etersoft.ru>
Date: Tue, 27 Feb 2024 17:18:23 +0300
Subject: [PATCH] dotnet35sp1: Workaround for error if the username is "guest"
---
src/winetricks | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/src/winetricks b/src/winetricks
index 05b6683d8..012db2210 100755
--- a/src/winetricks
+++ b/src/winetricks
@@ -9480,9 +9480,32 @@ load_dotnet35sp1()
w_try_cd "${W_TMP}"
w_try ln -s "${W_CACHE}/${W_PACKAGE}/${file1}" .
+ # Workaround for "You do not have sufficient rights to run this application" error if the username is "guest".
+ if [ -n "${WINEUSERNAME}" ]; then
+ WINEUSERNAME_COPY="${WINEUSERNAME}"
+ else
+ WINEUSERNAME="${USERNAME}"
+ fi
+
+ if "$(echo "${WINEUSERNAME}" | grep -q -i "^guest$")"; then
+ TMP_USERNAME="$(basename "$(mktemp -u)")"
+ w_try ln -s "${W_DRIVE_C}/users/${WINEUSERNAME}" "${W_DRIVE_C}/users/${TMP_USERNAME}"
+ export WINEUSERNAME="${TMP_USERNAME}"
+ fi
+
WINEDLLOVERRIDES="ngen.exe=n" w_try_ms_installer "${WINE}" dotnetfx35.exe /lang:ENU ${W_OPT_UNATTENDED:+/q}
w_try rm dotnetfx35.exe
+ if [ -n "${TMP_USERNAME}" ]; then
+ w_try rm "${W_DRIVE_C}/users/${TMP_USERNAME}"
+ fi
+
+ if [ -z "${WINEUSERNAME_COPY}" ]; then
+ unset WINEUSERNAME
+ else
+ WINEUSERNAME="${WINEUSERNAME_COPY}"
+ fi
+
w_restore_winver
# Doesn't install any ngen.exe
%define oname winetricks
Name: wine-etersoft-winetricks
Version: 20240223
Release: eter2
Release: eter3
Summary: Work around common problems in Wine
......@@ -21,6 +21,7 @@ Patch10: 0001-Remove-unuseful-binary-arch-detection.patch
Patch11: 0002-add-w_expand_env32-and-w_expand_env64-and-using-them.patch
Patch12: 0003-Rename-w_try_regsvr-to-w_try_regsvr32.patch
Patch13: 0004-winetricks-added-cades-installation.patch
Patch14: 0005-workaround-for-guest-user.patch
BuildArch: noarch
......@@ -59,6 +60,7 @@ or tweak various Wine settings individually.
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
# fix req. Disable autoreq at all?
%__subst 's|fusermount|a= fusermount|' src/winetricks
......@@ -93,6 +95,9 @@ desktop-file-validate %buildroot%_desktopdir/%oname.desktop
#exclude %_datadir/appdata/%name.appdata.xml
%changelog
* Thu Mar 28 2024 Vitaly Lipatov <lav@altlinux.ru> 20240223-eter3
- winetricks: add work workaround for guest user (eterbug #17026) (github #2203)
* Fri Mar 22 2024 Vitaly Lipatov <lav@altlinux.ru> 20240223-eter2
- winetricks: added cades installation (eterbug #17080) (github #2197)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment