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
aee66939
Commit
aee66939
authored
Mar 20, 2025
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed create_name_png
parent
ddf4c8b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
functions_helper
data_from_portwine/scripts/functions_helper
+10
-7
No files found.
data_from_portwine/scripts/functions_helper
View file @
aee66939
...
@@ -2950,13 +2950,6 @@ pw_create_gui_png () {
...
@@ -2950,13 +2950,6 @@ pw_create_gui_png () {
export
name_desktop_png
=
"bat"
export
name_desktop_png
=
"bat"
return
0
return
0
fi
fi
name_desktop_png
=
"
${
PORTPROTON_NAME
// /_
}
"
if
[[
$name_desktop_png
=
~
[
\!\%\$\&\<
]
]]
;
then
local
ICON_NAME_REGEX
=(
\!
%
\$
\&
\<
)
for
i
in
"
${
ICON_NAME_REGEX
[@]
}
"
;
do
name_desktop_png
=
"
${
name_desktop_png
//
$i
/
}
"
done
fi
fi
fi
if
[[
-z
"
$PORTPROTON_NAME
"
]]
\
if
[[
-z
"
$PORTPROTON_NAME
"
]]
\
...
@@ -2998,6 +2991,16 @@ pw_create_gui_png () {
...
@@ -2998,6 +2991,16 @@ pw_create_gui_png () {
edit_db_from_gui PORTPROTON_NAME FILE_DESCRIPTION
edit_db_from_gui PORTPROTON_NAME FILE_DESCRIPTION
fi
fi
if
[[
-z
$name_desktop_png
]]
;
then
name_desktop_png
=
"
${
PORTPROTON_NAME
// /_
}
"
if
[[
$name_desktop_png
=
~
[
\!\%\$\&\<
]
]]
;
then
local
ICON_NAME_REGEX
=(
\!
%
\$
\&
\<
)
for
i
in
"
${
ICON_NAME_REGEX
[@]
}
"
;
do
name_desktop_png
=
"
${
name_desktop_png
//
$i
/
}
"
done
fi
fi
resize_png
"
$portwine_exe
"
"
${
PORTPROTON_NAME
}
"
"48"
"128"
resize_png
"
$portwine_exe
"
"
${
PORTPROTON_NAME
}
"
"48"
"128"
PORTPROTON_NAME_PNG
=
"
${
PORTPROTON_NAME
// /_
}
"
PORTPROTON_NAME_PNG
=
"
${
PORTPROTON_NAME
// /_
}
"
...
...
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