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
8dc3157f
Commit
8dc3157f
authored
Sep 04, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Htylol-add-old-tray' into devel
parents
c73685b5
e08a290c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
6 deletions
+34
-6
functions_helper
data_from_portwine/scripts/functions_helper
+34
-6
No files found.
data_from_portwine/scripts/functions_helper
View file @
8dc3157f
...
...
@@ -1085,8 +1085,14 @@ stop_portwine () {
kill_portwine
&&
try_remove_dir
"
${
PW_WINELIB
}
/var"
find
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/"
-maxdepth
1
-type
f
-name
"*.tmp"
-delete
if
[[
!
-z
"
$(
pgrep
-a
tray_gui_pp
)
"
]]
;
then
kill
-s
SIGUSR1
$(
pgrep
-a
tray_gui_pp
)
2>/dev/null
if
[[
"
$XDG_SESSION_TYPE
"
==
"tty"
]]
;
then
if
[
!
-z
"
$(
pgrep
-a
yad_gui_pp |
grep
"
\-
-notification"
|
awk
'{print $1}'
)
"
]
;
then
kill
-s
SIGUSR1
"
$(
pgrep
-a
yad_gui_pp |
grep
"
\-
-notification"
|
awk
'{print $1}'
)
"
fi
else
if
[[
!
-z
"
$(
pgrep
-a
tray_gui_pp
)
"
]]
;
then
kill
-s
SIGUSR1
$(
pgrep
-a
tray_gui_pp
)
2>/dev/null
fi
fi
if
[[
!
-z
"
$(
pgrep
-a
yad_gui_pp
)
"
]]
;
then
kill
-s
SIGUSR1
$(
pgrep
-a
yad_gui_pp
)
2>/dev/null
...
...
@@ -3415,8 +3421,14 @@ open_changelog () {
export
-f
open_changelog
pw_tray_icon
()
{
if
[[
!
-z
"
$(
pgrep
-a
tray_gui_pp
)
"
]]
;
then
kill
-s
SIGUSR1
$(
pgrep
-a
tray_gui_pp
)
2>/dev/null
if
[[
"
$XDG_SESSION_TYPE
"
==
"tty"
]]
;
then
if
[
!
-z
"
$(
pgrep
-a
yad_gui_pp |
grep
"
\-
-notification"
|
awk
'{print $1}'
)
"
]
;
then
kill
-s
SIGUSR1
"
$(
pgrep
-a
yad_gui_pp |
grep
"
\-
-notification"
|
awk
'{print $1}'
)
"
fi
else
if
[[
!
-z
"
$(
pgrep
-a
tray_gui_pp
)
"
]]
;
then
kill
-s
SIGUSR1
$(
pgrep
-a
tray_gui_pp
)
2>/dev/null
fi
fi
pw_tray_winefile
()
{
...
...
@@ -3435,8 +3447,24 @@ pw_tray_icon () {
}
export
-f
tray_icon_click_exit
PW_GUI_TRAY_PATH
=
"
${
PW_GUI_THEMES_PATH
}
/tray"
env
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
"
"
${
PW_GUI_TRAY_PATH
}
/tray_gui_pp"
&
if
[[
"
$XDG_SESSION_TYPE
"
==
"tty"
]]
;
then
tray_icon_click
()
{
echo
""
}
export
-f
tray_icon_click
"
${
pw_yad
}
"
--notification
--no-middle
\
--image
=
"
$PW_GUI_ICON_PATH
/portproton_tray_flatpak.svg"
\
--command
=
"bash -c tray_icon_click"
\
--tooltip
=
"PortProton"
\
--icon-size
=
32
--menu
=
"|
\
$(
gettext
"WINEFILE"
)
!bash -c pw_tray_winefile!"
$PW_GUI_ICON_PATH
/wine_file.svg
"||
\
$(
gettext
"TASKMGR"
)
!bash -c pw_tray_taskmgr!"
$PW_GUI_ICON_PATH
/wine_system.svg
"||
\
$(
gettext
"CHANGELOG"
)
!bash -c open_changelog!"
$PW_GUI_ICON_PATH
/history.svg
"||
\
$(
gettext
"FORCE EXIT"
)
!bash -c tray_icon_click_exit!"
$PW_GUI_ICON_PATH
/close.svg
"||"
2>/dev/null &
else
PW_GUI_TRAY_PATH
=
"
${
PW_GUI_THEMES_PATH
}
/tray"
env
LD_LIBRARY_PATH
=
"
${
PW_LD_LIBRARY_PATH
}
"
"
${
PW_GUI_TRAY_PATH
}
/tray_gui_pp"
&
fi
return
0
}
...
...
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