blob: d048a807b08dbb5672b91375d5caf5ba2acd822e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff --git a/lutris/util/wine/wine.py b/lutris/util/wine/wine.py
index f84584b..fa36d0c 100644
--- a/lutris/util/wine/wine.py
+++ b/lutris/util/wine/wine.py
@@ -19,7 +19,7 @@ WINE_PATHS = {
"winehq-devel": "/opt/wine-devel/bin/wine",
"winehq-staging": "/opt/wine-staging/bin/wine",
"wine-development": "/usr/lib/wine-development/wine",
- "system": "wine",
+ "system": "/etc/eselect/wine/bin/wine",
}
ESYNC_LIMIT_CHECK = os.environ.get("ESYNC_LIMIT_CHECK", "").lower()
@@ -273,7 +273,7 @@ def get_wine_version(wine_path="wine"):
return
if wine_path == "wine" and not system.find_executable("wine"):
return
- if os.path.isabs(wine_path):
+ if os.path.isabs(wine_path) and not os.path.islink(wine_path):
wine_stats = os.stat(wine_path)
if wine_stats.st_size < 2000:
# This version is a script, ignore it
|