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
fe4327e3
Commit
fe4327e3
authored
Jun 24, 2025
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
silent create desktop files then START_FROM_STEAM = 1
parent
51f6bf56
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
functions_helper
data_from_portwine/scripts/functions_helper
+14
-4
start.sh
data_from_portwine/scripts/start.sh
+4
-1
No files found.
data_from_portwine/scripts/functions_helper
View file @
fe4327e3
...
@@ -6462,19 +6462,29 @@ portwine_create_shortcut () {
...
@@ -6462,19 +6462,29 @@ portwine_create_shortcut () {
}
}
portwine_output_yad_shortcut () {
portwine_output_yad_shortcut () {
if [[ "$PW_YAD_OUT" == "0" ]] ; then
if [[ $PW_YAD_OUT == "0" ]] || [[ $1 == "--silent" ]] ; then
if [[ $1 == "--silent" ]] ; then
[[ ! -e ${portwine_exe} ]] && return 1
pw_create_gui_png
unset name_desktop
PW_SHORTCUT_MENU="TRUE"
PW_SHORTCUT_DESKTOP="TRUE"
PW_SHORTCUT_STEAM="FALSE"
else
name_desktop=$(echo "$OUTPUT" | awk -F'
|
' '
{print
$1
}
' | sed -e "
s/
\`
//g
" -e "
s/
\"
//g
" -e "
s/
'//g" -e "s/\!//g")
name_desktop=$(echo "$OUTPUT" | awk -F'
|
' '
{print
$1
}
' | sed -e "
s/
\`
//g
" -e "
s/
\"
//g
" -e "
s/
'//g" -e "s/\!//g")
PW_SHORTCUT_MENU=$(echo "$OUTPUT" | awk -F'
|
' '
{
print
$2
}
')
PW_SHORTCUT_MENU=$(echo "$OUTPUT" | awk -F'
|
' '
{
print
$2
}
')
PW_SHORTCUT_DESKTOP=$(echo "$OUTPUT" | awk -F'
|
' '
{
print
$3
}
')
PW_SHORTCUT_DESKTOP=$(echo "$OUTPUT" | awk -F'
|
' '
{
print
$3
}
')
PW_SHORTCUT_STEAM=$(echo "$OUTPUT" | awk -F'
|
' '
{
print
$4
}
')
PW_SHORTCUT_STEAM=$(echo "$OUTPUT" | awk -F'
|
' '
{
print
$4
}
')
if [[ $PORTWINE_CHANGE_SHORTCUT != 1 ]] ; then
if [[ $PORTWINE_CHANGE_SHORTCUT != 1 ]] ; then
edit_user_conf_from_gui PW_SHORTCUT_MENU PW_SHORTCUT_DESKTOP PW_SHORTCUT_STEAM
edit_user_conf_from_gui PW_SHORTCUT_MENU PW_SHORTCUT_DESKTOP PW_SHORTCUT_STEAM
fi
fi
portwine_delete_shortcut
portwine_delete_shortcut
fi
[[ -z $name_desktop ]] && create_name_desktop && export name_desktop="$PW_NAME_DESKTOP_PROXY"
if [[ -z $name_desktop ]] ; then
create_name_desktop
export name_desktop="$PW_NAME_DESKTOP_PROXY"
fi
echo "[Desktop Entry]" > "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "[Desktop Entry]" > "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Name=${name_desktop}" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
echo "Name=${name_desktop}" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
...
...
data_from_portwine/scripts/start.sh
View file @
fe4327e3
...
@@ -411,7 +411,10 @@ EOF
...
@@ -411,7 +411,10 @@ EOF
while
read
-r
line
while
read
-r
line
do
do
export
portwine_exe
=
"
$PORT_WINE_PATH
/data/prefixes/
$PW_PREFIX_NAME
/
$line
"
export
portwine_exe
=
"
$PORT_WINE_PATH
/data/prefixes/
$PW_PREFIX_NAME
/
$line
"
portwine_create_shortcut
if
[[
$START_FROM_STEAM
==
"1"
]]
then
portwine_output_yad_shortcut
--silent
else
portwine_create_shortcut
fi
done
<
"
$PORT_WINE_PATH
/data/prefixes/
$PW_PREFIX_NAME
/.create_shortcut"
done
<
"
$PORT_WINE_PATH
/data/prefixes/
$PW_PREFIX_NAME
/.create_shortcut"
fi
fi
yad_info
"
${
translations
[Unpack is DONE for prefix
:]
}
<b>
\"
${
PW_PREFIX_NAME
}
\"
</b>."
yad_info
"
${
translations
[Unpack is DONE for prefix
:]
}
<b>
\"
${
PW_PREFIX_NAME
}
\"
</b>."
...
...
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