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
933b4ee1
Commit
933b4ee1
authored
Dec 02, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed icon bug
parent
35a0ae91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
start.sh
data_from_portwine/scripts/start.sh
+13
-9
No files found.
data_from_portwine/scripts/start.sh
View file @
933b4ee1
...
...
@@ -700,28 +700,32 @@ else
IFS=
$'
\n
'
PW_GENERATE_BUTTONS="
--field=
${
translations
[Create shortcut...]
}
!
${
PW_GUI_ICON_PATH
}
/find_48.svg!
:FBTNR%@bash
-c \
"button_click --normal pw_find_exe
\"
%"
for dp in
"
${
PW_AMOUNT_NEW_DESKTOP
[@]
}
"
"
${
PW_AMOUNT_OLD_DESKTOP
[@]
}
"
; do
PW_NAME_D_ICON_48=
"
${
PW_ICON_PATH
[dp]%.png
}
_48"
PW_NAME_D_ICON_128=
"
${
PW_ICON_PATH
[dp]%.png
}
"
PW_NAME_D_ICON_NEW=
"
${
PW_NAME_D_ICON
[dp]//\
"/}"
resize_png
"
$PW_NAME_D_ICON_NEW
"
"
${
PW_NAME_D_ICON_48
//
"
${
PORT_WINE_PATH
}
/data/img/"
/
}
"
"48"
resize_png
"
$PW_NAME_D_ICON_NEW
"
"
${
PW_NAME_D_ICON_128
//
"
${
PORT_WINE_PATH
}
/data/img/"
/
}
"
"128"
PW_DESKTOP_FILES=
"
${
PW_ALL_DF
[
$dp
]
}
"
PW_DESKTOP_FILES_SHOW=
"
$PW_DESKTOP_FILES
"
if [[
$PW_DESKTOP_FILES
=~ [\(\)\!\
$\
%\&\
`
\'\"\>\<\\\|\;
]
]]
;
then
PW_DESKTOP_FILES_SHOW_REGEX
=(
\!
%
\$
\&
\<
)
PW_DESKTOP_FILES_REGEX
=(
\(
\)
\!
\$
%
\&
\`
\'
\"
\>
\<
\\
\|
\;
)
PW_ICON_PATH[dp]=
${
PW_ICON_PATH
[dp]%.png
}
PW_NAME_D_ICON_NEW=
"
${
PW_NAME_D_ICON
[dp]//\
"/}"
PW_NAME_D_ICON_128=
"
${
PW_ICON_PATH
[dp]
}
"
resize_png
"
$PW_NAME_D_ICON_NEW
"
"
${
PW_NAME_D_ICON_128
//
"
${
PORT_WINE_PATH
}
/data/img/"
/
}
"
"128"
if [[
$PW_DESKTOP_FILES
=~ [\!\%\
$\
&\<] ||
${
PW_ICON_PATH
[dp]
}
=~ [\!\%\
$\
&\<] ]] ; then
PW_DESKTOP_FILES_SHOW_REGEX=(\! % \
$
\& \<)
for i in
"
${
PW_DESKTOP_FILES_SHOW_REGEX
[@]
}
"
; do
PW_DESKTOP_FILES_SHOW=
"
${
PW_DESKTOP_FILES_SHOW
//
$i
/
}
"
PW_ICON_PATH[dp]=
"
${
PW_ICON_PATH
[dp]//
$i
/
}
"
done
fi
PW_NAME_D_ICON_48=
"
${
PW_ICON_PATH
[dp]
}
_48"
resize_png
"
$PW_NAME_D_ICON_NEW
"
"
${
PW_NAME_D_ICON_48
//
"
${
PORT_WINE_PATH
}
/data/img/"
/
}
"
"48"
if [[
$PW_DESKTOP_FILES
=~ [\(\)\!\
$\
%\&\
`
\'\"\>\<\\\|\;
]
]]
;
then
PW_DESKTOP_FILES_REGEX
=(
\(
\)
\!
\$
%
\&
\`
\'
\"
\>
\<
\\
\|
\;
)
count
=
1
for
j
in
"
${
PW_DESKTOP_FILES_REGEX
[@]
}
"
;
do
PW_DESKTOP_FILES
=
"
${
PW_DESKTOP_FILES
//
$j
/#+_
$count
#
}
"
((
count++
))
done
fi
PW_GENERATE_BUTTONS+
=
"--field=
$(
print_wrapped
"
${
PW_DESKTOP_FILES_SHOW
//
".desktop"
/
""
}
"
"25"
"..."
)
!
${
PW_NAME_D_ICON_48
}
.png!:FBTNR%@bash -c
\"
button_click --desktop "
${
PW_DESKTOP_FILES
// /#@_@#
}
"
\"
%"
done
...
...
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