1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-28 05:12:36 +01:00

fix: fix for #61

This commit is contained in:
aclist 2023-05-07 04:42:01 +09:00
parent 7818b4442f
commit 89242bcdbd
2 changed files with 5 additions and 1 deletions

View file

@ -5,6 +5,10 @@
- Custom query API
- 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
### Fixed
- Steam beta console not focusing (#60)

View file

@ -1764,7 +1764,7 @@ setup(){
check_map_count(){
count=1048576
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
if [[ $? -eq 0 ]]; then
pass=$($steamsafe_zenity --password)