Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE-old
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
Vladislav
PortWINE-old
Commits
95f51b9f
Unverified
Commit
95f51b9f
authored
Jul 19, 2024
by
Boris Yumankulov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed auto-mounting of the disk on which PortProton is located
parent
53238e06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
functions_helper
data_from_portwine/scripts/functions_helper
+5
-3
No files found.
data_from_portwine/scripts/functions_helper
View file @
95f51b9f
...
...
@@ -1259,15 +1259,17 @@ check_dirs_and_files_in_pfx () {
then
try_force_link_dir
"
${
WINEPREFIX
}
/drive_c/users/steamuser/AppData/Local"
"
${
WINEPREFIX
}
/drive_c/users/steamuser/Local Settings/Application Data"
fi
find
"
${
WINEPREFIX
}
/dosdevices"
-xtype
l
-maxdepth
1 2>/dev/null
-exec
rm
{}
\;
rm
-f
"
${
WINEPREFIX
}
/dosdevices/"
*
::
DRIVES
=(
d e f g i j k l m n o p q r s t u v w x y
)
DEF_MOUNT_DIRS
=(
'/media'
"/media/
$USER
"
'/mnt'
'/run/media'
"/run/media/
$USER
"
)
MOUNT_DIRS
=(
$(
find
"
${
DEF_MOUNT_DIRS
[@]
}
"
-maxdepth
1
-type
d 2>/dev/null |
sort
-u
)
)
rm
-fv
"
${
WINEPREFIX
}
/dosdevices/"
*
::
for
drive
in
"
${
DRIVES
[@]
}
"
;
do
rm
-fv
"
${
WINEPREFIX
}
/dosdevices/
${
drive
}
:"
2>/dev/null
done
for
drive_dir
in
"
${
MOUNT_DIRS
[@]
}
"
;
do
if
[[
!
"
${
DEF_MOUNT_DIRS
[@]
}
"
=
~
"
$drive_dir
"
]]
\
&&
!
realpath
"
${
WINEPREFIX
}
/dosdevices"
/
*
: |
grep
"
$drive_dir
"
&>/dev/null
;
then
&&
!
realpath
"
${
WINEPREFIX
}
/dosdevices"
/
*
: |
grep
-w
"
$drive_dir
$
"
&>/dev/null
;
then
drive_num
=
0
while
[[
"
$drive_num
"
-lt
"
${#
DRIVES
[@]
}
"
]]
;
do
drive_path
=
"
${
WINEPREFIX
}
/dosdevices/
${
DRIVES
[
$drive_num
]
}
:"
...
...
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