Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
winetricks
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
winetricks
Commits
a72356cf
Commit
a72356cf
authored
Mar 28, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20240223-eter3
- winetricks: add work workaround for guest user (eterbug #17026) (github #2203)
parent
a81b9514
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
1 deletion
+52
-1
0005-workaround-for-guest-user.patch
patches/0005-workaround-for-guest-user.patch
+46
-0
winetricks.spec
winetricks.spec
+6
-1
No files found.
patches/0005-workaround-for-guest-user.patch
0 → 100644
View file @
a72356cf
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
winetricks.spec
View file @
a72356cf
%define oname winetricks
Name: wine-etersoft-winetricks
Version: 20240223
Release: eter
2
Release: eter
3
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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment