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
Vladislav
PortWINE
Commits
59e95078
Unverified
Commit
59e95078
authored
Jul 21, 2024
by
Vladislav
Committed by
Boris Yumankulov
Jul 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed for Icon File Name
parent
2633d813
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
12 deletions
+20
-12
functions_helper
data_from_portwine/scripts/functions_helper
+19
-11
start.sh
data_from_portwine/scripts/start.sh
+1
-1
No files found.
data_from_portwine/scripts/functions_helper
View file @
59e95078
...
...
@@ -1015,7 +1015,8 @@ stop_portwine () {
for
link_file
in
"
${
LINKS
[@]
}
"
;
do
if
timeout
3 exiftool
"
$link_file
"
2>/dev/null
>
"
${
PW_TMPFS_PATH
}
/exiftool.tmp"
;
then
prefix_name
=
$(
echo
"
$link_file
"
|
awk
-F
"/prefixes/"
'{print $2}'
|
awk
-F
"/"
'{print $1}'
)
if
grep
-i
"Icon File Name"
"
${
PW_TMPFS_PATH
}
/exiftool.tmp"
&>/dev/null
;
then
if
fix_icon_name
=
$(
grep
-i
"Icon File Name"
"
${
PW_TMPFS_PATH
}
/exiftool.tmp"
2>/dev/null
)
\
&&
[[
"
${
fix_icon_name
//*.exe/true
}
"
==
"true"
]]
;
then
link_drive
=
$(
sed
-n
's/^Icon File Name\s*:\s*//p'
"
${
PW_TMPFS_PATH
}
/exiftool.tmp"
|
cut
-d
:
-f1
|
awk
'{print tolower($0)}'
)
link_path
=
$(
sed
-n
's/^Icon File Name\s*:\s*//p'
"
${
PW_TMPFS_PATH
}
/exiftool.tmp"
|
sed
's|%ProgramFiles(x86)%|C:\\Program Files (x86)|gi;s|%ProgramFiles%|C:\\Program Files|gi'
|
sed
"s|^.|
${
PORT_WINE_PATH
}
/data/prefixes/
$prefix_name
/dosdevices/
$link_drive
|g"
|
sed
's/\\/\//g'
)
else
...
...
@@ -1027,9 +1028,10 @@ stop_portwine () {
else
if
!
command
-v
exiftool &>/dev/null
;
then
print_warning
"use portable exiftool"
prefix_name
=
$(
echo
"
$link_file
"
|
awk
-F
"/prefixes/"
'{print $2}'
|
awk
-F
"/"
'{print $1}'
)
env
PERL5LIB
=
"
${
PW_PLUGINS_PATH
}
/portable/lib/perl5"
"
${
PW_PLUGINS_PATH
}
/portable/bin/exiftool"
"
$link_file
"
2>/dev/null
>
"
${
PW_TMPFS_PATH
}
/exiftool.tmp"
if
grep
-i
"Icon File Name"
"
${
PW_TMPFS_PATH
}
/exiftool.tmp"
&>/dev/null
;
then
prefix_name
=
$(
echo
"
$link_file
"
|
awk
-F
"/prefixes/"
'{print $2}'
|
awk
-F
"/"
'{print $1}'
)
if
fix_icon_name
=
$(
grep
-i
"Icon File Name"
"
${
PW_TMPFS_PATH
}
/exiftool.tmp"
2>/dev/null
)
\
&&
[[
"
${
fix_icon_name
//*.exe/true
}
"
==
"true"
]]
;
then
link_drive
=
$(
sed
-n
's/^Icon File Name\s*:\s*//p'
"
${
PW_TMPFS_PATH
}
/exiftool.tmp"
|
cut
-d
:
-f1
|
awk
'{print tolower($0)}'
)
link_path
=
$(
sed
-n
's/^Icon File Name\s*:\s*//p'
"
${
PW_TMPFS_PATH
}
/exiftool.tmp"
|
sed
's|%ProgramFiles(x86)%|C:\\Program Files (x86)|gi;s|%ProgramFiles%|C:\\Program Files|gi'
|
sed
"s|^.|
${
PORT_WINE_PATH
}
/data/prefixes/
$prefix_name
/dosdevices/
$link_drive
|g"
|
sed
's/\\/\//g'
)
else
...
...
@@ -1865,21 +1867,27 @@ pw_duplicate () {
IFS
=
"
$orig_IFS
"
old_IFS
=
$IFS
&&
IFS
=
"%"
PW_DUPLICATE_GUI
=
"
$(
"
${
pw_yad
}
"
--width
=
"
${
PW_DUPLICATE_SIZE_W
}
"
--height
=
"
${
PW_DUPLICATE_SIZE_H
}
"
\
"
${
pw_yad
}
"
--width
=
"
${
PW_DUPLICATE_SIZE_W
}
"
--height
=
"
${
PW_DUPLICATE_SIZE_H
}
"
\
--columns
=
"
$MAIN_GUI_COLUMNS
"
--homogeneous-column
--form
\
--gui-type-layout
=
${
MAIN_MENU_GUI_TYPE_LAYOUT
}
\
--window-icon
=
"
$PW_GUI_ICON_PATH
/portproton.svg"
\
--title
"PortProton-
${
install_ver
}
(
${
scripts_install_ver
}${
BRANCH_VERSION
}
)"
\
--align-buttons
--scroll
--separator
=
" "
${
PW_GENERATE_BUTTONS_D
}
2>/dev/null
)
"
--align-buttons
--scroll
--separator
=
" "
${
PW_GENERATE_BUTTONS_D
}
\
--button
=
"
$(
gettext
"MAIN MENU"
)
"
!
"
$PW_GUI_ICON_PATH
/
$BUTTON_SIZE
.png"
:0 2>/dev/null
IFS
=
"
$orig_IFS
"
YAD_STATUS
=
"
$?
"
if
[[
"
$YAD_STATUS
"
==
"1"
||
"
$YAD_STATUS
"
==
"252"
]]
;
then
exit
0
;
fi
pw_yad_set_form
if
[[
"
$PW_YAD_SET
"
==
*
.desktop
]]
;
then
run_desktop_b_click
fi
[[
!
-z
"
$PW_YAD_SET
"
]]
&&
case
"
$PW_YAD_SET
"
in
*
.desktop
)
run_desktop_b_click
;;
pw_duplicate
)
export
SKIP_CHECK_UPDATES
=
1
/usr/bin/env bash
-c
${
pw_full_command_line
[*]
}
&
print_info
"Restarting..."
exit
0
;;
esac
}
pw_create_unique_exe
()
{
...
...
data_from_portwine/scripts/start.sh
View file @
59e95078
...
...
@@ -630,7 +630,7 @@ else
fi
PW_GENERATE_BUTTONS
=
"--field=
$(
gettext
"Create shortcut..."
)
!
${
PW_GUI_ICON_PATH
}
/find_48.svg!:FBTN%@bash -c
\"
button_click pw_find_exe
\"
%"
if
grep
-i
"[Desktop Entry]"
"
${
PORT_WINE_PATH
}
/duplicate"
/
*
&>/dev/null
;
then
PW_GENERATE_BUTTONS+
=
"--field=
$(
gettext
"Duplicates"
)
!
${
PW_GUI_ICON_PATH
}
/
find_48
.svg!:FBTN%@bash -c
\"
button_click pw_duplicate
\"
%"
PW_GENERATE_BUTTONS+
=
"--field=
$(
gettext
"Duplicates"
)
!
${
PW_GUI_ICON_PATH
}
/
duplicate
.svg!:FBTN%@bash -c
\"
button_click pw_duplicate
\"
%"
fi
for
PW_DESKTOP_FILES
in
${
PW_ALL_DF
}
;
do
PW_NAME_D_ICON
=
"
$(
grep
Icon
"
${
PORT_WINE_PATH
}
/
${
PW_DESKTOP_FILES
}
"
|
awk
-F
=
'{print $2}'
)
"
...
...
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