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
36ed8768
Commit
36ed8768
authored
Aug 11, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added icons for msi, bat, reg and exe
parent
e5f96d11
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
9 deletions
+26
-9
bat.png
data_from_portwine/img/bat.png
+0
-0
exe.png
data_from_portwine/img/exe.png
+0
-0
msi.png
data_from_portwine/img/msi.png
+0
-0
reg.png
data_from_portwine/img/reg.png
+0
-0
functions_helper
data_from_portwine/scripts/functions_helper
+22
-6
start.sh
data_from_portwine/scripts/start.sh
+4
-3
No files found.
data_from_portwine/img/bat.png
0 → 100644
View file @
36ed8768
5.71 KB
data_from_portwine/img/exe.png
0 → 100644
View file @
36ed8768
5.67 KB
data_from_portwine/img/msi.png
0 → 100644
View file @
36ed8768
6.1 KB
data_from_portwine/img/reg.png
0 → 100644
View file @
36ed8768
5.96 KB
data_from_portwine/scripts/functions_helper
View file @
36ed8768
...
...
@@ -1682,8 +1682,18 @@ edit_user_conf_from_gui () {
}
pw_create_gui_png
()
{
if
echo
"
$(
basename
"
${
portwine_exe
}
"
)
"
|
grep
-i
"setup
\|
install"
&>/dev/null
;
then
basename_portwine_exe
=
"
$(
basename
"
${
portwine_exe
}
"
)
"
if
echo
"
$basename_portwine_exe
"
|
grep
-i
"setup
\|
install
\|
.msi"
&>/dev/null
;
then
export
PW_ICON_FOR_YAD
=
"
${
PORT_WINE_PATH
}
/data/img/setup.png"
export
name_desktop_png
=
"setup"
return
0
elif
echo
"
$basename_portwine_exe
"
|
grep
-i
".reg"
&>/dev/null
;
then
export
PW_ICON_FOR_YAD
=
"
${
PORT_WINE_PATH
}
/data/img/reg.png"
export
name_desktop_png
=
"reg"
return
0
elif
echo
"
$basename_portwine_exe
"
|
grep
-i
".bat"
&>/dev/null
;
then
export
PW_ICON_FOR_YAD
=
"
${
PORT_WINE_PATH
}
/data/img/bat.png"
export
name_desktop_png
=
"bat"
return
0
fi
...
...
@@ -4666,15 +4676,21 @@ portwine_create_shortcut () {
export
GDK_BACKEND
=
"x11"
pw_stop_progress_bar
[[
!
-e
${
portwine_exe
}
]]
&&
return
1
unset
PORTPROTON_NAME
unset
PORTPROTON_NAME
name_desktop_png
pw_create_gui_png
[[
-z
"
${
PW_SHORTCUT_MENU
}
"
]]
&&
PW_SHORTCUT_MENU
=
"TRUE"
[[
-z
"
${
PW_SHORTCUT_DESKTOP
}
"
]]
&&
PW_SHORTCUT_DESKTOP
=
"TRUE"
[[
-z
"
${
PW_SHORTCUT_STEAM
}
"
]]
&&
PW_SHORTCUT_STEAM
=
"FALSE"
export
name_desktop
=
"
${
PORTPROTON_NAME
}
"
name_desktop_png
=
"
${
PORTPROTON_NAME
// /_
}
"
if
[[
-z
"
${
PORTPROTON_NAME
}
"
]]
;
then
export
name_desktop
=
"
$(
basename
"
$portwine_exe
"
)
"
else
export
name_desktop
=
"
${
PORTPROTON_NAME
}
"
fi
[[
-z
"
${
name_desktop_png
}
"
]]
&&
name_desktop_png
=
"
${
PORTPROTON_NAME
// /_
}
"
if
[[
"
$1
"
==
"block_name"
]]
;
then
OUTPUT
=
$(
"
${
pw_yad
}
"
--title
=
"
$(
gettext
"Choices"
)
"
--form
\
--gui-type
=
"settings-shortcut"
\
...
...
@@ -5406,11 +5422,11 @@ change_download_grid () {
if
[[
"
$DOWNLOAD_STEAM_GRID
"
==
"1"
]]
;
then
sed
-i
's/DOWNLOAD_STEAM_GRID=.*/DOWNLOAD_STEAM_GRID="0"/'
"
$USER_CONF
"
pw_notify_send
-i
info
\
"
$(
gettext
"Cover downloads are
en
abled"
)
"
"
$(
gettext
"Cover downloads are
dis
abled"
)
"
else
sed
-i
's/DOWNLOAD_STEAM_GRID=.*/DOWNLOAD_STEAM_GRID="1"/'
"
$USER_CONF
"
pw_notify_send
-i
info
\
"
$(
gettext
"Cover downloads are
dis
abled"
)
"
"
$(
gettext
"Cover downloads are
en
abled"
)
"
fi
print_info
"Restarting PP for change cover download behavior..."
export
SKIP_CHECK_UPDATES
=
"1"
...
...
data_from_portwine/scripts/start.sh
View file @
36ed8768
...
...
@@ -49,7 +49,8 @@ elif [[ "$1" == "--debug" ]] \
&&
[[
"
$2
"
==
*
.exe
||
"
$2
"
==
*
.bat
||
"
$2
"
==
*
.reg
||
"
$2
"
==
*
.msi
]]
then
portwine_exe
=
"
$(
realpath
"
$OLDPWD
/
$2
"
)
"
elif
[[
"
$1
"
==
*
.exe
||
"
$1
"
==
*
.bat
||
"
$1
"
==
*
.msi
]]
;
then
elif
[[
"
$1
"
==
*
.exe
||
"
$1
"
==
*
.bat
||
"
$1
"
==
*
.msi
||
"
$1
"
==
*
.reg
]]
then
portwine_exe
=
"
$1
"
MISSING_DESKTOP_FILE
=
1
fi
...
...
@@ -679,8 +680,8 @@ else
fi
if
[[
"
$DOWNLOAD_STEAM_GRID
"
==
"1"
]]
then
NEW_STEAM_BEHAVIOR
=
"
$(
gettext
"
En
able"
)
"
else
NEW_STEAM_BEHAVIOR
=
"
$(
gettext
"
Dis
able"
)
"
then
NEW_STEAM_BEHAVIOR
=
"
$(
gettext
"
Dis
able"
)
"
else
NEW_STEAM_BEHAVIOR
=
"
$(
gettext
"
En
able"
)
"
fi
IFS
=
$'
\n
'
...
...
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