mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
fix: fix for #61
This commit is contained in:
parent
7818b4442f
commit
89242bcdbd
2 changed files with 5 additions and 1 deletions
|
@ -5,6 +5,10 @@
|
||||||
- Custom query API
|
- Custom query API
|
||||||
- Standardize dialogs
|
- Standardize dialogs
|
||||||
|
|
||||||
|
## [3.3.0-rc.17] 2023-05-07
|
||||||
|
### Fixed
|
||||||
|
- Use sudo when checking vm map count (#61)
|
||||||
|
|
||||||
## [3.3.0-rc.16] 2023-05-06
|
## [3.3.0-rc.16] 2023-05-06
|
||||||
### Fixed
|
### Fixed
|
||||||
- Steam beta console not focusing (#60)
|
- Steam beta console not focusing (#60)
|
||||||
|
|
2
dzgui.sh
2
dzgui.sh
|
@ -1764,7 +1764,7 @@ setup(){
|
||||||
check_map_count(){
|
check_map_count(){
|
||||||
count=1048576
|
count=1048576
|
||||||
echo "[DZGUI] Checking system map count"
|
echo "[DZGUI] Checking system map count"
|
||||||
if [[ $(sysctl -q vm.max_map_count | awk -F"= " '{print $2}') -lt $count ]]; then
|
if [[ $(sudo sysctl -q vm.max_map_count | awk -F"= " '{print $2}') -lt $count ]]; then
|
||||||
$steamsafe_zenity --question --width 500 --title="DZGUI" --text "System map count must be $count or higher to run DayZ with Wine.\nIncrease map count and make this change permanent? (will prompt for sudo password)" 2>/dev/null
|
$steamsafe_zenity --question --width 500 --title="DZGUI" --text "System map count must be $count or higher to run DayZ with Wine.\nIncrease map count and make this change permanent? (will prompt for sudo password)" 2>/dev/null
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
pass=$($steamsafe_zenity --password)
|
pass=$($steamsafe_zenity --password)
|
||||||
|
|
Loading…
Reference in a new issue