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
f70ccc40
Commit
f70ccc40
authored
Oct 07, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update themes and scripts
parent
f7a5e591
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
31 deletions
+25
-31
functions_helper
data_from_portwine/scripts/functions_helper
+17
-19
start.sh
data_from_portwine/scripts/start.sh
+6
-10
compact.pptheme
data_from_portwine/themes/compact.pptheme
+1
-1
default.pptheme
data_from_portwine/themes/default.pptheme
+1
-1
No files found.
data_from_portwine/scripts/functions_helper
View file @
f70ccc40
...
...
@@ -776,10 +776,10 @@ debug_timer () {
fi
}
# Поиск нужного .desktop файла по $portwine_exe
search_desktop_file
()
{
# Поиск нужного .desktop файла по $portwine_exe, чтобы внести изменения в него.
for
desktop_file
in
"
${
PORT_WINE_PATH
}
"
/
*
;
do
desktop_file_new
=
"
${
desktop_file
//
"
${
PORT_WINE_PATH
}
/"
/
}
"
for
desktop_file
in
"
$PORT_WINE_PATH
"
/
*
;
do
desktop_file_new
=
"
${
desktop_file
//
"
$PORT_WINE_PATH
/"
/
}
"
if
[[
$desktop_file_new
=
~ .desktop
]]
;
then
if
[[
!
$desktop_file_new
=
~
(
PortProton|readme
)
]]
;
then
while
IFS
=
read
-r
line
;
do
...
...
@@ -787,7 +787,7 @@ search_desktop_file () {
if
check_flatpak
;
then
EXEC_DESKTOP
=
${
line
//Exec=flatpak run ru.linux_gaming.PortProton /
}
else
EXEC_DESKTOP
=
${
line
//Exec=env \
"
$
{
PORT_SCRIPTS_PATH
}
\/
start.sh
\"
/}
EXEC_DESKTOP
=
${
line
//Exec=env \
"
$
PORT_SCRIPTS_PATH
\/
start.sh
\"
/}
fi
EXEC_DESKTOP_NEW="
${
EXEC_DESKTOP
//\
"/}"
fi
...
...
@@ -816,19 +816,17 @@ search_desktop_file () {
IFS=
"
$orig_IFS
"
}
# Конвертация секунд в дни, часы, минуты
seconds_to_time () {
[[ -z
$1
]] && return 0
local seconds=
$1
# Calculate days
local days=
$((
seconds
/
(
60
*
60
*
24
))
)
local seconds=
$((
seconds
%
(
60
*
60
*
24
))
)
# Calculate hours
local hours=
$((
seconds
/
(
60
*
60
))
)
local seconds=
$((
seconds
%
(
60
*
60
))
)
# Calculate minutes
local minutes=
$((
seconds
/
60
))
local seconds=
$((
seconds
%
60
))
...
...
@@ -889,27 +887,27 @@ combobox_fix () {
echo
"disabled"
return
0
fi
name1
=
"
$2
"
name2
=
"
$3
"
local
name1
=
"
$2
"
local
name2
=
"
$3
"
elif
[[
"
$1
"
==
"--empty"
]]
;
then
if
[[
-z
"
$3
"
]]
;
then
echo
""
return
0
fi
name1
=
"
$2
"
name2
=
"
$3
"
local
name1
=
"
$2
"
local
name2
=
"
$3
"
else
name1
=
"
$1
"
local
name1
=
"
$1
"
if
[[
-z
"
$2
"
]]
;
then
echo
"
${
name1
}
"
return
0
fi
name2
=
"
$2
"
local
name2
=
"
$2
"
fi
name3
=
"
${
name2
//\!
${
name1
}
\!/\!
}
"
name3
=
"!
${
name3
//
${
name1
}
\!/\!
}
"
name3
=
"
${
name3
//\!\!/\!
}
"
name4
=
"
${
name3
//*\!/
}
"
local
name3
=
"
${
name2
//\!
${
name1
}
\!/\!
}
"
local
name3
=
"!
${
name3
//
${
name1
}
\!/\!
}
"
local
name3
=
"
${
name3
//\!\!/\!
}
"
local
name4
=
"
${
name3
//*\!/
}
"
if
[[
${
name1
}
==
"
${
name4
}
"
]]
||
[[
${
name1
}
==
"
\\
${
name4
}
"
]]
then
name3
=
"
${
name3
%\!
"
${
name1
}
"
}
"
fi
...
...
@@ -5280,8 +5278,8 @@ gui_userconf () {
166)
IFS='
%
' read -r -a PW_ADD_SETTINGS_UC <"${PW_TMPFS_PATH}/tmp_yad_userconf_set_cb"
IFS="$orig_IFS"
PW_GPU_USE=
${PW_ADD_SETTINGS_UC[0]}
PW_SOUND_DRIVER_USE=
${PW_ADD_SETTINGS_UC[1]}
PW_GPU_USE=
"${PW_ADD_SETTINGS_UC[0]}"
PW_SOUND_DRIVER_USE=
"${PW_ADD_SETTINGS_UC[1]}"
GUI_THEME="${PW_ADD_SETTINGS_UC[2]}"
DESKTOP_WITH_TIME="${PW_ADD_SETTINGS_UC[3]}"
SORT_WITH_TIME="${PW_ADD_SETTINGS_UC[4]}"
...
...
data_from_portwine/scripts/start.sh
View file @
f70ccc40
...
...
@@ -497,9 +497,7 @@ if [[ -f "${portwine_exe}" ]] ; then
PW_SHORTCUT
=
"
${
translations
[DELETE SHORTCUT]
}
!
$PW_GUI_ICON_PATH
/
$BUTTON_SIZE
.png!
${
translations
[Delete shortcut for select file...]
}
:98"
fi
if
[[
$DESKTOP_WITH_TIME
==
enabled
]]
;
then
search_desktop_file
fi
[[
$DESKTOP_WITH_TIME
==
enabled
]]
&&
search_desktop_file
if
[[
-z
"
${
PW_COMMENT_DB
}
"
]]
;
then
if
[[
-n
"
${
PORTPROTON_NAME
}
"
]]
;
then
PW_COMMENT_DB
=
"
${
translations
[Launching]
}
<b>
$(
print_wrapped
"
${
PORTPROTON_NAME
}
"
"50"
)$(
seconds_to_time
"
$TIME_CURRENT
"
)
</b>"
...
...
@@ -590,9 +588,7 @@ if [[ -f "${portwine_exe}" ]] ; then
fi
case
$PW_YAD_SET
in
128
)
if
[[
"
${
PW_GUI_START
}
"
==
"NOTEBOOK"
]]
;
then
unset
PW_YAD_FORM_TAB
fi
[[
"
$PW_GUI_START
"
==
"NOTEBOOK"
]]
&&
unset
PW_YAD_FORM_TAB
unset
portwine_exe KEY_START
$(
sed
-n
'/export/p'
"
${
PORTWINE_DB_FILE
}
"
|
sed
's/\(export\|=.*\| \)//g'
)
print_info
"Restarting..."
restart_pp
...
...
@@ -603,7 +599,7 @@ if [[ -f "${portwine_exe}" ]] ; then
esac
pw_yad_set_form
pw_yad_form_vulkan
elif
[[
-f
"
$
{
PORTWINE_DB_FILE
}
"
]]
;
then
elif
[[
-f
"
$
PORTWINE_DB_FILE
"
]]
;
then
portwine_launch
fi
else
...
...
@@ -614,8 +610,8 @@ else
# Поиск .desktop файлов
AMOUNT_GENERATE_BUTTONS
=
"0"
for
desktop_file
in
"
$
{
PORT_WINE_PATH
}
"
/
*
;
do
desktop_file_new
=
"
${
desktop_file
//
"
$
{
PORT_WINE_PATH
}
/"
/
}
"
for
desktop_file
in
"
$
PORT_WINE_PATH
"
/
*
;
do
desktop_file_new
=
"
${
desktop_file
//
"
$
PORT_WINE_PATH
/"
/
}
"
if
[[
$desktop_file_new
=
~ .desktop
]]
;
then
if
[[
!
$desktop_file_new
=
~
(
PortProton|readme
)
]]
;
then
while
IFS
=
read
-r
line
;
do
...
...
@@ -623,7 +619,7 @@ else
if
check_flatpak
;
then
PW_NAME_D_ICON[
"
$AMOUNT_GENERATE_BUTTONS
"
]=
${
line
//Exec=flatpak run ru.linux_gaming.PortProton /
}
else
PW_NAME_D_ICON[
"
$AMOUNT_GENERATE_BUTTONS
"
]=
${
line
//Exec=env \
"
$
{
PORT_SCRIPTS_PATH
}
\/
start.sh
\"
/}
PW_NAME_D_ICON[
"
$AMOUNT_GENERATE_BUTTONS
"
]=
${
line
//Exec=env \
"
$
PORT_SCRIPTS_PATH
\/
start.sh
\"
/}
fi
fi
if [[
$line
=~ ^Icon= ]] ; then
...
...
data_from_portwine/themes/compact.pptheme
View file @
f70ccc40
...
...
@@ -23,7 +23,7 @@ export BUTTON_SIZE=32 # 24, 28, 32, 36, 40
export
TAB_SIZE
=
32
# 24, 28, 32, 36, 40
export
PW_MAIN_SIZE_W
=
5
00
export
PW_MAIN_SIZE_W
=
10
00
export
PW_MAIN_SIZE_H
=
350
export
PW_START_SIZE_W
=
500
...
...
data_from_portwine/themes/default.pptheme
View file @
f70ccc40
...
...
@@ -31,7 +31,7 @@ export BUTTON_SIZE=28 # 24, 28, 32, 36, 40
export
TAB_SIZE
=
32
# 24, 28, 32, 36, 40
# размер главного меню
export
PW_MAIN_SIZE_W
=
5
00
export
PW_MAIN_SIZE_W
=
10
00
export
PW_MAIN_SIZE_H
=
330
# размер меню запуска и положения табов
...
...
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