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
c5f4a8de
Commit
c5f4a8de
authored
Jul 11, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added new pw_tray for support wayland session
parent
f3819039
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
18 deletions
+12
-18
functions_helper
data_from_portwine/scripts/functions_helper
+12
-18
No files found.
data_from_portwine/scripts/functions_helper
View file @
c5f4a8de
...
@@ -371,6 +371,7 @@ check_wayland_session () {
...
@@ -371,6 +371,7 @@ check_wayland_session () {
return
1
return
1
fi
fi
}
}
export
-f
check_wayland_session
check_flatpak
()
{
check_flatpak
()
{
if
[[
!
-z
"
$FLATPAK_IN_USE
"
]]
if
[[
!
-z
"
$FLATPAK_IN_USE
"
]]
...
@@ -924,8 +925,11 @@ stop_portwine () {
...
@@ -924,8 +925,11 @@ stop_portwine () {
kill_portwine
&&
kill_portwine
&&
try_remove_dir
"
${
PW_WINELIB
}
/var"
try_remove_dir
"
${
PW_WINELIB
}
/var"
find
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/"
-maxdepth
1
-type
f
-name
"*.tmp"
-delete
find
"
${
PORT_WINE_PATH
}
/data/prefixes/
${
PW_PREFIX_NAME
}
/drive_c/"
-maxdepth
1
-type
f
-name
"*.tmp"
-delete
if
[[
!
-z
"
$(
pgrep
-a
yad_gui_pp |
grep
"
\-
-notification"
|
awk
'{print $1}'
)
"
]]
;
then
if
[[
!
-z
"
$(
pgrep
-a
pw_tray
)
"
]]
;
then
kill
-s
SIGUSR1
"
$(
pgrep
-a
yad_gui_pp |
grep
"
\-
-notification"
|
awk
'{print $1}'
)
"
2>/dev/null
kill
-s
SIGUSR1
$(
pgrep
-a
pw_tray
)
2>/dev/null
fi
if
[[
!
-z
"
$(
pgrep
-a
yad_gui_pp
)
"
]]
;
then
kill
-s
SIGUSR1
$(
pgrep
-a
pw_yad_pp
)
2>/dev/null
fi
fi
add_in_stop_portwine
add_in_stop_portwine
unset
SKIP_CHECK_UPDATES
unset
SKIP_CHECK_UPDATES
...
@@ -3125,15 +3129,10 @@ open_changelog () {
...
@@ -3125,15 +3129,10 @@ open_changelog () {
export
-f
open_changelog
export
-f
open_changelog
pw_tray_icon
()
{
pw_tray_icon
()
{
if
[
!
-z
"
$(
pgrep
-a
yad_gui_pp |
grep
"
\-
-notification"
|
awk
'{print $1}'
)
"
]
;
then
if
[
[
!
-z
"
$(
pgrep
-a
pw_tray
)
"
]
]
;
then
kill
-s
SIGUSR1
"
$(
pgrep
-a
yad_gui_pp |
grep
"
\-
-notification"
|
awk
'{print $1}'
)
"
kill
-s
SIGUSR1
$(
pgrep
-a
pw_tray
)
2>/dev/null
fi
fi
tray_icon_click
()
{
echo
""
}
export
-f
tray_icon_click
pw_tray_winefile
()
{
pw_tray_winefile
()
{
pw_run winefile
"C:
\\
users
\\
${
USER
}
\\
AppData
\\
Roaming
\\
Microsoft
\\
Windows
\\
Start Menu
\\
Programs
\\
"
pw_run winefile
"C:
\\
users
\\
${
USER
}
\\
AppData
\\
Roaming
\\
Microsoft
\\
Windows
\\
Start Menu
\\
Programs
\\
"
}
}
...
@@ -3150,15 +3149,10 @@ pw_tray_icon () {
...
@@ -3150,15 +3149,10 @@ pw_tray_icon () {
}
}
export
-f
tray_icon_click_exit
export
-f
tray_icon_click_exit
"
${
pw_yad
}
"
--notification
--no-middle
\
export
PW_GUI_TRAY_PATH
=
"
${
PW_GUI_THEMES_PATH
}
/tray"
--image
=
"
$PW_GUI_ICON_PATH
/portproton_tray_flatpak.svg"
\
cd
${
PW_GUI_TRAY_PATH
}
--command
=
"bash -c tray_icon_click"
\
env
LD_LIBRARY_PATH
=
"
${
PW_GUI_TRAY_PATH
}
"
"
${
PW_GUI_TRAY_PATH
}
/pw_tray"
&
--tooltip
=
"PortProton"
\
cd
-
--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 &
return
0
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