Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
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
Mikhail Tergoev
PortWINE
Commits
f435a96d
Commit
f435a96d
authored
Nov 01, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'alex2844-devel' into devel
parents
0b0868fd
0b437a41
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
12 deletions
+28
-12
add_in_steam.sh
data_from_portwine/scripts/add_in_steam.sh
+0
-1
functions_helper
data_from_portwine/scripts/functions_helper
+28
-11
No files found.
data_from_portwine/scripts/add_in_steam.sh
View file @
f435a96d
...
...
@@ -2,7 +2,6 @@
# GPL-3.0 license
# based on https://github.com/sonic2kk/steamtinkerlaunch/blob/master/steamtinkerlaunch
PROGNAME
=
"PortProton"
name_desktop_png
=
"
${
name_desktop
// /_
}
"
NOSTAPPNAME
=
"
$name_desktop
"
NOSTEXEPATH
=
"
\"
${
STEAM_SCRIPTS
}
/
${
name_desktop
}
.sh
\"
"
# NOSTSTDIR="\"${PATH_TO_GAME}\""
...
...
data_from_portwine/scripts/functions_helper
View file @
f435a96d
...
...
@@ -5805,6 +5805,27 @@ portwine_output_yad_shortcut () {
fi
if [[ "
${
PW_SHORTCUT_STEAM
}
" == "
TRUE
" ]] ; then
SLUF="
${
HOME
}
/.local/share/Steam/config/loginusers.vdf
"
if [[ -f "
${
SLUF
}
" ]]; then
SLUFUB=false
STUID64=""
while IFS= read -r line; do
if [[ "
${
line
}
" =~ ^[[:space:]]*
\"
([0-9]+)
\"
$
]]; then
STUIDCUR="
${
BASH_REMATCH
[1]
}
"
SLUFUB=true
elif [[ "
${
line
}
" == *'"
MostRecent
"'*'"
1
"' &&
${
SLUFUB
}
= true ]]; then
STUID64="
${
STUIDCUR
}
"
break
elif [[ "
${
line
}
" == "
}
" ]]; then
SLUFUB=false
fi
done < "
${
SLUF
}
"
if [ -n "
${
STUID64
}
" ]; then
STUID32=
$((
STUID64
-
76561197960265728
))
STUIDPATH="
${
HOME
}
/.local/share/Steam/userdata/
${
STUID32
}
"
if [[ -d "
${
STUIDPATH
}
" ]]; then
export SCPATH="
${
STUIDPATH
}
/config/shortcuts.vdf
"
if [[ -f "
${
SCPATH
}
" ]]; then
export STEAM_SCRIPTS="
${
PORT_WINE_PATH
}
/steam_scripts
"
create_new_dir "
${
STEAM_SCRIPTS
}
"
echo "
#!/usr/bin/env bash" > "${STEAM_SCRIPTS}/${name_desktop}.sh"
...
...
@@ -5815,18 +5836,10 @@ portwine_output_yad_shortcut () {
else
echo
"
\"
${
PORT_SCRIPTS_PATH
}
/start.sh
\"
\"
${
portwine_exe
}
\"
"
>>
"
${
STEAM_SCRIPTS
}
/
${
name_desktop
}
.sh"
fi
chmod
u+x
"
${
STEAM_SCRIPTS
}
/
${
name_desktop
}
.sh"
export
SCVDF
=
"shortcuts.vdf"
for
STUIDPATH
in
"
${
HOME
}
"
/.local/share/Steam/userdata/
*
/
;
do
if
[[
-d
"
$STUIDPATH
"
]]
;
then
create_new_dir
"
${
STUIDPATH
}
config/"
create_new_dir
"
${
STUIDPATH
}
config/grid"
export
SCPATH
=
"
${
STUIDPATH
}
config/
$SCVDF
"
export
SGGRIDDIR
=
"
${
STUIDPATH
}
config/grid"
# shellcheck source=/dev/null
create_new_dir
"
${
STUIDPATH
}
/config/"
create_new_dir
"
${
STUIDPATH
}
/config/grid"
export
SGGRIDDIR
=
"
${
STUIDPATH
}
/config/grid"
source
"
${
PORT_SCRIPTS_PATH
}
/add_in_steam.sh"
fi
done
if
[[
"
${
PW_SKIP_RESTART_STEAM
}
"
!=
1
]]
&&
pgrep
-i
steam &>/dev/null
;
then
if
yad_question
"
${
translations
[For adding shortcut to STEAM, needed restart.\\n\\nRestart STEAM now?]
}
"
;
then
pw_start_progress_bar_block
"
${
translations
[Restarting STEAM... Please wait.]
}
"
...
...
@@ -5842,6 +5855,10 @@ portwine_output_yad_shortcut () {
fi
unset
PW_SKIP_RESTART_STEAM
fi
fi
fi
fi
fi
export
PW_NEW_DESKTOP
=
"1"
...
...
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