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
20d89292
Commit
20d89292
authored
Nov 11, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes for local
parent
abe678c9
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 @
20d89292
...
...
@@ -73,8 +73,7 @@ set_several_variables () {
key
=
${
1
//=*/
}
value
=
${
1
//*=/
}
keys_all+
=
"
$key
"
export
"
$key
"
=
"
$value
"
shift
export
"
$key
"
=
"
$value
"
;
shift
done
}
...
...
@@ -720,17 +719,14 @@ var_ld_library_path_update () {
# GUI NOTIFY SEND
pw_notify_send () {
if command -v gdbus &>/dev/null ; then
local app="
PortProton
"
local icon=""
local timeout="
5000
"
local title=""
local body=""
local OPTIND="
1
"
local icon title body app timeout OPTIND
app="
PortProton
"
timeout="
5000
"
OPTIND="
1
"
while getopts a:i:t: opt ; do
case "
$opt
" in
a)
local
app=
$OPTARG
app=
$OPTARG
;;
i)
case "
$OPTARG
" in
...
...
@@ -738,10 +734,10 @@ pw_notify_send () {
warning) local OPTARG="
${
PORT_WINE_PATH
}
/data/img/gui/notify_warning.svg
";;
error) local OPTARG="
${
PORT_WINE_PATH
}
/data/img/gui/notify_error.svg
";;
esac
local
icon=
$OPTARG
icon=
$OPTARG
;;
t)
local
timeout=
$OPTARG
timeout=
$OPTARG
;;
*)
echo "
usage
:
$0
...
...
@@ -754,10 +750,8 @@ pw_notify_send () {
done
shift
$((
OPTIND
-
1
))
[[ "
$1
" == "
--
" ]] && shift
local title="
$1
"
shift
local body="
$*
"
title="
$1
" ; shift
body="
$*
"
gdbus call --session --dest org.freedesktop.Notifications
\
--object-path /org/freedesktop/Notifications
\
...
...
@@ -1438,7 +1432,7 @@ recommend_dpi () {
return
1
fi
local
dpi
=
$((
height
/
11
))
((
dpi < 96
))
&&
local
dpi
=
"96"
((
dpi < 96
))
&&
dpi
=
"96"
echo
"
$dpi
"
}
...
...
@@ -5332,7 +5326,7 @@ gui_mangohud () {
fi
if [[ "${GUI_MH_RESULT}" =~ "fps_only" ]] ; then
local
GUI_MH_RESULT="fps_only"
GUI_MH_RESULT="fps_only"
print_info "In the MangoHud config fps_only is detected all settings are reseted"
fi
...
...
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