Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE-old
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-old
Commits
ab101acc
Commit
ab101acc
authored
Jul 17, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'saved-state-shortcut' of github.com:Htylol/PortWINE into Htylol-saved-state-shortcut
parents
ccb74f87
7d9ab1c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
functions_helper
data_from_portwine/scripts/functions_helper
+16
-6
No files found.
data_from_portwine/scripts/functions_helper
View file @
ab101acc
...
...
@@ -4452,6 +4452,10 @@ portwine_create_shortcut () {
unset
PORTPROTON_NAME
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"
if
[[
"
$1
"
==
"block_name"
]]
;
then
export
name_desktop
=
"
${
PORTPROTON_NAME
}
"
OUTPUT
=
$(
"
${
pw_yad
}
"
--title
=
"
$(
gettext
"Choices"
)
"
--form
\
...
...
@@ -4462,9 +4466,9 @@ portwine_create_shortcut () {
--image
"
${
PORT_WINE_PATH
}
/data/img/
${
PORTPROTON_NAME
}
.png"
\
--text-align
=
"center"
--text
"
$(
gettext
"The shortcut will be created in the PortProton directory."
)
"
\
--field
=
"
${
name_desktop
}
"
:LBL
""
\
--field
=
"
$(
gettext
"Add shortcut to MENU -> GAMES"
)
"
:CHK
"
TRUE
"
\
--field
=
"
$(
gettext
"Add shortcut to Desktop"
)
"
:CHK
"
TRUE
"
\
--field
=
"
$(
gettext
"Add shortcut to STEAM library"
)
"
:CHK
"
FALSE
"
\
--field
=
"
$(
gettext
"Add shortcut to MENU -> GAMES"
)
"
:CHK
"
$PW_SHORTCUT_MENU
"
\
--field
=
"
$(
gettext
"Add shortcut to Desktop"
)
"
:CHK
"
$PW_SHORTCUT_DESKTOP
"
\
--field
=
"
$(
gettext
"Add shortcut to STEAM library"
)
"
:CHK
"
$PW_SHORTCUT_STEAM
"
\
--button
=
"
$(
gettext
"CREATE SHORTCUT"
)
"
!
"
$PW_GUI_ICON_PATH
/
$BUTTON_SIZE
.png"
:0
)
PW_YAD_OUT
=
$?
else
...
...
@@ -4477,9 +4481,9 @@ portwine_create_shortcut () {
--image
"
${
PORT_WINE_PATH
}
/data/img/
${
PORTPROTON_NAME
}
.png"
\
--text-align
=
"center"
--text
"
$(
gettext
"The shortcut will be created in the PortProton directory."
)
"
\
--field
=
"
$(
gettext
"Name"
)
"
"
${
name_desktop
}
"
\
--field
=
"
$(
gettext
"Add shortcut to MENU -> GAMES"
)
"
:CHK
"
TRUE
"
\
--field
=
"
$(
gettext
"Add shortcut to Desktop"
)
"
:CHK
"
TRUE
"
\
--field
=
"
$(
gettext
"Add shortcut to STEAM library"
)
"
:CHK
"
FALSE
"
\
--field
=
"
$(
gettext
"Add shortcut to MENU -> GAMES"
)
"
:CHK
"
$PW_SHORTCUT_MENU
"
\
--field
=
"
$(
gettext
"Add shortcut to Desktop"
)
"
:CHK
"
$PW_SHORTCUT_DESKTOP
"
\
--field
=
"
$(
gettext
"Add shortcut to STEAM library"
)
"
:CHK
"
$PW_SHORTCUT_STEAM
"
\
--button
=
"
$(
gettext
"CREATE SHORTCUT"
)
"
!
"
$PW_GUI_ICON_PATH
/
$BUTTON_SIZE
.png"
:0
)
PW_YAD_OUT
=
$?
fi
...
...
@@ -4495,6 +4499,12 @@ portwine_create_shortcut () {
create_desktop_desktop_shortcut
=
$(
echo
"
$OUTPUT
"
|
awk
-F
'|'
'{print $3}'
)
create_menu_steam_shortcut
=
$(
echo
"
$OUTPUT
"
|
awk
-F
'|'
'{print $4}'
)
PW_SHORTCUT_MENU
=
"
$create_menu_desktop_shortcut
"
PW_SHORTCUT_DESKTOP
=
"
$create_desktop_desktop_shortcut
"
PW_SHORTCUT_STEAM
=
"
$create_menu_steam_shortcut
"
edit_user_conf_from_gui PW_SHORTCUT_MENU PW_SHORTCUT_DESKTOP PW_SHORTCUT_STEAM
try_remove_file
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
if
[[
"
${
PORTPROTON_NAME
}
"
!=
"
${
name_desktop_png
}
"
]]
...
...
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