fix: use same WM_CLASS name for both clients

This commit is contained in:
aclist committed 2023-05-09 09:23:26 +09:00
1 parent 76a05e5d04
commit 0cabcb9f46
2 files changed
+6 -6

No files matched your search

+4
View File
@@ -5,6 +5,10 @@
- Custom query API
- Standardize dialogs
## [3.3.0-rc.20] 2023-05-09
### Changed
- Use same WM_CLASS targeting method for beta and stable clients
## [3.3.0-rc.19] 2023-05-09
### Fixed
- Case folding when targeting WM_CLASS
+2 -6
View File
@@ -1,7 +1,7 @@
#!/bin/bash
set -o pipefail
version=3.3.0-rc.19
version=3.3.0-rc.20
aid=221100
game="dayz"
@@ -560,11 +560,7 @@ update_history(){
echo -e "${old}${ip}" > "$hist_file"
}
is_steam_running(){
if [[ $(is_beta) -eq 0 ]]; then
wmctrl -l | grep "Steam Games List"
else
wmctrl -ilx | awk 'tolower($3) == "steam.steam"'
fi
wmctrl -ilx | awk 'tolower($3) == "steam.steam"'
}
connect(){
#TODO: sanitize/validate input