Compare commits

..
1517 Commits
Author SHA1 Message Date
aclist 252f07cbec Merge pull request #287 from aclist/prerelease/6.0.6-beta.1
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
chore: update symlink hash logic
2026-05-17 23:42:18 +09:00
aclist a0f610ead7 chore: update symlink hash logic 2026-05-17 23:40:35 +09:00
aclist ca4bcfc1a5 Merge pull request #285 from aclist/fix/server-mods-only
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
change: only update mods local to server
2026-04-17 20:57:03 +09:00
aclist ac4892d4f0 change: only update mods local to server 2026-04-17 20:47:25 +09:00
aclist 240b660923 Merge pull request #284 from aclist/prerelease/6.0.5-beta.1
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
fix: update module checksums
2026-04-13 16:56:02 +09:00
aclist 150dfbca72 fix: update module checksums 2026-04-13 16:54:46 +09:00
aclist 4b78114174 Merge pull request #281 from aclist/fix/glib-unix-allversions
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
fix: use conditional logic when testing GLibUnix
2026-04-13 04:38:50 +09:00
aclist d1bde9901d fix: use conditional logic when testing GLibUnix 2026-04-13 03:43:22 +09:00
aclist c5eba364d9 Merge pull request #278 from aclist/fix/glib-unix
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
fix: use GLibUnix namespace
2026-04-10 19:03:06 +09:00
aclist 5460b53c26 fix: version number in changelog 2026-04-10 18:52:04 +09:00
aclist 99301b3312 fix: uncomment functions 2026-04-10 18:50:58 +09:00
aclist 8d30af9dee fix: use GLibUnix namespace 2026-04-10 16:50:31 +09:00
aclist 8a8109b7df chore: add preview image
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2026-03-30 20:56:16 +09:00
aclist e4eaf25c8f chore: update readme 2026-03-30 20:16:58 +09:00
aclist 0daf6089b9 fix: raise error correctly
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2026-01-26 16:53:42 +09:00
aclist 7e4197cdbc fix: uncomment code
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2026-01-18 15:04:26 +09:00
aclist c0f9d8a508 Merge pull request #267 from aclist/fix/threaded-dialog
fix/threaded dialog
2026-01-18 15:02:43 +09:00
aclist 2da2b19001 Merge branch 'testing' into fix/threaded-dialog 2026-01-18 15:01:48 +09:00
aclist 62936fa7b7 fix: threaded dialog 2026-01-18 15:00:12 +09:00
aclist e9fecc7fb7 fix: explicitly use python 3.13
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2026-01-17 01:21:19 +09:00
aclist 2d58bb491e Merge pull request #264 from aclist/fix/explicit-version
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
fix: explicitly use python 3.13
2026-01-17 01:19:40 +09:00
aclist 2f123da63a fix: explicitly use python 3.13 2026-01-17 01:18:40 +09:00
aclist 7016edf7cd Merge pull request #259 from aclist/prerelease/6.0.0
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
Prerelease/6.0.0
2026-01-15 05:38:25 +09:00
aclist 11c29112c2 fix: write file after wiping cache
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2026-01-15 05:18:13 +09:00
aclist b630cf4080 fix: write file after wiping cache
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2026-01-15 05:13:35 +09:00
aclist 1034a5ac04 fix: store source path 2026-01-15 05:04:10 +09:00
aclist 317f60eddd chore: update checksums 2026-01-15 04:36:21 +09:00
aclist 9fbe5029e1 fix: steam deck compatible source path expansion 2026-01-15 04:35:56 +09:00
aclist ebc62b0b1b fix: steam deck compatible source path expansion 2026-01-15 04:30:44 +09:00
aclist 4b47ff1fe0 fix: remove duplicate line 2026-01-15 03:41:38 +09:00
aclist e3155ad7ee fix: patch changes from testing 2026-01-15 03:08:00 +09:00
aclist c45d9fb234 Update funcs 2026-01-15 03:02:24 +09:00
aclist 22e92e67a7 Merge branch 'dzgui' into prerelease/6.0.0 2026-01-15 03:01:14 +09:00
aclist 896802cd6f chore: update checksums
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
2026-01-15 02:49:24 +09:00
aclist cb45ce7b9a chore: prepare 6.0.0 release
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
2026-01-15 02:48:05 +09:00
aclist 9678d41b4c Merge pull request #258 from aclist/fix/first-dialog
fix/first dialog
2026-01-15 02:30:33 +09:00
aclist 0daf567111 feat: more descriptive help dialogs
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2026-01-15 02:29:00 +09:00
aclist b75e99ffd7 feat: add link to help page 2026-01-09 10:47:56 +09:00
aclist 5562c44320 fix: regression introduced in previous hotfix
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2026-01-04 21:39:18 +09:00
aclist 236a5dd0a3 Merge pull request #256 from aclist/fix/unlink-loop
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
chore: normalize checksums
2026-01-04 21:34:41 +09:00
aclist 4c10958d10 chore: normalize checksums 2026-01-04 21:33:56 +09:00
aclist 23f7140c66 Merge pull request #255 from aclist/fix/unlink-loop
fix: regression introduced in 5.8.1
2026-01-04 21:25:38 +09:00
aclist fbcfa1fb34 fix: regression introduced in 5.8.1. 2026-01-04 21:24:06 +09:00
aclist 52f36e0d0a Merge pull request #252 from aclist/fix/setup-whitespaces
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
fix: whitespaces during setup
2025-12-28 00:03:40 +09:00
aclist d90c069a73 chore: correct version number in changelog 2025-12-28 00:01:30 +09:00
aclist d2f3eebd42 chore: update changelog
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-12-27 23:57:11 +09:00
aclist af64ebb12a fix: enclose whitespaces during setup 2025-12-27 23:56:18 +09:00
aclist 203ca0d388 chore: update changelog 2025-12-27 23:44:54 +09:00
aclist 34ee8c6645 fix: enclose whitespaces during setup 2025-12-27 23:42:49 +09:00
aclist 0cd561b62a fix: enclose game_dir in quotes 2025-12-27 23:06:11 +09:00
aclist b9c30b4f52 fix: encapsulate paths 2025-12-27 21:06:44 +09:00
aclist 4bcf894704 chore: update installscript branch 2025-12-27 20:41:25 +09:00
aclist c37800795b fix: malformed vdf path discovery 2025-12-27 20:39:09 +09:00
aclist 929f497b9f chore: reword changelog
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-12-10 13:05:46 +09:00
aclist 60aebe5eeb chore: update date 2025-12-10 13:04:54 +09:00
aclist aef9a10c42 Merge pull request #246 from aclist/prerelease/6.0.0-beta.14
fix: newlines in tooltips
2025-12-10 13:03:22 +09:00
aclist c6034bc6b9 fix: strip newlines 2025-12-09 13:03:52 +09:00
aclist 005288371b fix: newlines in tooltips 2025-12-05 15:58:28 +09:00
aclist 53e50a5716 Merge pull request #245 from aclist/fix/6.0.0-beta.13
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
fix: hide filter panel when changing contexts
2025-11-30 04:55:19 +09:00
aclist a50b11633f fix: update variable name 2025-11-30 04:54:50 +09:00
aclist 9c4541fe76 chore: update changelog 2025-11-30 04:53:43 +09:00
aclist ac3e7ee128 fix: incorrect changelog path 2025-11-30 04:51:43 +09:00
aclist 1495ad386d fix: hide filter panel when changing contexts 2025-11-30 04:43:18 +09:00
aclist 4edf71aa0a docs: update changelog
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-11-22 01:04:59 +09:00
aclist 113e5f885b fix: normalize beta version 2025-11-22 01:04:19 +09:00
aclist a3092b1bf3 Merge pull request #239 from aclist/prerelease/6.0.1-beta.1
fix: UI not starting if changelog was missing
2025-11-22 00:50:38 +09:00
aclist e28929bb70 chore: remove reference branch
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-11-22 00:47:36 +09:00
aclist 4a820e3083 chore: uncomment line
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-11-15 20:24:01 +09:00
aclist d866b4992b fix: update error message string
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
2025-11-14 13:41:47 +09:00
aclist 376c5294d9 chore: require python 3.13 2025-11-14 13:16:14 +09:00
aclist 71651bab6c chore: update reference branch
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
2025-11-13 12:54:31 +09:00
aclist 1dba57af4b chore: update reference branch 2025-11-13 12:53:59 +09:00
aclist dabf5d4ef0 fix: uncomment lines 2025-11-13 12:53:41 +09:00
aclist 75f8c841df feat: support sandboxed flatpak 2025-11-13 12:50:27 +09:00
aclist 5bce8709af chore: enforce stricter python version
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-11-10 12:07:35 +09:00
aclist a418bcfb90 fix: return from finally block 2025-11-10 11:42:26 +09:00
aclist 90d59cec97 chore: drop legacy src_path logic 2025-11-06 14:52:35 +09:00
aclist a8ae07931d feat: disable version check on beta branch
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-11-06 14:45:04 +09:00
aclist a4ce65fe57 feat: use reference branch for beta releases 2025-11-06 14:30:16 +09:00
aclist d7e94eab90 fix: UI not starting if changelog was missing 2025-11-05 14:27:15 +09:00
aclist a08c588df3 chore: update changelog date
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-11-04 16:00:31 +09:00
aclist 385b1a5af2 Merge pull request #230 from aclist/prerelease/6.0.0-beta.8
Prerelease/6.0.0-beta.8
2025-11-04 15:59:48 +09:00
aclist be02f086c7 docs: update changelog
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-11-03 12:43:08 +09:00
aclist cc35b2cd85 Merge pull request #233 from GaryBlackbourne/prerelease/latlon-update
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
Prerelease/latlon update
2025-10-31 10:06:13 +09:00
aclist a419aad160 chore: move comments 2025-10-31 10:05:21 +09:00
aclist 21d4601e41 chore: add comments about pretty printing 2025-10-31 10:01:46 +09:00
aclist adf8a62e8a Merge pull request #238 from aclist/doc/port-contributing
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
Doc/port contributing
2025-10-30 11:50:23 +09:00
aclist a1d14669c7 Merge pull request #237 from aclist/doc/port-contributing
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
docs: add contributing file
2025-10-30 11:49:04 +09:00
aclist 46a54cef12 docs: add contributing file 2025-10-30 11:47:10 +09:00
aclist a94f8f0e32 Merge pull request #236 from GaryBlackbourne/doc/add-contributing
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
Doc/add contributing
2025-10-30 11:36:43 +09:00
aclist 0da098afb6 chore: mention branch basing conventions 2025-10-30 11:36:10 +09:00
aclist c8e9f8f1fc chore: move location of notes file in advance of 7.0 release
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-10-26 21:53:19 +09:00
aclist 506c82e86a chore: reword CONTRIBUTING.md
Corrected some typos and reworded passive voice/some sections for
brevity.
2025-10-25 11:51:19 +09:00
aclist 7e45cb0fa2 chore: backport funcs file changes from testing
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-10-25 11:37:48 +09:00
aclist 3729d3c656 chore: update changelog 2025-10-25 11:35:22 +09:00
aclist 773d24a00c chore: backport patch from testing 2025-10-25 11:33:42 +09:00
aclist 661329877f Merge pull request #232 from GaryBlackbourne/fix-deadlock-on-ip-api-server
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
Fix deadlock on ip api server
2025-10-25 11:30:05 +09:00
aclist 08f1f9f4d1 Merge pull request #235 from GaryBlackbourne/dzgui-sh-cleanup
dzgui.sh argument handling and cleanup
2025-10-25 11:28:43 +09:00
Gergely Koloszar dccdffe761 doc: change branch names to currently used ones 2025-10-24 14:04:37 +00:00
Gergely Koloszar 957ad47b4d doc: add troubleshooting help to contribute.md 2025-10-24 14:01:00 +00:00
Gergely Koloszar 16d8f567a4 doc: add code of conduct notice 2025-10-24 14:00:46 +00:00
Gergely Koloszar c883fc586c doc: add contributing.md 2025-10-24 13:43:26 +00:00
Gergely Koloszar cc73f23c1c fix: suppress ping stderr output 2025-10-24 12:35:56 +00:00
aclist ec7daf7f6b fix: store filepaths in array
I opted to encapsulate these in an array because I was paranoid about
needing to separate each directory with a whitespace when storing them
on a stringwise basis. This should be safer and ensure the paths don't
get concatenated together if the whitespace is omitted.
2025-10-23 13:57:19 +09:00
aclist d0de2974d8 fix: emit heredoc directly 2025-10-23 13:44:50 +09:00
aclist 5a54d43601 fix: encapsulate usage command 2025-10-23 13:38:56 +09:00
aclist cbc131028f chore: capitalize TODO for syntax highlighting 2025-10-23 08:22:20 +09:00
Gergely Koloszar 239a82876e fix: silence ping while checking remote urls 2025-10-22 17:20:56 +02:00
Gergely Koloszar 1dfe9cd9df Fix not checking dotfiles in cache path 2025-10-21 19:04:38 +00:00
Gergely Koloszar f2124218e4 Add handling for multiple argument, version getting option and help 2025-10-18 23:12:59 +02:00
Gergely Koloszar cf087d96c7 Add check for script sourcing 2025-10-18 23:12:31 +02:00
Gergely Koloszar 6bb59f4060 Clean up depcheck 2025-10-18 22:53:14 +02:00
Gergely Koloszar d53476399d Clean up setup_state_files 2025-10-18 22:52:49 +02:00
Gergely Koloszar d34293e2c8 Clean up setup_dirs 2025-10-18 22:52:13 +02:00
Gergely Koloszar f82df9eacf Clean up set_im_module 2025-10-18 22:51:52 +02:00
Gergely Koloszar e73617c2f4 Add gitignore for latlon 2025-10-18 21:14:39 +02:00
Gergely Koloszar 67b0559058 Add makefile, and move latlon to a 'tools' directory 2025-10-18 21:13:15 +02:00
Gergely Koloszar dfe65aacd4 Rewrite and document latlon tool source
- incorrect argument count has been fixed
- The code has been split up into smaller units to be more
understandable
- sources were put in comments to help find resources for the
algorithm
- output is now in meters
2025-10-18 21:00:00 +02:00
aclist 6aa1ec4201 fix: early abort if local coords are missing 2025-10-17 19:12:59 +02:00
Gergely Koloszar d6223e54b0 Fix unintended deletion 2025-10-17 19:12:59 +02:00
Gergely Koloszar 83552f833c Add availability checks for local_latlon function 2025-10-17 19:12:59 +02:00
Gergely Koloszar f0657be289 Add availability checker for remote services based on ping and timeout 2025-10-17 19:12:59 +02:00
aclist 23fb10f48e fix: malformed servers
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-10-16 22:38:52 +09:00
aclist eeca71fc25 drop: tutorial images
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-10-03 20:20:10 +09:00
aclist 89f37ab70d fix: use fixed-width property 2025-10-03 19:52:55 +09:00
aclist 9d1ee7e130 chore: update checksums
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
2025-10-03 01:22:02 +09:00
aclist 9a37cebe47 fix: f-string in dialog title 2025-10-03 01:20:40 +09:00
aclist 239f806f7e chore: update changelog
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-09-30 19:09:39 +09:00
aclist 54e2d2feaa fix: block tooltips on main menu 2025-09-30 19:08:04 +09:00
aclist 796dcd5588 fix: missing param 2025-09-30 19:07:42 +09:00
aclist 35f1f180d2 chore: bump version 2025-09-23 20:56:00 +09:00
aclist fe40a5e54f feat: self_update flag 2025-09-23 20:46:12 +09:00
aclist 936dfe8d02 fix: correct date
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-09-20 18:16:50 +09:00
aclist 9db40fe664 Merge pull request #229 from aclist/prerelease/6.0.0-beta.7
Prerelease/6.0.0-beta.7
2025-09-20 18:11:57 +09:00
aclist 5bcc4ec76d chore: bump version 2025-09-18 21:37:35 +09:00
aclist 155306b1ab fix: incorrect version number 2025-09-18 20:08:36 +09:00
aclist cff7b1c2e9 feat: add note saving 2025-09-18 20:04:44 +09:00
aclist 38203a9530 feat: add read_json(), write_json() 2025-09-18 20:03:35 +09:00
aclist 01c8a5276b chore: abstract default size params 2025-09-18 20:02:12 +09:00
aclist 17229c1cba chore: rename get_record_dict() to get_record() 2025-09-18 20:01:51 +09:00
aclist adc617730b fix: change f-string 2025-09-18 20:00:42 +09:00
aclist 8acd359028 chore: update comments 2025-09-18 20:00:15 +09:00
aclist a03971ce70 feat: add get_entry() to EntryDialog 2025-09-18 19:59:51 +09:00
aclist 054486dfef chore: rename var 2025-09-18 19:59:28 +09:00
aclist 3043005977 chore: drop unused import 2025-09-18 19:58:49 +09:00
aclist 998b15d5e8 Merge pull request #228 from aclist/prerelease/6.0.0-beta.6
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
Prerelease/6.0.0-beta.6
2025-09-12 19:05:37 +09:00
aclist 9d8bbec03a chore: update changelog
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-09-12 18:03:38 +09:00
aclist 6425f3d8e3 chore: update checksums
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
2025-09-11 18:35:12 +09:00
aclist ad64ba75c9 chore: reword failure message 2025-09-11 18:34:12 +09:00
aclist 47f7622606 fix: return codes in manual mode 2025-09-11 18:33:59 +09:00
aclist 81c2d19a09 chore: update checksums
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run
2025-09-11 17:46:32 +09:00
aclist b500806815 chore: drop dependency 2025-09-11 17:45:58 +09:00
aclist 60ce184d8f fix: whitespace 2025-09-11 17:10:16 +09:00
aclist 2edb81247b chore: update checksums 2025-09-11 17:09:59 +09:00
aclist 7b67222885 fix: move docstring 2025-09-11 17:09:28 +09:00
aclist 4ddb33cabb chore: update checksums 2025-09-11 17:08:06 +09:00
aclist 364f0b3482 chore: update dataclass params 2025-09-11 17:06:39 +09:00
aclist 5482f296a5 chore: formatting 2025-09-11 17:01:57 +09:00
aclist 0d52c83ed9 chore: refactor pefile methods 2025-09-11 16:58:58 +09:00
aclist b92e337016 chore: bump version 2025-09-10 16:57:36 +09:00
aclist ee73c2cfa3 feat: parse pefile 2025-09-10 16:45:49 +09:00
aclist 8ffb1c7ea6 fix: version file not available yet 2025-09-10 16:43:14 +09:00
aclist 9040977447 chore: drop defunct methods 2025-09-10 16:42:09 +09:00
aclist da6cc9c5c3 chore: reword log message 2025-09-10 16:39:43 +09:00
aclist c40d767dcc chore: drop extraneous logging 2025-09-10 16:39:25 +09:00
aclist 6f3b272bfe fix: floating point syntax with printf 2025-09-10 16:38:47 +09:00
aclist ffe3dac3a8 fix: mods downloading too fast 2025-09-10 16:38:06 +09:00
aclist 5fa8498c56 fix: clear linting errors 2025-09-10 16:36:42 +09:00
aclist c0b5c5bd89 feat: parse hyperlinks 2025-09-10 16:34:58 +09:00
aclist 6d428ebb0d fix: ease padding on mod table 2025-09-10 16:34:05 +09:00
aclist 479be05452 chore: clarify comments 2025-09-10 16:32:33 +09:00
aclist 95a775cd74 fix: newline in tooltip 2025-09-10 16:32:14 +09:00
aclist 1bfb054be2 fix: ease padding on mod table 2025-09-10 16:31:54 +09:00
aclist 6b31bb3ab3 fix: resolution shrinking by default 2025-09-10 16:30:02 +09:00
aclist c5b13ff0f3 fix: strip newlines in history file 2025-09-10 16:29:22 +09:00
aclist 5a33591d6a chore: drop extraneous path expansion 2025-09-10 16:29:03 +09:00
aclist 62b00507e5 fix: unblock signals during continuous keypress 2025-09-10 16:28:33 +09:00
aclist d56bc5a57d Merge pull request #227 from aclist/prerelease/6.0.0-beta.5
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
fix: discard malformed server data
2025-08-20 15:58:51 +09:00
aclist 0b433af230 fix: discard malformed server data 2025-08-20 15:58:09 +09:00
aclist 61f3fd9821 Merge pull request #226 from aclist/prerelease/6.0.0-beta.4
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
fix: toggle branch signal propagation
2025-08-13 16:47:32 +09:00
aclist c7bd8d3809 chore: reword changelog 2025-08-13 16:46:24 +09:00
aclist 0d3a3debf9 chore: uncomment lines 2025-08-13 16:45:32 +09:00
aclist 8e492095d9 chore: bump version 2025-08-13 16:44:48 +09:00
aclist 6a554b4e88 fix: toggle branch signal propagation 2025-08-13 16:40:55 +09:00
aclist e2848b3fed Merge pull request #225 from aclist/prerelease/6.0.0-beta.3
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
Prerelease/6.0.0 beta.3
2025-08-09 16:13:40 +09:00
aclist a5be4d9d31 chore: bump version
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-08-09 16:06:07 +09:00
aclist da5a5999f0 chore: uncomment 2025-08-09 16:01:30 +09:00
aclist f4f3e61b83 fix: pass correct button to submit method 2025-08-09 16:01:00 +09:00
aclist 3d91e07d25 chore: uncomment todo 2025-08-09 15:47:22 +09:00
aclist cff4a2e1e7 chore: update checksums 2025-08-09 11:32:43 +09:00
aclist 4f3f17450c chore: comments and clerical changes 2025-08-08 18:22:51 +09:00
aclist 5d8741edfa chore: drop unnecessary comment 2025-08-08 18:15:28 +09:00
aclist 94cabc9d70 chore: update checksums 2025-08-08 18:11:26 +09:00
aclist 9508bfd416 chore: update changelog 2025-08-08 18:09:53 +09:00
aclist 3ace15d78a chore: bump version 2025-08-08 18:04:49 +09:00
aclist 2bb575cd97 chore: update return codes 2025-08-08 18:04:32 +09:00
aclist 5dfa51dc15 feat: options page 2025-08-08 18:04:17 +09:00
aclist 5dd0cd416b chore: reword comment 2025-08-08 18:02:02 +09:00
aclist 6f5f9ecb7b fix: resolution not updating when returning from fullscreen 2025-08-08 18:01:37 +09:00
aclist 5b9309a6bd fix: discard key input in entry field 2025-08-08 18:01:05 +09:00
aclist 9c6847ba39 feat: toast notification 2025-08-08 18:00:33 +09:00
aclist 8f3238e4de feat: prompt on locked servers 2025-08-08 17:59:10 +09:00
aclist 8c7ae8acee fix: wrap description text 2025-08-08 17:58:33 +09:00
aclist 9d94b4ff09 chore: clear linting errors 2025-08-08 17:57:43 +09:00
aclist 4795aeb3f9 chore: rename function 2025-08-08 17:55:40 +09:00
aclist 12d971a5cf fix: no statusbar in special pages 2025-08-08 17:54:32 +09:00
aclist ff0c5caf30 feat: add quit dialog 2025-08-08 17:51:29 +09:00
aclist 63beb61878 feat: make back button optional 2025-08-08 17:50:37 +09:00
aclist 6c192741ec chore: consolidate vars 2025-08-08 17:48:55 +09:00
aclist 437ea2a218 fix: breadcrums not updating correctly 2025-08-08 17:48:26 +09:00
aclist ee0fd7b78c fix: handle unspecified args 2025-08-08 17:47:37 +09:00
aclist 562f6453dc fix: use correct path 2025-08-08 17:46:58 +09:00
aclist 51308e788e feat: parse server details 2025-08-08 17:41:38 +09:00
aclist acc356d3a0 chore: resolve QA errors 2025-08-08 17:40:38 +09:00
aclist eaedde7ee5 fix: clarify wording 2025-08-08 17:39:52 +09:00
aclist 43f32638f8 chore: bump version
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-07-30 02:25:29 +09:00
aclist 12b82cd1dd Merge pull request #224 from aclist/prerelease/6.0.0
Prerelease/6.0.0
2025-07-30 02:11:53 +09:00
aclist 6081e6d2a7 chore: update funcs version 2025-07-30 00:59:49 +09:00
aclist f7af8ff35a chore: update changelog 2025-07-30 00:58:48 +09:00
aclist 51a5f4b8ef chore: update checksums 2025-07-30 00:58:16 +09:00
aclist f9ba990142 fix: set expand properties of columns 2025-07-30 00:57:42 +09:00
aclist 09fdbf3a6f chore: update changelog 2025-07-30 00:52:04 +09:00
aclist c57af3086c chore: update checksums 2025-07-30 00:46:32 +09:00
aclist 4e5f988ef7 feat: parse description field 2025-07-30 00:45:22 +09:00
aclist e8c51cbadf feat: details dialog 2025-07-30 00:44:46 +09:00
aclist 495e7c14be chore: drop ping from statusbar 2025-07-30 00:44:01 +09:00
aclist b4ae6a9e8b feat: ping column 2025-07-29 03:01:37 +09:00
aclist 99e13be3e8 chore: update checksums 2025-07-26 02:47:15 +09:00
aclist 760634d3d8 change: normalize steam deck headers 2025-07-26 02:46:11 +09:00
aclist ae67124c10 fix: change return type 2025-07-26 02:45:51 +09:00
aclist 235f4bca37 fix: add version file check 2025-07-26 02:45:23 +09:00
aclist 8ae6d67cca fix: support alternate response format 2025-07-26 02:10:55 +09:00
aclist 50b4ad8e3c fix: use urllib on steam deck 2025-07-26 02:07:48 +09:00
aclist bc712e926d chore: 6.0.0 beta prerelease 2025-07-26 00:37:59 +09:00
aclist 321384dc7b Merge pull request #222 from aclist/release/5.8.0
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
chore: release 5.8.0
2025-07-07 10:28:57 +09:00
aclist e02f02b775 chore: update changelog
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
2025-07-07 10:18:25 +09:00
aclist de524bd2a5 chore: backports from testing 2025-07-06 12:37:29 +09:00
aclist 6d7b2a1d19 Merge pull request #221 from aclist/feat/filter-official
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
feat: filter official
2025-07-06 12:25:16 +09:00
aclist 4c504a7bd9 chore: update versions 2025-07-06 12:22:12 +09:00
aclist 133966ef36 feat: filter official 2025-07-06 12:11:56 +09:00
aclist ec23a4eb2e Merge pull request #220 from aclist/feat/coc3
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
feat: add code of conduct
2025-06-05 17:50:37 +09:00
aclist 169f4c051d feat: add code of conduct 2025-06-05 17:50:11 +09:00
aclist edee9b6234 Merge pull request #219 from aclist/feat/coc2
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
feat: add code of conduct
2025-06-05 17:49:08 +09:00
aclist cefd041e08 feat: add code of conduct 2025-06-05 17:48:38 +09:00
aclist 881b0b3008 Merge pull request #218 from aclist/feat/coc
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
feat: add code of conduct
2025-06-05 17:48:05 +09:00
aclist 2a59441dbc feat: add code of conduct 2025-06-05 17:47:07 +09:00
aclist 6219fb6a78 Merge pull request #217 from aclist/fix/version_no
fix: version number
2025-06-05 17:32:30 +09:00
aclist 02105807fb fix: version number 2025-06-05 17:31:59 +09:00
aclist 74bfdf42ae Merge pull request #216 from aclist/feat/fetch_ipdb
feat: auto fetch geolocation records
2025-06-05 17:29:56 +09:00
aclist ede7f345da fix: change date in changelog 2025-06-05 17:29:06 +09:00
aclist e18d203449 feat: auto fetch geolocation records 2025-06-05 17:25:14 +09:00
aclist 99fbc7a2cc chore: update IP checksum 2025-04-17 22:14:52 +09:00
aclist 5ab18d0796 Merge pull request #214 from aclist/release/5.7.0
Release/5.7.0
2025-04-17 22:13:38 +09:00
aclist 23e3d34947 chore: update IP checksum 2025-04-17 21:52:36 +09:00
aclist b86dd37b50 chore: bump minor version 2025-04-17 21:50:33 +09:00
aclist 59fdd30236 docs: update changelog 2025-04-17 21:49:35 +09:00
aclist a35bfda5f1 fix: constrain window to viewport 2025-04-17 21:47:47 +09:00
aclist 5393bf1f5f fix: more robust ping method 2025-04-17 21:43:43 +09:00
aclist 317212ed6a Merge pull request #212 from aclist/chore/update-checksum
chore: update helper checksum
2025-04-17 21:39:45 +09:00
aclist 7ec8d6c3bf chore: update checksum 2025-04-17 21:39:09 +09:00
aclist cf053299f7 Merge pull request #210 from aclist/fix/preboot
chore: backports from stable
2025-04-05 19:17:36 +09:00
aclist 5ba23249bf chore: backports from stable 2025-04-05 19:16:28 +09:00
aclist 90b3aa8663 Merge pull request #209 from aclist/aclist-patch-1
chore: update CHANGELOG.md
2025-04-05 09:15:56 +09:00
aclist 728e4daf7c chore: update CHANGELOG.md 2025-04-05 09:15:23 +09:00
aclist 7a210c7f39 Merge pull request #208 from aclist/fix/test-connection
chore: drop pre-boot check
2025-04-05 09:08:35 +09:00
aclist 459dd69359 chore: bump version 2025-04-05 09:07:02 +09:00
aclist fbd1a355d5 chore: drop pre-boot api check 2025-04-05 09:03:29 +09:00
aclist 406943bc12 fix: reduce startup time 2025-03-21 02:15:03 +09:00
aclist 82d2afb1f2 Merge pull request #207 from aclist/chore/2025-03-ipdb
chore: update ip records
2025-03-16 12:18:52 +09:00
aclist 4eb3171891 Merge pull request #205 from aclist/fix/flowed-grid
fix: flowed grid
2025-03-16 12:18:37 +09:00
aclist 8193980878 chore: update ip records 2025-03-16 12:17:41 +09:00
aclist 38de9a8e9d fix: interpolate file name 2025-03-16 12:04:10 +09:00
aclist 10c8555ddc fix: local var 2025-03-16 12:02:15 +09:00
aclist ec0e276100 chore: drop logging 2025-03-16 12:00:41 +09:00
aclist 3c235e22ed chore: update changelog 2025-03-15 17:43:28 +09:00
aclist acdb34d36a Merge pull request #206 from aclist/chore/index-url
chore: update to new index url
2025-03-15 17:01:19 +09:00
aclist d6d0b241e0 chore: update to new index url 2025-03-15 17:00:08 +09:00
aclist 05e897dd31 chore: update changelog 2025-03-15 16:51:54 +09:00
aclist 1b7254003a chore: update ip db checksum 2025-03-15 16:50:25 +09:00
aclist acf43b1591 chore: remove newline 2025-03-15 16:40:31 +09:00
aclist 4cbffaf3ff chore: update checksums 2025-03-15 16:31:44 +09:00
aclist 2e2b738ca6 fix: use same padding on all devices 2025-03-15 16:22:03 +09:00
aclist 22758938bd chore: bump ui version 2025-03-15 12:12:44 +09:00
aclist 52961755ff fix: quit signal being blocked in fullscreen 2025-03-15 12:09:51 +09:00
aclist df872fa4e7 fix: send proper params to halt funcs 2025-03-14 23:47:46 +09:00
aclist 35804df4df fix: move call to other func def 2025-03-14 23:36:52 +09:00
aclist 117814ad61 feat: save window size on quit 2025-03-14 23:34:40 +09:00
aclist afe2882f3b chore: add test ui 2025-03-12 15:14:39 +09:00
aclist f75ef947c9 Merge pull request #204 from aclist/fix/batch-queries
fix: batch queries
2025-03-05 11:15:31 +09:00
aclist 6dc9a719ee fix: split up batch queries 2025-03-05 11:13:20 +09:00
aclist bba793cc52 fix: bump version 2025-03-05 11:11:00 +09:00
aclist 1b360f84ae fix: split up batch queries 2025-03-05 11:10:41 +09:00
aclist 785df28f66 Merge pull request #202 from aclist/chore/backports
chore: backports
2025-02-12 20:15:51 +09:00
aclist 66e114a400 chore: backports 2025-02-10 17:54:45 +09:00
aclist bb976644cb Merge pull request #201 from aclist/feat/steam
feat: steam
2025-02-10 17:52:10 +09:00
aclist aaaf653c57 docs: update URL 2025-02-10 17:31:29 +09:00
aclist 76e8640476 docs: update changelog 2025-02-10 17:28:44 +09:00
aclist eff6450d49 chore: update checksum 2025-02-10 17:27:52 +09:00
aclist eee65314e8 fix: abstract funcs file path 2025-02-10 17:27:22 +09:00
aclist fc6e8ef001 chore: drop unused env var 2025-02-10 17:26:56 +09:00
aclist 08c8862106 feat: check steam env vars 2025-02-10 17:26:18 +09:00
aclist 63307abd52 chore: drop unused var 2025-02-10 17:25:51 +09:00
aclist 2ba07bbba8 Merge pull request #197 from aclist/dzgui
chore: merge stable onto archival branch
2025-02-09 19:55:27 +09:00
aclist 65eda05d9f Merge pull request #200 from aclist/chore/templates-stable
chore: back up templates from stable
2025-02-09 19:54:17 +09:00
aclist f3b3f79bfb chore: back up templates from main 2025-02-09 19:53:25 +09:00
aclist 2ab0b5bbca Merge pull request #199 from aclist/chore/templates
chore: back up templates from main
2025-02-09 19:51:43 +09:00
aclist 5f6679cf34 chore: back up templates from main 2025-02-09 19:50:36 +09:00
aclist 28c7d7f949 Merge pull request #198 from aclist/fix/drop-files
chore: drop extraneous file
2025-02-09 19:02:02 +09:00
aclist d072c8107e chore: drop extraneous file 2025-02-09 19:01:30 +09:00
aclist 0629c8a6ba Merge pull request #196 from aclist/release/5.6.3
chore: update IP db
2025-02-09 18:56:13 +09:00
aclist 8aea4af687 chore: update IP db 2025-02-09 18:55:33 +09:00
aclist 5bc503f209 Merge branch 'testing' of github.com:aclist/dztui into testing 2025-02-09 18:53:43 +09:00
aclist 3a1223be9d chore: update IP db 2025-02-09 18:53:32 +09:00
aclist 0562d8230d Merge pull request #195 from aclist/release/5.6.2
chore: prepare release
2025-01-24 16:40:07 +09:00
aclist 853f353562 chore: test commit 2025-01-23 12:03:18 +09:00
aclist 759327e932 chore: prepare release 2025-01-23 12:02:27 +09:00
aclist 25ec6ec08d Merge pull request #194 from aclist/release/5.7.0-beta.6
fix: resolve regression introduced with 13c6813
2025-01-11 06:43:51 +09:00
aclist be8bf74401 fix: resolve regression introduced with 13c6813 2025-01-11 06:41:22 +09:00
aclist 36753e02f1 Merge pull request #193 from aclist/release/5.6.1
Release/5.6.1
2025-01-10 22:48:54 +09:00
aclist 2ab2e23736 docs: update readme 2025-01-10 22:45:56 +09:00
aclist 34e7b2e480 fix: jq 1.6 support 2025-01-10 22:45:25 +09:00
aclist 63671e2478 fix: use redacted function from helpers 2025-01-10 22:43:00 +09:00
aclist 9e09bd3bb3 fix: uncomment line 2025-01-10 22:41:02 +09:00
aclist 5a292b37c4 fix: jq 1.6 support (#192) 2025-01-10 22:38:20 +09:00
aclist 540d0ad7e4 Update bug_report.yml 2025-01-09 23:32:28 +09:00
aclist 47bea45111 Update feature.yml 2025-01-09 23:32:27 +09:00
aclist d03346b56a Update trouble.yml 2025-01-09 23:32:26 +09:00
aclist 54e0762882 Update feature.yml 2025-01-09 23:31:21 +09:00
aclist 0834a86d33 Update trouble.yml 2025-01-09 23:30:54 +09:00
aclist c6a8841614 Update trouble.yml 2025-01-09 23:30:37 +09:00
aclist df92acb7dc Update bug_report.yml 2025-01-09 23:30:24 +09:00
aclist a333571f94 Update bug_report.yml 2025-01-09 23:28:46 +09:00
aclist 05f88b6019 Update trouble.yml 2025-01-09 23:27:08 +09:00
aclist 0dc339893b docs: update changelog 2025-01-09 23:22:42 +09:00
aclist 923bac8f76 fix: symlink traversal 2025-01-09 23:20:18 +09:00
aclist 1f31c43fe4 Update trouble.yml 2025-01-09 20:39:35 +09:00
aclist 0763416903 Update feature.yml 2025-01-09 20:39:25 +09:00
aclist 3b384c5a4d Update bug_report.yml 2025-01-09 20:39:17 +09:00
aclist 3ab666a807 Merge pull request #190 from aclist/release/5.6.0
Release/5.6.0
2025-01-07 21:46:53 +09:00
aclist 79b0bae05d chore: bump version 2025-01-07 21:41:34 +09:00
aclist 9738de8fd1 chore: backports from stable 2025-01-07 21:40:39 +09:00
aclist c8f7a32284 chore: update db checksum 2025-01-07 21:39:16 +09:00
aclist a070e9fc65 chore: drop unused log file 2025-01-07 20:54:03 +09:00
aclist 5f55e3c664 Merge branch 'release/5.6.0' of github.com:aclist/dztui into release/5.6.0 2025-01-07 20:52:58 +09:00
aclist 07606d8852 docs: update changelog 2025-01-07 20:51:57 +09:00
aclist afffc90abc Update trouble.yml 2025-01-07 19:55:31 +09:00
aclist 70db7b45b3 Update trouble.yml 2025-01-07 19:54:19 +09:00
aclist aac8558079 Update trouble.yml 2025-01-07 19:53:15 +09:00
aclist ac8ff2febf Update trouble.yml 2025-01-07 19:52:29 +09:00
aclist 6369d895fd Update feature.yml 2025-01-07 19:51:58 +09:00
aclist 7413f7c029 Update bug_report.yml 2025-01-07 19:51:46 +09:00
aclist 3f1d8cb24f Merge branch 'dzgui' into release/5.6.0 2025-01-07 00:59:57 +09:00
aclist 4df12605fc chore: update changelog 2025-01-07 00:55:58 +09:00
aclist d7b1d72042 Merge pull request #184 from aclist/release/5.6.0-beta.21
feat: add tooltips
2025-01-07 00:45:46 +09:00
aclist 83fb021aa9 docs: update changelog 2025-01-07 00:44:20 +09:00
aclist 54a7c7976c change: update URL 2025-01-07 00:33:58 +09:00
aclist 0e18839024 fix: dict, not list 2025-01-06 23:30:14 +09:00
aclist c9c8337c3b chore: update image 2025-01-06 22:58:01 +09:00
aclist 2d7ab3aec6 docs: update readme 2025-01-06 22:16:21 +09:00
aclist adb921dc93 chore: update changelog 2025-01-06 22:09:18 +09:00
aclist 2b4649ac6e chore: drop docs 2025-01-06 22:08:48 +09:00
aclist 2c5da88e06 Update bug_report.yml 2025-01-06 20:28:34 +09:00
aclist 3cb6175436 Update feature.yml 2025-01-06 20:28:23 +09:00
aclist 3739f19ab2 Update trouble.yml 2025-01-06 20:28:12 +09:00
aclist 2da4d001d6 Update trouble.yml 2025-01-06 20:27:30 +09:00
aclist 5d61a1f513 Update trouble.yml 2025-01-06 20:26:29 +09:00
aclist 56c80d187b Update trouble.yml 2025-01-06 20:26:20 +09:00
aclist e08f66cdcb Update trouble.yml 2025-01-06 20:25:22 +09:00
aclist 48fee301bb Update trouble.yml 2025-01-06 20:24:47 +09:00
aclist 20511f5661 Update trouble.yml 2025-01-06 20:24:14 +09:00
aclist d2e8333ba9 Update trouble.yml 2025-01-06 20:21:10 +09:00
aclist 5d37039064 Update trouble.yml 2025-01-06 20:20:57 +09:00
aclist ce44cdbc54 Update trouble.yml 2025-01-06 20:20:36 +09:00
aclist 5b2738420e Create trouble.yml 2025-01-06 20:19:41 +09:00
aclist 1e29288e2a Update feature.yml 2025-01-06 20:10:08 +09:00
aclist 745cc06091 Update feature.yml 2025-01-06 20:09:08 +09:00
aclist 0311cc8a95 Create feature.yml 2025-01-06 20:08:29 +09:00
aclist 7c3521cf97 Delete .github/ISSUE_TEMPLATE/feature.md 2025-01-06 20:08:16 +09:00
aclist bb0eefadd2 Delete .github/ISSUE_TEMPLATE/test.yml 2025-01-06 20:03:41 +09:00
aclist 7eb5a4fac5 Update bug_report.yml 2025-01-06 20:02:52 +09:00
aclist ebce329c3d Delete .github/ISSUE_TEMPLATE/bug_report.md 2025-01-06 20:02:38 +09:00
aclist 23464d3b51 Update bug_report.yml 2025-01-06 20:01:30 +09:00
aclist 602a7b8edc Update bug_report.yml 2025-01-06 19:59:20 +09:00
aclist 59c58a1df5 Update bug_report.yml 2025-01-06 19:57:56 +09:00
aclist 830318d98e Update bug_report.yml 2025-01-06 19:57:00 +09:00
aclist 271c3e6197 Update bug_report.yml 2025-01-06 19:56:39 +09:00
aclist 1ab9634069 Update bug_report.yml 2025-01-06 19:54:29 +09:00
aclist 8666b0055a Update bug_report.yml 2025-01-06 19:53:52 +09:00
aclist 406554e011 Create bug_report.yml 2025-01-06 19:50:39 +09:00
aclist 5334d07f7f Create test.yml 2025-01-06 19:41:34 +09:00
aclist 6cab96d1f8 Create config.yml 2025-01-06 19:39:18 +09:00
aclist bc94d989d4 Delete .github/feature.md 2025-01-06 19:37:57 +09:00
aclist e4fff5f242 Create feature.md 2025-01-06 19:37:38 +09:00
aclist 53f2fe922a Create feature.md 2025-01-06 19:37:00 +09:00
aclist 800f68a1b7 Update bug_report.md 2025-01-06 19:32:55 +09:00
aclist c6c377e8b9 Update bug_report.md 2025-01-06 19:30:16 +09:00
aclist 7a68d7e097 Update issue templates 2025-01-06 19:27:44 +09:00
aclist 5da4d16ed8 feat: add tooltips 2025-01-06 17:23:38 +09:00
aclist 2158635e64 chore: add gitignore 2025-01-06 17:04:12 +09:00
aclist 8817a5db23 chore: add YAML file 2024-12-25 14:22:39 +09:00
aclist f60a6edf2b Merge pull request #182 from aclist/patch/yaml
Patch/yaml
2024-12-25 14:21:49 +09:00
aclist 8c33a1b371 chore: drop branch logic 2024-12-25 14:21:24 +09:00
aclist e5f7391b89 chore: add YAML file 2024-12-25 14:20:36 +09:00
aclist a8f51280e8 Update mirror.yml 2024-12-25 14:19:04 +09:00
aclist c19346529b Update mirror.yml 2024-12-25 14:12:08 +09:00
aclist 85451f765b Update mirror.yml 2024-12-25 14:09:54 +09:00
aclist 5a144f7815 Merge pull request #179 from jiriks74/add_mirror_action
feat(ci): Add workflow for pushing to Codeberg
2024-12-25 12:42:58 +09:00
aclist 7d2bb7ddc5 Merge pull request #181 from aclist/release/5.6.0-beta.20
fix: more performant link traversal
2024-12-23 21:39:17 +09:00
aclist 3b5960cb16 fix: enclose paths 2024-12-23 21:38:15 +09:00
aclist 3cd99911a6 chore: remove stray line 2024-12-23 21:00:18 +09:00
aclist 4e968e63e5 fix: more performant link traversal 2024-12-23 20:58:21 +09:00
aclist 21e9e140d1 Merge pull request #180 from aclist/release/5.6.0-beta.19
Release/5.6.0-beta.19
2024-12-20 10:35:43 +09:00
aclist 973e2dc100 fix: shorten symlink check time 2024-12-19 10:21:44 +09:00
aclist bdea37ddc4 chore: cleanup 2024-12-18 20:57:09 +09:00
aclist 9b2ec79aa5 feat: redact usernames 2024-12-18 20:56:14 +09:00
aclist 4a95316412 feat: redact usernames 2024-12-18 20:55:01 +09:00
aclist 99d964bf44 chore: bump version 2024-12-18 18:22:41 +09:00
aclist 471cfec94b Merge pull request #174 from jiriks74/testing
fix(checks): Check `vm.max_map_count` using `cat`
2024-12-18 18:19:48 +09:00
aclist 717070ec40 Merge pull request #177 from aclist/release/5.6.0-beta.18
feat: open workshop subscriptions
2024-12-18 17:29:29 +09:00
aclist a18d68776f chore: add logging 2024-12-18 17:26:31 +09:00
jiriks74 2370e81403 feat(ci): Add workflow for pushing to Codeberg 2024-12-17 17:24:32 +01:00
jiriks74 c73120295a fix(checks): Check vm.max_map_count using cat
This solves multiple issues:
- We don't need `sudo` to check the value anymore
- Some systems may not have `sysctl` available
  - IDK about desktops, but my Debian server doesn't have this command
  (for whatever reason)
2024-12-17 15:54:17 +01:00
aclist 6e3746e9b4 fix: abort path discovery 2024-12-16 15:21:57 +09:00
aclist 34b3d3bc8c chore: drop unused var 2024-12-16 14:49:55 +09:00
aclist 4d3d9bf0bb feat: open workshop subscriptions 2024-12-15 09:08:35 +09:00
aclist e6b5e40bb2 chore: add logging 2024-12-15 08:57:25 +09:00
aclist c11511abff Merge pull request 'chore: backports into stable' (#5) from release/testing-backports into dzgui
Reviewed-on: https://codeberg.org/aclist/dztui/pulls/5
2024-12-13 01:50:01 +00:00
aclist bda7223ac8 Merge pull request #176 from aclist/release/testing-backports
Release/testing backports
2024-12-13 10:47:54 +09:00
aclist 6b48ee127d chore: backports into stable 2024-12-13 10:45:39 +09:00
aclist 822db9edfe Merge pull request #175 from aclist/release/cb-backports
Release/cb backports
2024-12-13 10:30:20 +09:00
aclist 3fce2cc3ad fix: return codes 2024-12-13 10:18:56 +09:00
aclist 4da78d33f3 fix: clean up URLs 2024-12-13 09:58:44 +09:00
aclist 5d6cbaa1a5 chore: bump version 2024-12-13 09:51:31 +09:00
aclist d4d0593927 fix: add fallback logic to installscript 2024-12-13 09:49:39 +09:00
aclist cbecf569ad fix: add fallbacks and remote resource checks 2024-12-13 09:40:46 +09:00
aclist aa8a52bfc0 Merge pull request 'release/readme' (#4) from release/readme into dzgui
Reviewed-on: https://codeberg.org/aclist/dztui/pulls/4
2024-12-12 09:33:32 +00:00
aclist 8ea62434ee docs: update docs link 2024-12-12 18:32:44 +09:00
aclist c5785d1857 docs: update docs link 2024-12-12 18:31:58 +09:00
aclist baeaeb1b64 docs: update README 2024-12-12 17:57:27 +09:00
aclist 32b424da5c fix: update installscript 2024-12-12 12:25:26 +09:00
aclist d71110d0a1 fix: url syntax 2024-12-12 12:10:04 +09:00
aclist 62e6da2abb fix: url syntax 2024-12-12 12:08:57 +09:00
aclist bc9178d2de fix: triage hotfix from testing 2024-12-12 11:56:10 +09:00
aclist 12b1c392df fix: initial setup 2024-12-12 11:50:18 +09:00
aclist 1be68e7be3 fix: enable redirects 2024-12-12 11:38:16 +09:00
aclist 33b2aa85df Merge pull request 'fix: Set up alternate host' (#2) from release/triage into testing
Reviewed-on: https://codeberg.org/aclist/dztui/pulls/2
2024-12-12 02:33:22 +00:00
aclist 4b95033c19 chore: add comments 2024-12-12 11:31:32 +09:00
aclist ea0d94a2fc fix: interpolate old vars 2024-12-12 11:25:50 +09:00
aclist 7c5bd76e8f fix: test connection control flow 2024-12-12 11:16:46 +09:00
aclist a079d554bc chore: bump version 2024-12-12 11:13:48 +09:00
aclist 0197e0f921 fix: conditional remote url logic 2024-12-12 11:08:07 +09:00
aclist 01081a29e7 Merge branch 'release/triage' of codeberg.org:aclist/dzgui into release/triage 2024-12-12 10:27:52 +09:00
aclist 1da2e72928 fix: update installscript 2024-12-12 10:27:38 +09:00
aclist f503c89c2b fix: line wrapping 2024-12-12 00:58:56 +00:00
aclist eaf9d5ad3e fix: change remote URLs 2024-12-12 09:54:44 +09:00
aclist 8dc9ad3313 fix: add missing function definition 2024-12-07 14:02:50 +09:00
aclist 3adac2a211 Merge pull request #173 from aclist/release/5.6.0-beta.10
Release/5.6.0-beta.10
2024-12-05 08:25:19 +09:00
aclist 8fdc29d47d chore: bump version 2024-12-05 08:23:51 +09:00
aclist 336b988282 fix: untoggle highlight button (#169, 170) 2024-12-05 08:15:45 +09:00
aclist 6d332f613e chore: guard clause 2024-12-05 08:13:29 +09:00
aclist a46c2e17ab chore: remove unused values 2024-12-05 08:12:20 +09:00
aclist 13c6813c8e feat: resolve ip when saving records 2024-12-05 08:11:39 +09:00
aclist 43a639005f chore: move comments 2024-12-05 08:10:31 +09:00
aclist 75e247b831 fix: remove return values from parse_server_rows() 2024-12-05 08:10:08 +09:00
aclist 5619d55840 fix: update statusbar when removing rows 2024-12-05 08:09:25 +09:00
aclist a4f076fbdb chore: clarify comments 2024-12-05 08:07:16 +09:00
aclist eaa6c11543 fix: typo 2024-12-05 08:06:46 +09:00
aclist ef3fffca47 change: use printf 2024-12-05 08:04:29 +09:00
aclist ac3055ce39 fix: non blocking workshop open 2024-12-05 08:04:00 +09:00
aclist 0fdc132873 fix: array syntax 2024-12-05 08:03:04 +09:00
aclist 6b669e5c21 fix: reset window context on cooldown 2024-12-03 21:41:54 +09:00
aclist a94859a157 change: use LC_NUMERIC 2024-12-03 20:12:18 +09:00
aclist 1533febf9a Merge pull request #172 from aclist/release/5.5.1
fix: backport hotfix (#168)
2024-12-03 20:10:29 +09:00
aclist c3c8872fad fix: backport hotfix (#168) 2024-12-03 20:09:19 +09:00
aclist d5162d6d9e fix: normalize user locale (#168) 2024-11-28 23:25:28 +09:00
aclist 94f9ac52c5 chore: add logging 2024-11-28 22:37:15 +09:00
aclist e28a75cfd9 fix: installed mods race condition (#167) 2024-11-28 17:43:03 +09:00
aclist 885c3bc7e7 chore: update checksums 2024-11-21 23:58:47 +09:00
aclist 6e375d3f24 fix: drop unused parameter 2024-11-21 23:58:38 +09:00
aclist 08af994361 feat: highlight stale mods (#162) 2024-11-21 23:53:10 +09:00
aclist e9cd457233 fix: set window context earlier 2024-11-21 19:06:01 +09:00
aclist fbb133eeb2 chore: uncomment 2024-11-21 17:34:47 +09:00
aclist 9fdc123e2c feat: header bar 2024-11-21 17:28:36 +09:00
aclist 3e9c5a96d9 chore: bump version 2024-11-19 21:51:59 +09:00
aclist 651b50ade2 chore: unify time delta methods 2024-11-19 21:51:43 +09:00
aclist 8b9f751ff1 fix: error handling for no local mods 2024-11-19 21:49:59 +09:00
aclist 32a43cd787 chore: update changelog 2024-11-16 11:37:02 +09:00
aclist 732bc918a7 fix: align local mod signatures 2024-11-16 07:42:52 +09:00
aclist 1b7752588c Merge pull request #165 from aclist/release/5.6.0.beta-1
Release/5.6.0-beta.1
2024-11-13 09:55:45 +09:00
aclist 2087f4ffa8 chore: update changelog 2024-11-13 09:52:49 +09:00
aclist d6d8dde2aa feat: iterate mod deletion 2024-11-13 09:43:23 +09:00
aclist c254de2aec chore: add comments 2024-11-13 09:42:01 +09:00
aclist fbc500066f fix: focus first row 2024-11-13 09:34:25 +09:00
aclist 365b455b3c feat: bulk mod deletion 2024-11-13 09:34:05 +09:00
aclist 50d6bdf74f feat: add pluralize func 2024-11-13 06:19:37 +09:00
aclist 1eed01623a chore: clarify timeout message 2024-11-13 05:53:44 +09:00
aclist 031df3a62f fix: batch MSQ queries 2024-11-13 05:35:50 +09:00
aclist 0dfd727222 change: use enum for popup mode 2024-11-13 05:33:39 +09:00
aclist bae6a57e1e Merge pull request #164 from aclist/dzgui
5.5.0 backports
2024-11-11 09:35:17 +09:00
aclist 3bdc0057a2 Merge pull request #163 from aclist/release/5.5.0-stable
Release/5.5.0 stable
2024-11-11 09:22:06 +09:00
aclist 5496f914f2 fix: correct typo 2024-11-11 09:17:47 +09:00
aclist cb9db55bcb Merge branch 'dzgui' into release/5.5.0-stable 2024-11-11 06:08:47 +09:00
aclist c0ab8111fd chore: bump version 2024-11-11 06:05:56 +09:00
aclist 10c6a79b17 chore: normalize changelog 2024-11-11 06:05:49 +09:00
aclist c01f9714f8 fix: duplicate options in context menu 2024-11-03 22:22:46 +09:00
aclist abcbb1b427 Merge pull request #161 from aclist/release/5.5.0-beta.4
Release/5.5.0-beta.4
2024-11-02 23:23:36 +09:00
aclist 6acc379b92 chore: update checksums 2024-11-01 00:13:04 +09:00
aclist a363afbbf8 fix: recent servers context menu options 2024-11-01 00:11:55 +09:00
aclist ce93fdf869 feat: make fullscreen option sticky 2024-11-01 00:11:09 +09:00
aclist 9d1ff35559 fix: duplicated combobox 2024-10-31 16:54:56 +09:00
aclist be06a87d8d fix: restore keyboard input 2024-10-31 16:41:28 +09:00
aclist f6edbc1c95 chore: bump version 2024-10-30 23:05:14 +09:00
aclist 611f286ca9 Merge pull request #160 from aclist/release/5.5.0
feat: support dlc servers
2024-10-30 23:03:05 +09:00
aclist 4a64ec8292 chore: uncomment 2024-10-30 23:02:14 +09:00
aclist d542631421 docs: update changelog 2024-10-30 23:01:18 +09:00
aclist 9189837a34 feat: support dlc servers 2024-10-30 22:58:56 +09:00
aclist 2b4b533a5b Merge pull request #156 from aclist/release/5.4.2
Release/5.4.2
2024-10-06 03:31:10 +09:00
aclist d7b3ff8b3e chore: update checksum 2024-10-06 03:29:20 +09:00
aclist dcb8be9132 chore: update checksum 2024-10-06 03:27:49 +09:00
aclist 278aa8c28a chore: update checksum 2024-10-06 03:26:24 +09:00
aclist 32e5bafb33 Merge branch 'dzgui' into release/5.4.2 2024-10-06 03:25:16 +09:00
aclist d10cd212b4 fix: sanitize UGC IDs (#155) 2024-10-06 03:19:32 +09:00
aclist 59e19510e3 Merge pull request #152 from aclist/release/5.4.1
Release/5.4.1
2024-09-28 20:51:19 +09:00
aclist 45ab112970 Merge branch 'dzgui' into release/5.4.1 2024-09-25 23:11:28 +09:00
aclist ed07fd0343 chore: normalize changelog 2024-09-25 23:08:29 +09:00
aclist 3e1170ffd8 fix: fallback logic for network traversal (#128) 2024-09-13 11:42:47 +09:00
aclist 523ff2c32d fix: signal control flow 2024-09-10 14:57:33 +09:00
aclist 06359a40ae fix: block/unblock signal handlers 2024-09-10 14:42:51 +09:00
aclist c2c7b37b90 Merge pull request #151 from aclist/release/5.3.0-backports
Release/5.3.0 backports
2024-09-09 17:16:31 +09:00
aclist 23798c91d3 Merge pull request #149 from aclist/release/5.3.0
chore: normalize version
2024-09-01 13:19:35 +09:00
aclist 659cbb83a3 chore: normalize version 2024-09-01 13:19:16 +09:00
aclist 32c467fc6d Merge pull request #147 from aclist/release/5.3.3
Release/5.3.3 (stable)
2024-09-01 13:13:54 +09:00
aclist d01add3573 docs: update changelog 2024-08-29 22:11:49 +09:00
aclist 0de89a3ef1 add: set WM_CLASS name 2024-08-28 08:44:13 +09:00
aclist 5686ea76c2 fix: boolean operator 2024-08-28 08:09:32 +09:00
aclist 80babbfea8 fix: conditional operator 2024-08-28 07:52:20 +09:00
aclist 24a1a8211e chore: bump version 2024-08-28 07:34:09 +09:00
aclist 5fda598173 chore: update url 2024-08-28 07:31:14 +09:00
aclist 049fb47019 chore: normalize version 2024-08-28 07:30:38 +09:00
aclist 81f269b71b chore: normalize changelog 2024-08-28 07:29:02 +09:00
aclist 5a76a0f89b chore: resize icon 2024-08-28 07:23:51 +09:00
aclist f6bf0879cd docs: update changelog 2024-08-28 07:23:11 +09:00
aclist 4e034c5200 fix: testing url 2024-08-28 07:22:13 +09:00
aclist 60b6648218 fix: uncomment function call 2024-08-28 07:13:09 +09:00
aclist 5a3c86fdf5 fix: return when aborting main loop 2024-08-28 07:12:33 +09:00
aclist e1c3855d72 docs: update changelog 2024-08-28 06:56:17 +09:00
aclist 4bd7f684c2 fix: detect APU variants 2024-08-28 06:52:01 +09:00
aclist 24a916c11c fix: helper file permissions 2024-08-06 13:27:53 +09:00
aclist 138a6ff7c8 fix: process lan option contextually 2024-08-05 06:08:05 +09:00
aclist e6244370dd feat: scan LAN servers 2024-08-05 06:03:15 +09:00
aclist c6a4b419dd chore: update changelog 2024-08-04 08:01:54 +09:00
aclist 56a6e7ac3d fix: pack player names correctly 2024-08-04 07:57:37 +09:00
aclist 9800e6b346 chore: normalize version 2024-07-19 01:06:47 +09:00
aclist e157a26f2a fix: test for empty dir 2024-07-19 01:06:13 +09:00
aclist 7c4cbecb47 fix: pack launch parameters into array #136 2024-07-16 22:23:05 +09:00
aclist 3acab049d4 fix: clerical update to #136 2024-07-16 21:28:03 +09:00
aclist a14ccfd40a Merge pull request #135 from aclist/release/5.3.3
Release/5.3.3
2024-07-16 20:44:33 +09:00
aclist 89d839d61a chore: bump version 2024-07-16 20:43:48 +09:00
aclist cc05212e31 fix: encapsulate player names 2024-07-16 20:43:22 +09:00
aclist d48089902c Merge pull request #134 from aclist/docs/kb
Docs/kb
2024-07-14 22:28:09 +09:00
aclist c97a7a260f Merge pull request #133 from aclist/docs/kb
docs: update API info
2024-07-14 22:26:03 +09:00
aclist 5a45e20cbe docs: update API info 2024-07-14 22:24:48 +09:00
aclist b715eb5a3e Merge pull request #132 from aclist/docs/kb
docs: fix url
2024-07-06 20:45:12 +09:00
aclist 87deb89b82 docs: fix url 2024-07-06 20:44:09 +09:00
aclist 5080c201b5 docs: fix url 2024-07-06 20:43:14 +09:00
aclist 746a562409 Merge pull request #131 from aclist/docs/kb
docs: update main documentation
2024-07-06 20:40:06 +09:00
aclist 992e129c92 Merge pull request #130 from aclist/docs/kb
docs: update main documentation
2024-07-06 20:39:43 +09:00
aclist cb9a87d4c6 docs: update main documentation 2024-07-06 20:38:56 +09:00
aclist f3a340b05c Merge pull request #129 from aclist/docs/kb
Docs/kb
2024-07-06 20:36:30 +09:00
aclist e428fc7e2d docs: add knowledge base 2024-07-06 20:34:42 +09:00
aclist 3cac83cee9 chore: update changelog 2024-07-02 14:43:46 +09:00
aclist 6461453f75 Merge pull request #127 from aclist/release/5.3.2
Release/5.3.2
2024-07-02 14:37:22 +09:00
aclist 0b6815dc92 Merge branch 'dzgui' into release/5.3.2 2024-07-02 14:35:40 +09:00
aclist f8dd5a572c docs: update changelog 2024-07-02 14:34:15 +09:00
aclist b687a8916a chore: bump version 2024-07-02 14:30:32 +09:00
aclist c79cc5832e fix: incomplete gametypes truncating list 2024-07-02 14:27:37 +09:00
aclist 8e6cf7e792 Merge pull request #126 from aclist/dzgui
backports
2024-06-23 12:51:24 +09:00
aclist 7b4c778d52 Merge pull request #125 from aclist/docs/update
Docs/update
2024-06-23 12:50:55 +09:00
aclist 02165de680 docs: backports 2024-06-23 12:49:17 +09:00
aclist 6f826d56a6 docs: reword docs 2024-06-23 12:48:23 +09:00
aclist fb6bb4f5b2 chore: update image 2024-06-23 12:47:47 +09:00
aclist 98868073a5 Merge pull request #124 from aclist/dzgui
backports
2024-06-23 12:00:35 +09:00
aclist e5042cb523 docs: add uninstall info 2024-06-23 11:31:06 +09:00
aclist 0425dda001 Merge pull request #123 from aclist/docs/uninstall
docs: add uninstall info
2024-06-23 11:30:38 +09:00
aclist 13ee8c777d docs: add uninstall info 2024-06-23 11:29:49 +09:00
aclist 5d006d421d docs: fix typo 2024-06-19 02:37:02 +09:00
aclist f708ef9567 Merge pull request #122 from aclist/docs/5.3.1
docs: fix typo
2024-06-19 02:36:32 +09:00
aclist 46b18c8a3e docs: fix typo 2024-06-19 02:35:41 +09:00
aclist 37729aad46 chore: backports 2024-06-16 04:05:26 +09:00
aclist f401ee66a3 Merge pull request #121 from aclist/release/5.3.1
Release/5.3.1
2024-06-16 04:04:53 +09:00
aclist 3eaff5319e chore: update changelog 2024-06-16 04:04:24 +09:00
aclist 4c944ecffc chore: update changelog 2024-06-16 04:02:30 +09:00
aclist 801874720a chore: bump version 2024-06-16 03:59:18 +09:00
aclist 33c919651e docs: add uninstall 2024-06-16 03:57:29 +09:00
aclist 6028ada2db chore: backports 2024-06-16 03:48:02 +09:00
aclist d5de099eb3 Merge pull request #119 from aclist/release/5.3.0
Release/5.3.0
2024-06-16 03:46:39 +09:00
aclist d4c64b8742 chore: bump version 2024-06-16 03:43:39 +09:00
aclist 806dbf4021 fix: auto discovery 2024-06-16 03:29:04 +09:00
aclist 76efe39a70 fix: retain config path on partial uninstall 2024-06-16 02:59:59 +09:00
aclist 4dd2a2941f fix: setup handling 2024-06-16 02:57:28 +09:00
aclist ff7f09015c feat: uninstall 2024-06-13 01:42:34 +09:00
aclist e08fa0bcba Merge pull request #118 from aclist/cooldown
Cooldown
2024-06-11 02:27:38 +09:00
aclist f1ef21dcb9 chore: resolve merge conflicts 2024-06-11 02:23:58 +09:00
aclist 3a47ee9057 chore: uncomment 2024-06-11 02:15:23 +09:00
aclist dda35074fb chore: drop old file 2024-05-30 14:22:19 +09:00
aclist 3f301a2199 chore: backports 2024-05-29 15:29:45 +09:00
aclist d15b7c7136 chore: backports 2024-05-29 15:21:32 +09:00
aclist 0b1bab9592 Merge pull request #116 from aclist/aclist-patch-1
Update CHANGELOG.md
2024-05-29 15:17:20 +09:00
aclist cfbe7350fe Update CHANGELOG.md 2024-05-29 15:17:06 +09:00
aclist 14ec892848 Merge pull request #115 from aclist/release/5.2.4
fix: old path reinsertion
2024-05-29 15:15:53 +09:00
aclist 0fee425260 fix: old path reinsertion 2024-05-29 14:36:01 +09:00
aclist f7cb8381d0 Merge pull request #114 from aclist/release/docs
docs: mention locale support
2024-05-22 12:20:24 +09:00
aclist 66b67ea67c docs: mention locale support 2024-05-22 12:18:32 +09:00
aclist 05cc4d5656 Merge pull request #110 from aclist/release/5.2.3
Release/5.2.3
2024-04-23 12:08:20 +09:00
aclist dce4ad75db chore: update geolocation records 2024-04-23 11:59:42 +09:00
aclist bb31ccbf5d docs: update readme 2024-04-22 12:24:13 +09:00
aclist ec72772ac4 chore: update IP records 2024-04-22 10:44:13 +09:00
aclist 88cc8b1f7f chore: update docs 2024-04-22 10:12:16 +09:00
aclist e7103d91ce chore: update docs 2024-04-22 10:09:01 +09:00
aclist 4cb00d6fe9 chore: normalize version 2024-04-21 09:22:37 +09:00
aclist ecfc2c490e chore: add icon 2024-04-21 09:18:29 +09:00
aclist 5a6a2f5481 chore: add images 2024-04-21 09:17:45 +09:00
aclist 65dc0c719c chore: reword label 2024-04-21 09:16:32 +09:00
aclist 410624fa0e feat: add debug button to main menu 2024-04-20 13:42:34 +09:00
aclist f70def4802 chore: drop deprecated config key 2024-04-20 12:56:18 +09:00
aclist b9f4e5b6ea chore: backports from stable 2024-04-20 12:52:47 +09:00
aclist 0a58bec814 docs: correct typo 2024-04-19 07:33:27 +09:00
aclist 5d81a1a87e feat: add icon 2024-04-19 07:22:41 +09:00
aclist 8cc1afd5fa chore: add square icon 2024-04-19 05:50:59 +09:00
aclist ee831f076a docs: update docs 2024-04-19 05:49:42 +09:00
aclist e80e987958 docs: update changelog 2024-04-03 11:41:02 +09:00
aclist 73e78257c3 docs: update changelog 2024-04-03 11:40:51 +09:00
aclist ba3cff4755 docs: correct typo 2024-04-02 11:59:14 +09:00
aclist da4476897f docs: correct typo 2024-04-02 11:58:47 +09:00
aclist f050105102 docs: update dependencies 2024-04-01 17:12:02 +09:00
aclist 931352f975 fix: auto discovery 2024-04-01 17:11:19 +09:00
aclist e5948ead02 fix: auto discovery 2024-04-01 17:08:45 +09:00
aclist bdcd1b6511 fix: version syntax 2024-03-22 00:00:43 +09:00
aclist e11b743cdf feat: backports 2024-03-21 23:59:55 +09:00
aclist 3fea7d1f52 feat: refresh player count 2024-03-21 22:03:38 +09:00
aclist aea46f4bc2 Merge branch 'dzgui' of github.com:aclist/dztui into dzgui 2024-03-18 19:53:13 +09:00
aclist 4c7237264a fix: hotfix for remote file paths 2024-03-18 19:53:06 +09:00
aclist c922343757 chore: update changelog 2024-03-18 19:45:47 +09:00
aclist b09505120e feat: ping servers 2024-03-18 19:44:44 +09:00
aclist 678f1143c5 docs: update changelog 2024-03-13 22:59:52 +09:00
aclist b9872fbb74 feat: resizable columns 2024-03-13 21:24:56 +09:00
aclist d0961fddb6 fix: branch selection logic 2024-03-12 02:29:24 +09:00
aclist 4e2c2ea571 feat: auto mod install 2024-03-10 16:29:47 +09:00
aclist f3c67f08ac fix: drop extraneous log file 2024-02-22 10:55:04 +09:00
aclist 3fa815cd4e fix: drop extraneous log file 2024-02-22 10:53:31 +09:00
aclist a5b565bcb9 chore: update image 2024-02-10 18:36:31 +09:00
aclist 2da5d0936b chore: backports 2024-02-10 18:35:49 +09:00
aclist 45b39ba5d4 chore: update image 2024-02-10 18:32:50 +09:00
aclist 7b73f5c195 fix: var name 2024-02-09 20:01:13 +09:00
aclist 131fa6c824 chore: backports 2024-02-01 05:38:22 +09:00
aclist 2b71af1e2f fix: restrictive exe search 2024-02-01 05:37:01 +09:00
aclist 6a2edc0929 fix: steam deck flags 2024-01-31 19:49:29 +09:00
aclist 8d740e51c5 chore: bump version 2024-01-31 19:41:22 +09:00
aclist 73a990cafc chore: update warning message 2024-01-31 19:31:48 +09:00
aclist 58f00d3c45 chore: update warning message 2024-01-31 19:31:30 +09:00
aclist 9db99ccbd8 fix: print message when adding record 2024-01-31 19:11:12 +09:00
aclist 71757fe982 fix: print message when adding record 2024-01-31 19:09:26 +09:00
aclist 7d86af03f1 fix: variable name 2024-01-31 18:52:33 +09:00
aclist 2d95b760d4 fix: variable name 2024-01-31 18:51:55 +09:00
aclist ebe54d812c feat: GTK bindings 2024-01-31 18:36:08 +09:00
aclist b16e613094 chore: news 2024-01-31 18:12:45 +09:00
aclist e6d62c94fa chore: drop check news 2024-01-31 18:07:47 +09:00
aclist eeffd3a293 fix: set real branch correctly 2024-01-31 18:06:03 +09:00
aclist dfa70ed3b2 docs: update changelog 2024-01-31 18:03:20 +09:00
aclist 155b1850e3 fix: set branch on update 2024-01-31 18:01:10 +09:00
aclist 85f4f7e7f2 fix: check architecture 2024-01-31 17:29:48 +09:00
aclist 23bd692fca fix: update launch flags 2024-01-31 17:21:16 +09:00
aclist 3c679aadaa fix: check for helpers sooner 2024-01-31 16:59:25 +09:00
aclist 419919ffdc fix: uncomment line 2024-01-31 16:19:03 +09:00
aclist ac8a5f8175 fix: set margins 2024-01-31 16:17:45 +09:00
aclist 274df41748 fix: changelog URL 2024-01-29 18:36:50 +09:00
aclist aaf3cf8ef8 fix: uncomment function 2024-01-29 18:33:04 +09:00
aclist ba32e14e81 chore: test changelog 2024-01-29 18:32:44 +09:00
aclist a1689b5677 fix: force fullscreen on GM 2024-01-29 18:32:01 +09:00
aclist e197e07e84 fix: clean up leaky dialogs 2024-01-29 18:09:48 +09:00
aclist 4beb44efa7 fix: uncomment fetch helpers 2024-01-26 18:37:28 +09:00
aclist 1a8fd02b60 fix: newline in modlist 2024-01-26 18:36:17 +09:00
aclist 62613d9533 fix: set titlebar correctly 2024-01-26 18:24:06 +09:00
aclist 9b84a168b8 fix: remove duplicates 2024-01-25 15:29:12 +09:00
aclist e2781c07cf fix: destroy signals 2024-01-25 15:00:18 +09:00
aclist 0fde301c21 fix: debug key not echoing 2024-01-25 13:29:57 +09:00
aclist 2f9c74e13b fix: automod WIP 2024-01-24 21:56:47 +09:00
aclist 04cb132219 fix: automod WIP 2024-01-24 17:50:47 +09:00
aclist 8effa44a08 fix: automod, wrapping 2024-01-24 15:14:47 +09:00
aclist 7d66ffe418 fix: set debug state on boot 2024-01-23 16:04:07 +09:00
aclist ecedc4e147 fix: automod toggle 2024-01-23 15:21:43 +09:00
aclist 858bd066d7 fix: conditional expression 2024-01-23 14:47:14 +09:00
aclist 2ca5bf31d1 fix: close parens 2024-01-23 14:40:45 +09:00
aclist 896a564764 feat: automod 2024-01-23 14:30:43 +09:00
aclist 86d35c7868 feat: set im module 2024-01-22 14:22:09 +09:00
aclist 359d57a3ef chore: bump version 2024-01-17 10:09:27 +09:00
aclist 08686bb961 chore: drop news 2024-01-17 10:08:24 +09:00
aclist 2202483a4f fix: unclosed braces 2024-01-14 05:15:52 +09:00
aclist 42bee23108 feat: extra sum check 2024-01-13 15:18:34 +09:00
aclist 03ab264e28 feat: early connection test 2024-01-13 15:14:09 +09:00
aclist 87ba21a26a fix: restore URLs 2024-01-13 14:57:23 +09:00
aclist af1bed9319 fix: element name 2024-01-13 11:35:51 +09:00
aclist 208e9ef7ad fix: strip SOH codes 2024-01-13 11:32:12 +09:00
aclist bb07cf3ac7 fix: changelog URL 2024-01-13 11:20:40 +09:00
aclist 0ca94a68d0 chore: test vexpand 2024-01-13 11:09:42 +09:00
aclist c8fed97575 fix: conditional 2024-01-13 11:04:32 +09:00
aclist 2dac511608 fix: else statement 2024-01-13 10:53:12 +09:00
aclist de3dec41a3 fix; align grid elements 2024-01-13 10:47:02 +09:00
aclist 0bc160c13f fix: drop fullscreen 2024-01-13 09:54:17 +09:00
aclist e5c78f95ad fix: grid allocation 2024-01-13 09:52:38 +09:00
aclist 1e17b9b9a3 fix: type coercion 2024-01-13 07:25:36 +09:00
aclist cadcae9b9d fix: stray output in stdout 2024-01-13 07:15:17 +09:00
aclist c6a654d25a chore: update keybindings dialog 2024-01-13 07:07:45 +09:00
aclist 406663cd7a chore: focus in signals 2024-01-13 06:50:34 +09:00
aclist 00452cca5f chore: focus in signals 2024-01-13 06:39:22 +09:00
aclist 2a24bbfe6b fix: type coercion 2024-01-13 06:34:24 +09:00
aclist e05bf49395 chore: bump version 2024-01-13 06:18:59 +09:00
aclist 42512e97a9 fix: shift sys args 2024-01-13 06:16:40 +09:00
aclist ecc790123a chore: bump sums 2024-01-13 06:04:08 +09:00
aclist f3dcd058cd fix: else statement 2024-01-13 06:01:46 +09:00
aclist 00aae2ce84 chore: update sums 2024-01-13 05:53:54 +09:00
aclist 9847c95617 fix: steam deck ui 2024-01-13 05:44:21 +09:00
aclist 810f4dbdc6 chore: update sums 2024-01-13 05:32:39 +09:00
aclist e062d6cb60 chore: bump version 2024-01-13 05:23:41 +09:00
aclist d93c06c5da fix: workshop page on own thread 2024-01-13 05:22:51 +09:00
aclist 6f9aaa252b fix: toggle news 2024-01-13 04:59:26 +09:00
aclist d214d40ad5 fix: handle floats 2024-01-13 04:58:18 +09:00
aclist 43087b44d4 fix: remove quotes on version 2024-01-12 18:09:40 +09:00
aclist d2cad55abc chore: normalize version 2024-01-12 17:31:45 +09:00
aclist cb0f223c59 chore: bump version 2024-01-12 17:04:12 +09:00
aclist c8e61e19c1 chore: update pdialog 2024-01-12 16:08:00 +09:00
aclist 71fd37feb6 chore: comments 2024-01-12 16:00:05 +09:00
aclist b8fbe36c4e fix: curl failing 2024-01-12 15:56:53 +09:00
aclist 66d7d16c36 fix: download toggle 2024-01-12 15:50:00 +09:00
aclist dc4e418540 fix: error handling 2024-01-12 15:32:16 +09:00
aclist 38e1998721 fix: control flow 2024-01-12 15:26:33 +09:00
aclist 0fd5cfdc8b fix: download new version 2024-01-12 15:15:19 +09:00
aclist e5bc3abbd5 chore: update sums 2024-01-12 15:13:42 +09:00
aclist ee1803c73c fix: control flow 2024-01-12 15:11:32 +09:00
aclist de5b530968 fix: return codes 2024-01-12 15:10:02 +09:00
aclist f57973c145 fix: full path to UI helper 2024-01-12 14:34:25 +09:00
aclist 06a389eebe fix: presetup checks 2024-01-12 14:33:33 +09:00
aclist 1566f8ade6 chore: drop old vars 2024-01-12 14:29:27 +09:00
aclist 77ea5836f4 chore: cleanup 2024-01-12 14:27:45 +09:00
aclist 4bd1d4728d chore: update logging 2024-01-12 14:13:41 +09:00
aclist d41082b1d4 feat: GTK UI 2024-01-12 13:39:04 +09:00
aclist b4301c6635 chore: backports 2023-12-18 12:17:38 +09:00
aclist 784f45476a chore: update changelog 2023-12-18 12:16:22 +09:00
aclist 371da6c4bf fix: use update_config func 2023-12-18 12:14:51 +09:00
aclist dc6f82ed6e fix: encapsulate news function 2023-12-18 12:12:46 +09:00
aclist 9fe300cfe4 chore: bump version 2023-12-17 11:23:45 +09:00
aclist 373164b7ee Merge pull request #92 from aclist/patch/lan
Patch/lan
2023-12-17 11:22:43 +09:00
aclist c90f23756d Update CHANGELOG.md 2023-12-17 11:12:02 +09:00
aclist 95b21877a5 Merge branch 'patch/lan' of github.com:aclist/dztui into patch/lan 2023-12-17 07:19:23 +09:00
aclist b7fc8c049c chore: update changelog 2023-12-17 07:19:07 +09:00
aclist 991581b8b2 Merge branch 'dzgui' into patch/lan 2023-12-17 07:11:40 +09:00
aclist c26ced9b71 Merge branch 'patch/lan' of github.com:aclist/dztui into patch/lan 2023-12-17 07:11:12 +09:00
aclist 5259c2f48a chore: bump version 2023-12-17 07:11:00 +09:00
aclist 875784a138 Update CHANGELOG.md 2023-12-17 07:10:24 +09:00
aclist f28044051a chore: update branch 2023-12-17 07:09:59 +09:00
aclist f4d153bad5 chore: update changelog 2023-12-17 07:07:32 +09:00
aclist f47ab95830 chore: bump changelog 2023-12-10 23:02:24 +09:00
aclist 08b9df4507 fix: use raw output 2023-12-09 16:41:42 +09:00
aclist 34fcd5f387 fix: parse correct key 2023-12-08 22:04:21 +09:00
aclist 93635d6af3 fix: format returned ip from local server 2023-12-08 22:02:45 +09:00
aclist ae14ebc327 fix: parse local JSON response 2023-12-08 21:53:59 +09:00
aclist 72fc061abc fix: control flow 2023-12-08 02:59:50 +09:00
aclist a83933ee8f chore: add logging 2023-12-03 17:41:34 +09:00
aclist 25eee69e82 Merge pull request #89 from aclist/patch/edialog
Patch/edialog
2023-12-03 17:29:56 +09:00
aclist bfaaa823fb Merge branch 'testing' into patch/edialog 2023-12-03 17:27:02 +09:00
aclist 3a99486cc2 feat: support kdialog 2023-12-03 17:22:52 +09:00
aclist b5502f9675 feat: support kdialog 2023-12-02 22:37:37 +09:00
aclist 6beca3a6d0 fix: enforce python 3.10 2023-11-23 13:55:15 +09:00
aclist 98217f6bcb chore: add admonition 2023-11-23 13:37:01 +09:00
aclist 1e4fcc2c7a update log output 2023-11-23 13:33:34 +09:00
aclist 108764c285 fix: if statement 2023-11-23 13:24:16 +09:00
aclist aa62d50a79 chore: bump version 2023-11-23 13:23:34 +09:00
aclist 1b6fb4c9e7 chore: backports from stable 2023-11-23 13:23:23 +09:00
aclist f23ff037d4 chore: bump version 2023-11-23 12:45:43 +09:00
aclist 2c41f5a10d fix: backwards compatibility for pre 3.10 python3 2023-11-23 12:45:02 +09:00
aclist 87ad1acb7d fix: update installscript 2023-11-23 00:57:09 +09:00
aclist 8b2900e303 fix: drop executable bit from installscript 2023-11-23 00:56:15 +09:00
aclist 42a6cecd8c fix: update installscript 2023-11-23 00:55:13 +09:00
aclist 31ebf4996d chore: drop stale file 2023-11-23 00:46:10 +09:00
aclist 7a930d7636 chore: bump version 2023-11-23 00:42:36 +09:00
aclist 21b8388a9e docs: bump changelog 2023-11-23 00:33:26 +09:00
aclist f98f6f857f Merge branch 'dzgui' of github.com:aclist/dztui into dzgui 2023-11-23 00:31:08 +09:00
aclist 6836eaee4e fix: pull query file 2023-11-23 00:31:02 +09:00
aclist 3285752c62 Update CHANGELOG.md 2023-11-23 00:20:11 +09:00
aclist 4b3c78a20e Delete changelog.md 2023-11-23 00:11:53 +09:00
aclist effec93adb Update CHANGELOG.md 2023-11-23 00:11:37 +09:00
aclist 3ea92fcba1 Update CHANGELOG.md 2023-11-23 00:11:04 +09:00
aclist dedeeb0758 chore: drop stray output 2023-11-23 00:04:52 +09:00
aclist 653899c16f fix: drop merge artifacts 2023-11-23 00:03:37 +09:00
aclist 6838afab8b chore: merge 2023-11-23 00:00:02 +09:00
aclist 10f8294958 BREAKING CHANGE: new API 2023-11-22 23:39:26 +09:00
aclist 4ce2d0af45 Merge pull request #82 from aclist/release/4.0.0
Release/4.0.0
2023-11-22 22:48:18 +09:00
aclist 5e8989dfd9 Merge branch 'release/4.0.0' of github.com:aclist/dztui into release/4.0.0 2023-11-22 19:13:49 +09:00
aclist c73a9e0c11 chore: normalize version 2023-11-22 19:12:30 +09:00
aclist e69abde0d8 Merge branch 'main' into release/4.0.0 2023-11-22 19:10:59 +09:00
aclist b430f265f9 chore: drop stale urls 2023-11-22 19:10:24 +09:00
aclist 65a84e1905 chore: merge 2023-11-22 19:09:26 +09:00
aclist caba452afa chore: normalize installscript 2023-11-22 18:59:46 +09:00
aclist 34dab465f5 chore: date variable in docs 2023-11-22 18:58:43 +09:00
aclist e5f878040f chore: update news 2023-11-22 18:57:26 +09:00
aclist 2bb86b2a23 chore: remove stale file 2023-11-22 18:56:54 +09:00
aclist 505b6fd4a3 docs: normalize readme 2023-11-22 18:54:09 +09:00
aclist 80854823dd docs: update changelog 2023-11-22 18:44:22 +09:00
aclist 6a08333b08 fix: delete server alignment 2023-11-22 18:33:50 +09:00
aclist 458adf7a6e docs: update changelog 2023-11-22 16:03:08 +09:00
aclist 55b5b9ced0 docs: update changelog 2023-11-22 16:00:39 +09:00
aclist 7348574f35 docs: update docs 2023-11-22 15:56:38 +09:00
aclist 0c99d7d397 docs: remove legacy keys 2023-11-22 15:46:43 +09:00
aclist 0348ebe95e chore: drop legacy vars 2023-11-22 15:43:29 +09:00
aclist ccf914f9bd docs: update docs 2023-11-22 15:31:08 +09:00
aclist 035adb7d3e chore: bump changelog 2023-11-18 14:40:21 +09:00
aclist 7b40d41679 feat: filter by perspective 2023-11-18 14:37:15 +09:00
aclist d0dee98c84 fix: legacy id mapping 2023-11-17 23:16:37 +09:00
aclist 270f4d17f0 docs: fix changelog wrapping 2023-11-15 20:25:41 +09:00
aclist 83850223e2 fix: explicitly exit after dialog 2023-11-15 20:18:11 +09:00
aclist f689f24c15 fix: typo 2023-11-15 20:11:57 +09:00
aclist ba19749979 chore: bump version 2023-11-15 20:10:40 +09:00
aclist ca43aa6e34 fix: block Steam Deck earlier 2023-11-15 20:10:14 +09:00
aclist 7a16c94072 fix: restore width to dialogs 2023-11-15 20:07:18 +09:00
aclist d8e7144ea8 fix: url prefix 2023-11-15 19:59:07 +09:00
aclist e6f808892b BREAKING CHANGE: new query API 2023-11-15 19:53:11 +09:00
aclist bcc5bb8ad8 fix: update news 2023-11-08 07:32:22 +09:00
aclist 7d09a1ef22 chore: update news 2023-11-08 07:32:07 +09:00
aclist 44835dd2b0 fix: strings in switch statement 2023-11-03 00:08:05 +09:00
aclist 1f0701fee5 fix: strings in switch statement 2023-11-03 00:07:38 +09:00
aclist 8738475e16 chore: add interstitial dialogs 2023-11-03 00:06:59 +09:00
aclist 2368544dc1 fix: use ipv4 2023-10-29 11:20:43 +09:00
aclist 8e20e3e397 fix: use ipv4 2023-10-29 11:20:00 +09:00
aclist 2106e4d4dc docs: fix typo 2023-10-22 17:41:17 +09:00
aclist faaa6b3e87 docs: fix typo 2023-10-22 17:40:19 +09:00
aclist 459b6885f1 fix: client targeting when multiple windows open 2023-10-21 23:01:05 +09:00
aclist 0c473d9f41 fix: client targeting when multiple windows open 2023-10-21 23:00:52 +09:00
aclist 550a6755af fix: client targeting when multiple windows open 2023-10-21 23:00:25 +09:00
aclist 7eee02236b chore: backports from stable 2023-10-21 22:39:23 +09:00
aclist 03dd959e09 fix: Steam client switching from minigameslist 2023-10-21 22:28:46 +09:00
aclist 7be0daf16f fix: Steam client switching from minigameslist 2023-10-21 22:28:22 +09:00
aclist dfdcea86af fix: print correct mod size 2023-10-13 18:07:02 +09:00
aclist 1bc896904c fix: print correct mod size 2023-10-13 18:02:36 +09:00
aclist 952b8347ed fix: print correct mod size 2023-10-13 18:02:07 +09:00
aclist 385ae74cee chore: bump version 2023-09-14 16:53:28 +09:00
aclist 4b2984a5d9 fix: fedora 38 hotfix 2023-09-14 16:53:11 +09:00
aclist 075e411f82 fix: fedora 38 hotfix 2023-09-14 16:52:45 +09:00
aclist ad55ee6406 fix: fedora 38 hotfix 2023-09-14 16:50:45 +09:00
aclist ccfca162cf chore: drop newline 2023-08-25 10:35:21 +09:00
aclist 40d9eb1550 chore: drop notification 2023-08-25 10:35:13 +09:00
aclist 1c521db053 chore: drop notification 2023-08-25 10:34:23 +09:00
aclist a73a7e7e42 fix: restore log generation 2023-08-17 23:49:19 +09:00
aclist 2e992f0d9b fix: restore log generation 2023-08-17 23:47:17 +09:00
aclist 08669fa435 fix: force printf locale (#74) 2023-07-26 09:32:44 +09:00
aclist 57460dacb6 chore: restore dropped function 2023-07-25 10:11:28 +09:00
aclist 3f2397ad74 chore: backports from stable 2023-07-25 10:10:07 +09:00
aclist 99d4fa73cd chore: bump version 2023-07-25 09:59:43 +09:00
aclist 8c7a5b5118 fix: future-proof zenity check (#74) 2023-07-25 09:59:32 +09:00
aclist 0132890fa2 fix: do not nest zenity on fedora (#74) 2023-07-25 09:47:23 +09:00
aclist 486938fd39 fix: targeting for new client 2023-07-06 22:07:59 +09:00
aclist a95230be23 fix: targeting for new client 2023-07-06 22:07:29 +09:00
aclist e6837f14fd chore: update news 2023-07-04 19:24:02 +09:00
aclist ca6e1836e8 chore: update news 2023-07-04 19:23:37 +09:00
aclist 022861e671 fix: hotfix for UI targeting 2023-07-04 19:20:03 +09:00
aclist cfb424e577 chore: bump version 2023-07-04 19:19:30 +09:00
aclist 709be503d4 fix: hotfix for UI targeting 2023-07-04 19:18:49 +09:00
aclist 19c0664b6d fix: word splitting 2023-06-19 06:14:11 +09:00
aclist 75282e16f8 fix: word splitting 2023-06-19 06:13:52 +09:00
aclist add1ec5619 chore: additional logging 2023-06-19 05:40:26 +09:00
aclist f56a2f3fe6 chore: additional logging 2023-06-19 05:39:54 +09:00
aclist 73717d8567 chore: add more logging 2023-06-18 21:55:19 +09:00
aclist 9f0f7be1a4 chore: add more logging 2023-06-18 21:53:43 +09:00
aclist b11d53dbea chore: add newline to news 2023-06-15 21:32:35 +09:00
aclist b0eaf80679 chore: bump news 2023-06-15 21:29:11 +09:00
aclist c4b02d3363 docs: parameterize date string 2023-06-15 21:28:28 +09:00
aclist 90bd6ac7d2 chore: bump news 2023-06-15 21:24:46 +09:00
aclist ac5d163525 fix: quote vars 2023-05-29 18:46:53 +09:00
aclist 24b07a9bf9 fix: update URL 2023-05-27 15:09:31 +09:00
aclist 42a8a076ab fix: ports from stable 2023-05-20 19:53:51 +09:00
aclist b22c106ecb chore: debugging symlinks 2023-05-20 13:59:23 +09:00
aclist d79023ce0f chore: debugging symlinks 2023-05-20 12:20:52 +09:00
aclist 5364303dd1 chore: debugging symlinks 2023-05-20 11:58:33 +09:00
aclist aa358cbe12 chore: debugging symlinks 2023-05-20 11:01:00 +09:00
aclist 4fb87ac746 chore: debugging symlinks 2023-05-20 10:39:47 +09:00
aclist b31cfdf273 chore: debugging symlinks 2023-05-20 10:05:02 +09:00
aclist 72eab0daf0 fix: return from history if first time 2023-05-20 10:03:13 +09:00
aclist 85f17aa217 fix: bug in news 2023-05-19 23:33:14 +09:00
aclist b1e77a9588 fix: bug in news 2023-05-19 23:32:59 +09:00
aclist 19a2457996 docs: add docs from stable 2023-05-19 23:32:08 +09:00
aclist a2f994b2ac chore: bump version 2023-05-19 23:30:11 +09:00
aclist f51ac3f1e1 fix: clear files on reinstall 2023-05-19 23:29:50 +09:00
aclist 8d886699b5 fix: ports from stable 2023-05-19 23:29:21 +09:00
aclist b92921e5a2 fix: clear files on reinstall 2023-05-19 23:26:29 +09:00
aclist 186a258a48 fix: clear files on reinstall 2023-05-19 23:25:28 +09:00
aclist 3b94b9117c docs: update docs 2023-05-19 23:25:13 +09:00
aclist 20279752c7 fix: map count check not needed on deck 2023-05-19 23:01:10 +09:00
aclist b660968eed fix: map count check not needed on deck 2023-05-19 23:00:41 +09:00
aclist 83e98201f8 fix: breaking char in news 2023-05-19 13:03:09 +09:00
aclist 94670ff12a docs: update documentation 2023-05-19 12:43:27 +09:00
aclist 080aa574bf fix: case statement 2023-05-19 12:42:15 +09:00
aclist d2b8f44533 docs: update documentation 2023-05-19 12:41:58 +09:00
aclist 8f66d12131 docs: add instructions about sudo 2023-05-17 08:56:50 +09:00
aclist 44de44e78f docs: remove docs 2023-05-17 08:25:37 +09:00
aclist fc78528c4e docs: remove docs 2023-05-17 08:25:17 +09:00
aclist 8f34e85334 Merge branch 'main' of github.com:aclist/dztui 2023-05-17 08:24:29 +09:00
aclist ed6f6fd7cc docs: move docs 2023-05-17 08:24:18 +09:00
aclist 4b4e823c8b Update install.sh 2023-05-17 08:23:02 +09:00
aclist 8e8befcf72 docs: bump news 2023-05-16 20:12:54 +09:00
aclist e75ddd2c11 docs: bump news 2023-05-16 20:12:34 +09:00
aclist 4db53dcf16 docs: bump news 2023-05-16 20:12:16 +09:00
aclist 45b958a01a chore: bump version 2023-05-16 20:10:08 +09:00
aclist 88ffaf5c97 docs: update changelog 2023-05-16 20:09:43 +09:00
aclist b417306d44 docs: update changelog 2023-05-16 20:09:26 +09:00
aclist b57fdb015d chore: bump version 2023-05-16 20:08:29 +09:00
aclist 59315d024a docs: update changelog 2023-05-16 20:08:15 +09:00
aclist 088f682c33 chore: bump version 2023-05-16 20:07:19 +09:00
aclist 039559353f docs: update changelog 2023-05-16 20:06:38 +09:00
aclist a2aa4aac73 feat: ports from stable 2023-05-16 20:05:36 +09:00
aclist c3d299fa4c docs: update changelog 2023-05-16 20:04:31 +09:00
aclist 559386b191 docs: update changelog 2023-05-16 20:04:06 +09:00
aclist 3808a672e3 feat: port features from stable 2023-05-16 20:02:56 +09:00
aclist 6382c3560b fix: interpolate aid in player GET request 2023-05-16 20:01:45 +09:00
aclist 8145d0f587 docs: update changelog 2023-05-16 20:01:04 +09:00
aclist 97ac4c2df6 docs: add disclaimer 2023-05-16 13:53:02 +09:00
aclist dba06cd7c8 docs: remove unreleased 2023-05-16 12:24:29 +09:00
aclist 3b971f111a docs: remove unreleased 2023-05-16 12:23:46 +09:00
aclist 7397c9cd42 fix: detect flatpak path at start 2023-05-16 07:50:16 +09:00
aclist 18a44a14c4 feat: backports from testing 2023-05-16 07:45:56 +09:00
aclist 12f966e7f9 fix: port features from stable 2023-05-16 07:14:56 +09:00
aclist 294386b890 docs: add dark mode file 2023-05-16 07:09:19 +09:00
aclist a632c021cf docs: add dark mode 2023-05-16 07:08:58 +09:00
aclist fcce81fcfe docs: update help file 2023-05-15 21:55:58 +09:00
aclist 4058bfe383 feat: sort My Servers 2023-05-15 17:15:31 +09:00
aclist ac49866749 Merge branch 'main' of github.com:aclist/dztui 2023-05-15 17:13:45 +09:00
aclist 6ff7a7b3d5 docs: update documentation 2023-05-15 17:13:29 +09:00
aclist 12ff53bbfc Update README.md 2023-05-15 11:40:55 +09:00
aclist e67c77ac84 fix: do not capture return code of local var declaration 2023-05-15 10:56:52 +09:00
aclist 6743396428 docs: update readme.md 2023-05-15 10:56:35 +09:00
aclist 3f86408b9c fix: do not capture return code of local var declaration 2023-05-15 10:56:15 +09:00
aclist 901171583c docs: update readme 2023-05-15 10:05:21 +09:00
aclist 6ceac787f0 Merge branch 'main' of github.com:aclist/dztui 2023-05-15 10:04:49 +09:00
aclist f49257ad02 fix: break out of sudo prompt when canceling 2023-05-15 10:04:23 +09:00
aclist 06d4c03aeb fix: break out of sudo prompt when canceling 2023-05-15 10:04:01 +09:00
aclist 69ae5ab3ba Update README.md 2023-05-15 09:44:23 +09:00
aclist d809ad20b6 Update README.md 2023-05-15 09:44:06 +09:00
aclist 357f512f00 chore: update docs 2023-05-14 14:54:49 +09:00
aclist 584824f08f chore: update docs 2023-05-14 14:53:57 +09:00
aclist 673a917135 fix: do not add entries to array twice (#68) 2023-05-14 14:53:45 +09:00
aclist 1803dd1166 fix: use safe separator on forms 2023-05-14 05:48:05 +09:00
aclist 030d8efdf4 fix: use safe separator on forms 2023-05-14 05:47:20 +09:00
aclist 7fef2c7fa8 fix: more portable interpreter 2023-05-13 19:25:50 +09:00
aclist 3d52b89e62 fix: more portable interpreter 2023-05-13 19:25:27 +09:00
aclist 723ebb35da chore: bump version 2023-05-13 19:16:47 +09:00
aclist e84ff51e25 chore: bump version 2023-05-13 19:16:33 +09:00
aclist 1c94434f42 Merge branch 'main' of github.com:aclist/dztui 2023-05-13 19:14:54 +09:00
aclist 4317c8bd13 fix: clearing log file fails on steam deck 2023-05-13 19:14:30 +09:00
aclist aa31dbdf6c Create FUNDING.yml 2023-05-13 04:54:06 +09:00
aclist 97e9fef430 feat: wipe debug at boot 2023-05-13 04:31:30 +09:00
aclist 0d625e1ae1 feat: wipe debug at boot 2023-05-13 04:31:18 +09:00
aclist 0ea10801c1 feat: add more startup logging 2023-05-13 04:30:19 +09:00
aclist 42142d999a feat: add more startup logging 2023-05-13 04:29:58 +09:00
aclist f8bf46d51b fix: update stale forum link 2023-05-13 02:25:38 +09:00
aclist 854f5fc1d3 chore: update news 2023-05-13 02:01:48 +09:00
aclist ce8d968ede fix: revert Flatpak auto selection logic 2023-05-13 01:40:58 +09:00
aclist 55b9dc5a7f feat: add toggle Flatpak to options 2023-05-13 01:36:01 +09:00
aclist 03a8a3169d fix: Do not enforce wmctrl on stable branch 2023-05-13 01:01:56 +09:00
aclist 95bc93d7f5 fix: Do not enforce wmctrl on stable branch 2023-05-13 01:01:41 +09:00
aclist 95db1e01c3 fix: return from config function 2023-05-12 12:23:12 +09:00
aclist 51208bd39a fix: return from config function 2023-05-12 12:22:52 +09:00
aclist 9c7ade92fb fix: not breaking out of loop after setting steam path (#65) 2023-05-12 12:11:09 +09:00
aclist 22e96873d9 fix: not breaking out of loop after setting steam path (#65) 2023-05-12 12:10:38 +09:00
aclist 57bfdc6ba6 chore: bump version 2023-05-12 08:03:07 +09:00
aclist f28257925f chore: bump version 2023-05-12 08:02:55 +09:00
aclist 8cbe396bba fix: move debug file location 2023-05-12 08:01:42 +09:00
aclist ab3a192149 fix: move debug file location 2023-05-11 13:30:49 +09:00
aclist 116fd23a67 fix: file picker logic 2023-05-11 13:20:47 +09:00
aclist adda3767c2 feat: enhance logging 2023-05-11 13:02:15 +09:00
aclist 589c150084 fix: file picker logic 2023-05-11 12:41:10 +09:00
aclist ea2c5291a5 fix: restore beta client logic 2023-05-11 12:10:27 +09:00
aclist 98f816c89d fix: backports from stable 2023-05-11 12:08:15 +09:00
aclist 69b1e64277 chore: bump version from mainline 2023-05-11 12:06:02 +09:00
aclist fa0a27b93f docs: update changelog 2023-05-11 10:54:42 +09:00
aclist 292e6f3921 fix: file picker function 2023-05-11 10:46:45 +09:00
aclist d4c0dd4031 fix: return from lockfile function 2023-05-11 10:28:19 +09:00
aclist 046a617b62 chore: bump version 2023-05-11 10:25:12 +09:00
aclist 391e118e6d fix: modify install routine 2023-05-11 10:23:52 +09:00
aclist 0e38c0d56e feat: list dir in installed mods menu 2023-05-11 03:08:18 +09:00
aclist e577792d64 chore: bump version 2023-05-11 02:30:01 +09:00
aclist 0a5e6730fc fix: reword button 2023-05-10 17:06:28 +09:00
aclist 70dfe930ec chore: bump version 2023-05-10 17:06:01 +09:00
aclist f19ed7811a fix: reword button 2023-05-10 17:05:25 +09:00
aclist 3b485a8f88 fix: allow manual path discovery (#65) 2023-05-10 17:01:51 +09:00
aclist fe4d80ad9b fix: allow manual path discovery (#65) 2023-05-10 17:01:11 +09:00
aclist ccee6b10f1 fix: sudo escalation 2023-05-10 13:49:23 +09:00
aclist 2f320db9aa chore: bump version 2023-05-10 13:43:04 +09:00
aclist 6bb3631e8d fix: sudo escalation 2023-05-10 13:41:40 +09:00
aclist 55f1a6ad62 fix: sudo escalation 2023-05-10 13:29:34 +09:00
aclist 1e1f647eb7 fix: sudo escalation 2023-05-10 13:14:19 +09:00
aclist 9fee338ba4 fix: do not parse Flatpak symlinks during setup 2023-05-10 11:51:26 +09:00
aclist a8d38a9615 fix: do not parse Flatpak symlinks during setup 2023-05-10 11:50:55 +09:00
aclist 3015eb729a fix: harden client targeting function (#60) 2023-05-10 11:49:17 +09:00
aclist 0cabcb9f46 fix: use same WM_CLASS name for both clients 2023-05-09 09:23:26 +09:00
aclist 76a05e5d04 fix: case folding for WM_CLASS (#60) 2023-05-09 09:17:44 +09:00
aclist 6f5aadec80 Merge branch 'testing' of github.com:aclist/dztui into testing 2023-05-09 05:52:45 +09:00
aclist 03c47c3b55 fix: better client targeting (#60) 2023-05-09 05:52:29 +09:00
aclist 2922ee08fe Merge pull request #63 from not-kaz/testing
Encapsulate window titles for future maintainability
2023-05-07 22:47:42 +09:00
not-kaz 5269adcb54 Added missing quotation marks to zenity --title options, as per zenity docs. 2023-05-07 14:40:01 +02:00
aclist 3526dec977 chore: update install script link 2023-05-07 04:48:41 +09:00
aclist 89242bcdbd fix: fix for #61 2023-05-07 04:42:01 +09:00
aclist 435c275725 fix: fix for #61 2023-05-07 04:40:26 +09:00
aclist 0cb21d9939 fix: fix for #61 2023-05-07 04:39:16 +09:00
aclist 7818b4442f chore: bump version 2023-05-06 00:37:27 +09:00
aclist 0cb87cf9b4 docs: update changelog 2023-05-06 00:34:38 +09:00
aclist e3f5879d93 fix: hotfix for #60 2023-05-06 00:32:27 +09:00
aclist c7c93558ae fix: hotfix for #59 2023-03-01 17:37:29 +09:00
aclist b66e808c14 fix: hotfix for #59 2023-03-01 17:36:46 +09:00
aclist 65aba2ef46 chore: bump news 2023-02-22 16:02:01 +09:00
aclist b070fd8b91 fix: wrong query port being returned 2023-02-22 16:00:31 +09:00
aclist ac57770d87 fix: wrong query port being returned 2023-02-22 15:57:04 +09:00
aclist a916228cca docs: changelog 2023-02-17 21:52:28 +09:00
aclist d78b753798 fix: merge hotfixes from stable 2023-02-17 21:51:21 +09:00
aclist 57cf0df642 chore: update changelog 2023-02-17 13:36:01 +09:00
aclist f1c1d65c28 fix: map count fixes 2023-02-17 13:35:37 +09:00
aclist 310429bf42 fix: hotfix for #57 2023-02-17 13:29:04 +09:00
aclist b5a068c327 fix: hotfix for #57 2023-02-17 13:27:41 +09:00
aclist 9172c25014 fix: dump entire array 2023-02-04 13:18:02 +09:00
aclist 350b036b6b fix: change string literal 2023-02-04 13:16:42 +09:00
aclist ec56780f3f fix: update sd_res for debugging 2023-02-04 13:15:34 +09:00
aclist 8bfbbbe230 chore: change logging 2023-02-04 12:56:35 +09:00
aclist 08eb82a64e chore: change logging 2023-02-04 12:46:35 +09:00
aclist b526912792 chore: change logging 2023-02-04 12:43:28 +09:00
aclist 6acd3a2688 chore: steam deck debugging 2023-02-04 05:52:05 +09:00
aclist f08917de0c chore: steam deck debugging 2023-02-04 05:49:05 +09:00
aclist 6caaa231de chore: debug test for steam deck 2023-02-03 15:46:26 +09:00
aclist 82c6dbdfef docs: add nix setup instructions 2023-01-24 04:35:39 +09:00
aclist e76070818c docs: drop HTML 2023-01-24 04:34:42 +09:00
aclist b0d6008b18 docs: add nix setup instructions 2023-01-24 04:32:58 +09:00
aclist 0dea295c76 fix: flatpak hotfixes 2023-01-20 02:21:59 +09:00
aclist 8b19f6340b fix: flatpak hotfixes 2023-01-20 02:21:31 +09:00
aclist 10c29c0542 fix: flatpak hotfixes 2023-01-20 02:21:10 +09:00
aclist 68e0b1d5fc fix: flatpak hotfixes 2023-01-20 02:08:13 +09:00
aclist 54bafa778e fix: drop stale variable 2023-01-20 02:05:45 +09:00
aclist 4e0bb3cc3f fix: flatpak hotfixes 2023-01-20 02:05:11 +09:00
aclist 333a86b90b fix: correct option index 2023-01-20 02:02:36 +09:00
aclist 17930e4e6a fix(flatpak): use longform of command 2023-01-20 01:55:41 +09:00
aclist 6057314fe7 chore: remove debug code 2023-01-20 01:27:18 +09:00
aclist 3ebc561611 fix(flatpak) remove debug code 2023-01-20 01:22:15 +09:00
aclist 5fd40cf3af fix(flatpak): retain preferred client setting 2023-01-20 01:21:02 +09:00
aclist 2701b7eeb7 feat: Add Flatpak support 2023-01-19 23:43:05 +09:00
aclist 15bd9b398f feat: Add Flatpak support 2023-01-19 23:42:19 +09:00
aclist 11ab8777eb fix: distinguish between flatpak and xdg-open 2023-01-19 23:09:48 +09:00
aclist 22f542ba67 fix: flatpak steam launch 2023-01-19 22:57:09 +09:00
aclist 4852acb946 fix: parse flatpak version 2023-01-19 22:38:51 +09:00
aclist 4994405c30 docs: add changelog entry 2023-01-19 20:25:02 +09:00
aclist 155f27c126 chore: bump version 2023-01-19 20:23:57 +09:00
aclist a35499e706 chore: stable backports 2023-01-19 20:20:30 +09:00
aclist 6688d1019a feat: support Flatpak steam 2023-01-19 20:18:20 +09:00
aclist 779b894a3f feat: support Flatpak steam 2023-01-19 20:11:38 +09:00
aclist cbb0c50b23 docs: update readme link 2023-01-18 23:51:19 +09:00
aclist d1c0de75ee docs: update readme link 2023-01-18 23:50:53 +09:00
aclist e21b3fbec0 fix(automods): Mods to update not breaking on new line 2023-01-18 23:05:38 +09:00
aclist 735ca114d0 fix(automods): Hotfix for #48 2023-01-07 10:13:47 +09:00
aclist 442b0e543d Reset minor version 2023-01-02 10:26:13 +09:00
aclist 0a5b3d9186 fix(browser): Tick low pop servers by default 2023-01-02 10:24:14 +09:00
aclist 4778c5d161 Port changes from stable branch 2023-01-02 10:22:58 +09:00
aclist 03ab3f667b docs: Update news 2023-01-02 10:17:18 +09:00
aclist a801cfab26 docs: Bump version 2023-01-02 10:15:36 +09:00
aclist d411dcd749 fix(setup): Validate BM key on initial setup 2023-01-02 10:13:28 +09:00
aclist 812211df5b Hotfix for #43 2022-12-11 13:10:18 +09:00
aclist fb9b6a39c3 Low pop server changes 2022-12-11 12:55:29 +09:00
aclist 1c0b86fb8b Tick low pop servers by default 2022-12-11 12:54:51 +09:00
aclist fc87000599 Clarify low pop servers 2022-12-11 12:54:06 +09:00
aclist 90e518646b Fix numbers 2022-12-07 15:47:14 +09:00
aclist 7648532da5 Hotfix from stable 2022-12-06 20:52:02 +09:00
aclist d7220f8c12 Bump version 2022-12-06 20:48:20 +09:00
aclist 667f5aff55 Explicitly require Python 3 2022-12-06 20:48:10 +09:00
aclist c9df7f86e8 Bump version 2022-12-03 21:40:49 +09:00
aclist 05f03c2b8f Bump version 2022-12-03 21:38:53 +09:00
aclist 8cce75c418 Fix lockfile path 2022-12-03 21:38:27 +09:00
aclist 4a3521d711 Bump minor version 2022-12-03 21:22:25 +09:00
aclist 8b6b19d3c0 Patch in mainline automod changes 2022-12-03 21:20:36 +09:00
aclist 6860541f5b Bump hotfix 2022-12-03 21:16:40 +09:00
aclist c0e777f550 Update filepicker menu 2022-12-03 21:16:21 +09:00
aclist 35122cf723 Major version bump 2022-12-03 21:15:08 +09:00
aclist 986e137d8d Bump version 2022-12-03 19:50:32 +09:00
aclist 8926b4bd33 Bump version 2022-12-03 15:58:08 +09:00
aclist 26dadb3bd0 File picker error handling 2022-12-03 15:57:33 +09:00
aclist 5c17531654 Clean up stale files 2022-12-03 14:16:24 +09:00
aclist 978e8a36b2 Update changelog 2022-12-03 14:13:35 +09:00
aclist 9ffa148534 Hotfix for /run path 2022-12-03 13:05:12 +09:00
aclist e0733c7d48 Explicitly use system zenity 2022-12-02 16:25:08 +09:00
aclist fa72d84179 Add thousands separator 2022-12-01 18:34:40 +09:00
aclist 09cb67134b Check python explicitly 2022-11-29 04:52:25 +09:00
aclist 3ddf1b2ca5 Hotfix for duplicate mods 2022-11-26 08:16:09 +09:00
aclist 5824f971bb Hotfix for #40 2022-11-25 14:34:16 +09:00
aclist c160d321cb Bump version 2022-11-25 05:55:19 +09:00
aclist 913140c22c Faster path discovery 2022-11-25 05:53:35 +09:00
aclist b4aa8fbb6d Rename history 2022-11-24 02:15:11 +09:00
aclist 3fdb6c4d7f Block Steam from opening (#39) 2022-11-24 01:50:34 +09:00
aclist 159a9bc900 Update labels 2022-11-23 00:12:28 +09:00
aclist 7ad6c13b52 Recent connect history 2022-11-22 04:54:23 +09:00
aclist f9c00f3522 Bump version 2022-11-09 12:38:42 +09:00
aclist eea8b4b56a Bump version 2022-11-09 12:11:56 +09:00
aclist 24105b1d53 More verbose logs 2022-11-09 12:10:46 +09:00
aclist 4769b6741a More verbose logs 2022-11-09 12:07:56 +09:00
aclist 171d6468cd Propagate .desktop file 2022-10-27 13:43:03 +09:00
aclist 0f89b49f4c Bump version 2022-10-27 13:41:36 +09:00
aclist 2760f38f6f Propagate .desktop file 2022-10-27 13:40:42 +09:00
aclist 9c4ba1ff7b Foreground window 2022-10-26 22:23:38 +09:00
aclist 77bd6bdf9c Streamline progress notifier 2022-10-26 14:26:06 +09:00
aclist 079e20e49f Download mod metadata 2022-10-26 11:38:52 +09:00
aclist 2411dcd0d6 Update changelog 2022-10-26 09:22:51 +09:00
aclist 6c3542c93b Automod versioning 2022-10-26 09:22:19 +09:00
aclist 76c7ab16d8 Fix conflicts 2022-10-24 03:10:53 +09:00
aclist 8a7656c9a7 Automods v.2 2022-10-24 03:09:35 +09:00
aclist 3503857cfd Automod v.2 backend preparation 2022-10-23 02:22:39 +09:00
aclist 258a5ad10a Update changelog 2022-10-16 21:15:19 +09:00
aclist 41c187a8be Update changelog 2022-10-16 21:14:19 +09:00
aclist d019cc2765 Fix Steam Deck popup width 2022-10-16 20:45:37 +09:00
aclist b3eac522fd Merge branch 'dzgui' of github.com:aclist/dztui into dzgui 2022-10-16 20:44:36 +09:00
aclist 6f76dc5696 Fix search path 2022-10-16 20:44:01 +09:00
aclist 586c154bd4 Include /run in search path 2022-10-16 20:43:31 +09:00
aclist ca2334c361 Add line breaks 2022-10-16 19:08:53 +09:00
aclist eae87e1f4a Include Steam Deck bulk storage path 2022-10-16 17:50:48 +09:00
aclist db6bec097c Merge branch 'dzgui' of github.com:aclist/dztui into dzgui 2022-10-15 19:56:37 +09:00
aclist ae0fc6f768 Update changelog 2022-10-15 19:54:03 +09:00
aclist 08abc609f8 Update readme 2022-10-14 18:16:46 +09:00
aclist a9163e6b7e Update example image 2022-10-14 17:17:23 +09:00
aclist ed66f2b9ca Update example image 2022-10-14 16:48:21 +09:00
aclist c66dce1f36 Resize popup 2022-10-12 03:17:56 +09:00
aclist 09b8062840 Bump version 2022-10-12 03:15:17 +09:00
aclist e1229eacbe Fix Deck popup size 2022-10-12 03:15:01 +09:00
aclist 7830d93e85 Fix Deck popup size 2022-10-12 03:14:21 +09:00
aclist 0ce5f1e200 List mod count 2022-10-12 00:29:50 +09:00
aclist 24b04dc40c Text fixes 2022-10-12 00:28:26 +09:00
aclist 698edf420b Update changelog 2022-10-12 00:20:08 +09:00
aclist 3d196d6f11 Update news 2022-10-12 00:19:46 +09:00
aclist 15aad8b49f Increment major version 2022-10-12 00:18:04 +09:00
aclist fe580f04d4 Update API 2022-10-12 00:13:30 +09:00
aclist 5c80c3ed59 Rollback changelog 2022-10-11 23:57:21 +09:00
aclist 8a0d74332d Update docs 2022-10-11 23:48:47 +09:00
aclist 38b0f963cd Merge watcher branch 2022-10-11 23:42:46 +09:00
aclist 6a8566fb4a Remove stray logging 2022-10-11 23:29:19 +09:00
aclist 69e15dbdc8 Deprecation warning 2022-10-11 23:28:57 +09:00
aclist 8838827bff Update readme 2022-10-11 23:18:46 +09:00
aclist 006e037866 Merge 2022-10-11 23:16:53 +09:00
aclist c293fcd8c5 Update readme 2022-10-11 21:50:05 +09:00
aclist f3e8642601 Update docs 2022-10-11 21:48:15 +09:00
aclist 6d378da508 Reorder main menu 2022-10-11 21:43:52 +09:00
aclist 8f422125ec Bump version 2022-10-11 21:16:05 +09:00
aclist 0953444ad1 Change notification title 2022-10-11 21:14:54 +09:00
aclist a0757a1c88 Reword forums 2022-10-11 21:04:38 +09:00
aclist 05af345a11 Enforce Steam API 2022-10-11 20:58:00 +09:00
aclist 64eb4bff9d Fix popup widths 2022-10-11 17:19:14 +09:00
aclist 53840d783d Change popup width 2022-10-11 17:04:15 +09:00
aclist 5217531974 Abstract news url 2022-10-11 16:24:37 +09:00
aclist c15b516f36 Update news 2022-10-11 16:09:08 +09:00
aclist c6962ebc37 Add forums link 2022-10-11 16:07:34 +09:00
aclist 69b7d82e1b Fix early crash bug 2022-10-09 15:43:14 +09:00
aclist e10119c0aa Reword disclaimer 2022-10-09 12:00:02 +09:00
aclist e40eecd9e3 Change conditional operator 2022-10-09 11:29:22 +09:00
aclist 09352b2f0b Create foreground function 2022-10-09 11:07:07 +09:00
aclist 8b1fdf8da6 Merge branch 'testing' of github.com:aclist/dztui into testing 2022-10-08 21:16:02 +09:00
aclist 32e42360b1 Test gamescope 2022-10-08 21:12:22 +09:00
aclist 6b135985ad Update news 2022-10-08 20:57:32 +09:00
aclist 4e3f1b40f1 Bump version 2022-10-08 20:23:26 +09:00
aclist b8d1e918de Drop wmctrl dependency 2022-10-08 20:17:31 +09:00
aclist b7b75b1f52 Add dependency check 2022-10-08 20:09:33 +09:00
aclist 98f2e7e809 Add watcher process 2022-10-08 20:04:49 +09:00
aclist 8c7ab958a5 Unrelease subscription watcher 2022-10-08 16:30:47 +09:00
aclist 34c28d7bc9 Sanitize username in logs 2022-10-08 16:29:06 +09:00
aclist 83e7425e74 Mask log output 2022-10-08 15:34:39 +09:00
aclist b37420cdd0 Set Steam Deck dir earlier 2022-10-08 14:48:09 +09:00
aclist 9ec30e7ba6 Fix return codes on popups 2022-10-08 14:36:43 +09:00
aclist 091efd1a59 Set Steam Deck staging dir sooner 2022-10-08 14:34:33 +09:00
aclist 01b2c12a6f Alternate exit process for Steam Deck 2022-10-08 14:28:24 +09:00
aclist 18902ba215 Bump version 2022-10-08 14:16:20 +09:00
aclist b0613e5d31 Print staging dir later in process 2022-10-08 14:16:09 +09:00
aclist baf0ce2add Bump version 2022-10-08 14:13:30 +09:00
aclist 999734ef10 Stage proper Steam Deck directory 2022-10-08 14:13:00 +09:00
aclist 264b0aa6f2 Fix oversized prompt on Steam Deck 2022-10-08 14:07:30 +09:00
aclist 6cce33ca1a Resize popups 2022-10-08 14:01:59 +09:00
aclist 010ce1440c Bump version 2022-10-08 14:01:09 +09:00
aclist 50d63fc81c Omit sudo for steam deck 2022-10-08 14:00:42 +09:00
aclist c3a3ed5ceb Bump version 2022-10-08 13:47:50 +09:00
aclist 852ed98701 Fix terminal params 2022-10-08 13:46:56 +09:00
aclist 1633e5cf2d Bump version 2022-10-08 13:15:55 +09:00
aclist fb5d3c8e35 Fixes for Steam Deck 2022-10-08 13:14:27 +09:00
aclist 276d856652 Merge changes 2022-10-08 13:04:09 +09:00
aclist 236cb45646 Update upstream path 2022-10-08 12:58:02 +09:00
aclist 240da52969 Add return codes 2022-10-08 12:42:05 +09:00
aclist 633a7ea994 Fix variable 2022-10-08 12:41:11 +09:00
aclist 8923b28ad1 Reword error message 2022-10-08 12:38:53 +09:00
aclist c9a1b54678 Return codes for unsupported distro 2022-10-08 12:38:35 +09:00
aclist a5dc2c4408 Force creation of helpers dir 2022-10-08 12:25:46 +09:00
aclist 67cb8935c1 Print staging dir 2022-10-08 12:18:40 +09:00
aclist f4bb28429b Add notifier 2022-10-08 12:14:19 +09:00
aclist 1e835a7c63 Add skeleton 2022-10-08 12:09:35 +09:00
aclist ab79d92a76 Add notification helpers 2022-10-08 12:09:08 +09:00
aclist 15dfe82387 Force remove 2022-10-08 11:54:34 +09:00
aclist b1929019a6 Calculate mod sizes 2022-10-08 11:50:47 +09:00
aclist b761e3aef6 Fix paths 2022-10-08 11:40:53 +09:00
aclist f0c3ba275e Force remove directory 2022-10-08 11:34:56 +09:00
aclist f60857a64a Exit handling 2022-10-08 11:30:13 +09:00
aclist 0998b43c01 Integrate automod pipeline 2022-10-07 22:38:33 +09:00
aclist c84384a878 Reduce verbosity 2022-10-07 19:33:56 +09:00
aclist ba1d8e2d2e Drop old prompt 2022-10-07 19:32:13 +09:00
aclist dbabbfa833 Generate scmd script 2022-10-07 19:26:57 +09:00
aclist d61e394cd8 Add filepicker 2022-10-07 19:19:09 +09:00
aclist ae78ea7e4c Testing scmd 2022-10-07 18:26:59 +09:00
aclist 69a9a9c40d Add scmd helper 2022-10-07 16:47:54 +09:00
aclist b623396341 Make helper executable 2022-10-07 16:46:26 +09:00
aclist 38ebe63deb Fix helpers URL 2022-10-07 16:32:26 +09:00
aclist f4fea76de8 Automod integration 2022-10-07 16:26:39 +09:00
aclist 1aef112b9f Backend preparation 2022-10-07 13:40:50 +09:00
aclist a7e2de9104 Fix URL 2022-10-07 13:35:22 +09:00
aclist 7c20f5597f Add latlon.c 2022-10-07 13:34:43 +09:00
aclist a2cfcadc5e Add checksums 2022-10-07 13:34:03 +09:00
aclist 73ed9fb1c7 Stage helpers dir 2022-10-07 13:32:52 +09:00
aclist d876695c9a Restructure menus 2022-10-07 13:30:09 +09:00
aclist 01bd10d264 Align tabs 2022-10-06 22:00:13 +09:00
aclist 1c401cd064 Remove stash lines 2022-10-06 21:58:35 +09:00
aclist c2c907ac0a Pass modsize to helper 2022-10-06 21:50:37 +09:00
aclist 1b4310ec87 Fix normal mode not launching 2022-10-06 08:10:56 +09:00
aclist 83766f2a73 Reword 2022-10-06 07:51:26 +09:00
aclist 2c98774a1e Bump news 2022-10-06 07:51:10 +09:00
aclist 95838a9dfc Bump version 2022-10-06 07:50:45 +09:00
aclist 69a5f61c18 Fix server launch 2022-10-06 07:49:43 +09:00
aclist 5037dab9e5 Prototype automods 2022-10-05 17:08:47 +09:00
aclist 8ecf9a35d9 Update news 2022-10-04 15:55:32 +09:00
aclist 4cc598d99a Add server browser 2022-10-04 15:55:26 +09:00
aclist a3f7fdce19 Bump version 2022-10-04 15:54:42 +09:00
aclist 94708df470 Update documentation 2022-10-04 15:28:53 +09:00
aclist 6e0eeef733 Empty delete server array when returning 2022-10-04 15:26:42 +09:00
aclist 48545ce384 Bump version 2022-10-04 00:16:55 +09:00
aclist bc2610e0d7 Fix redundant download process 2022-10-04 00:15:09 +09:00
aclist e6c489b1a6 Group menu options 2022-10-04 00:04:13 +09:00
aclist a2b783478a Additional error handling for API keys 2022-10-03 15:42:18 +09:00
aclist 4dfac043a5 Update news 2022-10-03 11:34:50 +09:00
aclist 82ca4ccb7c Merge hotfixes from stable 2022-10-03 07:24:27 +09:00
aclist 339d82cc38 Bump version 2022-10-03 07:15:08 +09:00
aclist f3046078be Fix connect to fav 2022-10-03 07:06:31 +09:00
aclist be1c53c40a Bump version 2022-10-02 18:29:10 +09:00
aclist 75d442135a Hotfix for #36 2022-10-02 18:28:20 +09:00
aclist 0940ea82fd Clean up messages 2022-10-02 09:26:21 +09:00
aclist 67c3ad3990 List total mod size 2022-09-30 02:54:39 +09:00
aclist c3354b71c0 Strip text in header 2022-09-27 10:40:05 +09:00
aclist c9391352b5 Drop long response logging 2022-09-27 09:43:31 +09:00
aclist fda6724776 Fix player count 2022-09-27 09:42:46 +09:00
aclist 1ccb52fabd Clean up progress bars 2022-09-27 04:04:06 +09:00
aclist ce9795a295 Resize dialogs 2022-09-26 05:35:58 +09:00
aclist 2cca234a11 Return selection from server function 2022-09-26 05:24:08 +09:00
aclist 3db2be74bf Update changelog 2022-09-26 04:46:12 +09:00
aclist 248283e674 Update docs 2022-09-26 04:45:11 +09:00
aclist 8dfff39f58 Merge branch 'testing' of github.com:aclist/dztui into testing 2022-09-26 04:44:34 +09:00
aclist 6b6a8aa410 Suppress progress dialog during version update 2022-09-26 04:42:58 +09:00
aclist db66745e3a Bump version 2022-09-26 04:39:56 +09:00
aclist f1fbbc9acd Fix newline 2022-09-26 04:33:17 +09:00
aclist da4e1555a2 Update url 2022-09-26 04:27:47 +09:00
aclist 9db9bf03d1 Verbose logging 2022-09-26 02:29:19 +09:00
aclist 2e6d343bb7 More verbose logging 2022-09-25 00:42:13 +09:00
aclist d80126ffef Add debug code 2022-09-24 18:49:01 +09:00
aclist aa641d596f Fix Steam forking 2022-09-23 19:52:22 +09:00
aclist d70aaadf08 Update unreleased section 2022-09-22 18:43:19 +09:00
aclist f2f8853403 Bump version 2022-09-22 18:38:27 +09:00
aclist fb5916a0d1 Add dig alternative 2022-09-22 18:37:43 +09:00
aclist f4abdfdb2d Update checksums 2022-09-22 18:09:04 +09:00
aclist 9e0336f370 Update docs 2022-09-21 22:18:16 +09:00
aclist e8c6b4f570 New checksums 2022-09-17 03:00:47 +09:00
aclist 1aff9452f8 Bump changelog 2022-09-17 02:36:29 +09:00
aclist f9ac376b37 Drop Python requirement 2022-09-17 02:33:23 +09:00
aclist c004032e52 Fix unicode regex 2022-09-14 22:10:27 +09:00
aclist 9b64086f4a Bump version 2022-09-14 14:00:22 +09:00
aclist 20c9fc3112 Merge branch 'testing' of github.com:aclist/dztui into testing 2022-09-14 13:56:26 +09:00
aclist f192d57665 Additional error handling 2022-09-14 13:56:13 +09:00
aclist 7b6eebde9f Remove file 2022-09-14 13:29:42 +09:00
aclist 2b3e393b0d Update helper files 2022-09-14 13:22:14 +09:00
aclist 88df4de3d7 Bump version 2022-09-13 22:45:53 +09:00
aclist 512ddb1d86 Print map count 2022-09-13 22:45:28 +09:00
aclist 65874ac901 Update changelog 2022-09-13 22:37:17 +09:00
aclist f0875b5079 Update changelog 2022-09-13 22:36:02 +09:00
aclist 6a72fe1b68 Improve distance algorithm 2022-09-13 22:35:13 +09:00
aclist b92aa37eaf Update changelog 2022-09-13 13:42:23 +09:00
aclist c882637aba Add data to header 2022-09-13 13:41:26 +09:00
aclist c01c834060 Bump version 2022-09-13 00:42:51 +09:00
aclist 1e8df4692c Fix variable 2022-09-13 00:42:34 +09:00
aclist a342d98848 Update readme 2022-09-13 00:38:59 +09:00
aclist c0e30ec700 Update image header 2022-09-13 00:37:32 +09:00
aclist 1e3e63c2ca Clean up header 2022-09-13 00:33:29 +09:00
aclist 5ed81eb709 Update example image 2022-09-13 00:28:23 +09:00
aclist 0b4de12ef5 In-app server browser 2022-09-12 23:55:30 +09:00
aclist 7b947e2996 Add helper file 2022-09-12 19:35:50 +09:00
aclist c62469bb66 Update explanation 2022-09-08 19:30:47 +09:00
aclist e5c5c34ffa Remarks about controller layout 2022-09-08 17:41:36 +09:00
aclist 8a1d335c6d Update timestamp 2022-09-08 17:23:24 +09:00
aclist 87f70bf992 Fix url 2022-09-08 17:17:56 +09:00
aclist 55522af6dd Clean unreleased section 2022-09-06 12:38:33 +09:00
aclist 32a1dbc19c Update news 2022-09-06 11:42:21 +09:00
aclist a19d1b875b Add connect by IP 2022-09-06 11:41:31 +09:00
aclist 1d8f2275d8 Bump version 2022-09-06 11:40:38 +09:00
aclist e879ceb288 Update docs 2022-09-06 11:37:53 +09:00
aclist a427daabd6 Make variable local 2022-09-04 04:55:22 +09:00
aclist f760347334 Bump version 2022-09-04 04:40:55 +09:00
aclist 319ab2da9e Use alternate API for conn-by-ip 2022-09-04 04:40:21 +09:00
aclist 2e6bcd4d15 Bump version 2022-09-03 13:48:25 +09:00
aclist 0e22e563f6 Restore legacy API method 2022-09-03 13:46:21 +09:00
aclist 0a5030c60e Bump changelog 2022-08-31 17:23:03 +09:00
aclist 9e73ec8e60 Validate Steam API key 2022-08-31 17:22:07 +09:00
aclist 82ed8ee860 Bump version 2022-08-17 11:26:31 +09:00
aclist 64e87d35ad Hotfix for malformed paths 2022-08-17 11:25:56 +09:00
aclist 3787c7970d Add connect by IP 2022-08-17 00:49:51 +09:00
aclist ade568c0e0 Update news 2022-08-16 19:29:34 +09:00
aclist 78caecc4b4 Merge testing changes 2022-08-16 19:29:33 +09:00
aclist b2dcbbd510 Bump version 2022-08-16 19:29:19 +09:00
aclist e91003979c Fix typo 2022-08-15 19:39:05 +09:00
aclist c538ff06ad Bump version 2022-08-15 01:26:05 +09:00
aclist bb9a331e6d Hotfix for small server lists 2022-08-15 01:22:21 +09:00
aclist a1b338c7ee More performant path discovery 2022-08-14 18:10:00 +09:00
aclist 785fd1c77b Update docs 2022-08-14 11:23:22 +09:00
aclist d95deb0ea3 Merge branch 'testing' of github.com:aclist/dztui into testing 2022-08-14 11:20:55 +09:00
aclist 901261b908 Fix typos 2022-08-14 11:20:35 +09:00
aclist 4e9ba08a0e Fix typo 2022-08-14 11:03:27 +09:00
aclist 29d939c06d Add bullet points 2022-08-14 09:39:53 +09:00
aclist 4b79fc99ab Clean up legacy symlinks 2022-08-14 09:38:08 +09:00
aclist 70f748fd19 Hotfix for symlink collisions 2022-08-13 22:00:35 +09:00
aclist c8c0bfbce4 Split response into two variables 2022-08-12 09:52:07 +09:00
aclist b664fb70d0 Remove debug code 2022-08-11 08:00:26 +09:00
aclist f49f9e4358 Hotfix for API pagination 2022-08-11 07:59:29 +09:00
aclist 9e1d2e8522 Bump version 2022-08-10 10:09:59 +09:00
aclist 91f8c66635 Hotfix for progress bar 2022-08-10 10:08:27 +09:00
aclist ea2007357c Hotfix for create_array 2022-08-10 08:51:30 +09:00
aclist f2d0f88f3e Bump version 2022-08-10 08:51:28 +09:00
aclist a734b670ff Update docs 2022-08-07 14:47:44 +09:00
aclist 470ccdfc8d Add install.sh 2022-08-07 14:46:38 +09:00
aclist e2ee67bccd Bump version 2022-08-07 14:41:31 +09:00
aclist 65168bd616 Bump version 2022-08-07 14:31:28 +09:00
aclist a4244e79b8 Add license 2022-08-07 10:49:37 +09:00
aclist 475e830ea8 Prepare news blurb 2022-08-07 10:49:05 +09:00
aclist f0ae39f5f1 Add custom CSS 2022-08-06 19:13:16 +09:00
aclist 1c8710c120 Merge branch 'testing' of github.com:aclist/dztui into testing 2022-08-06 10:57:05 +09:00
aclist de776eb5b5 Update documentation 2022-08-06 10:53:34 +09:00
aclist dbc74ccade Bump version 2022-08-06 10:38:25 +09:00
aclist 16faf51469 Bump version 2022-08-06 10:22:30 +09:00
aclist fd51ca347e More permissive map count comparison 2022-08-06 10:22:12 +09:00
aclist 8dbb7b05f2 Add easy install script 2022-08-06 10:05:18 +09:00
aclist 20a0c2adc4 Update documentation 2022-08-06 10:02:36 +09:00
aclist c342e2d846 Shrink image resolution 2022-08-06 09:57:32 +09:00
aclist de5fabf64f Add tutorial images 2022-08-06 09:48:09 +09:00
aclist 058122f547 Clean up messages 2022-08-06 09:42:41 +09:00
aclist 0b54937a7e Merge first time config changes from stable hotfix 2022-08-06 08:15:22 +09:00
aclist 5595983b04 Abstract install path 2022-08-06 07:42:35 +09:00
aclist c3895b1cc7 Change launch order 2022-08-06 07:38:46 +09:00
aclist 48a0350974 Update path 2022-08-06 07:16:34 +09:00
aclist 0cf150fe9e Explicitly create directory in $HOME 2022-08-06 07:10:14 +09:00
aclist 64e28e1372 Do not hardcode freedesktop dir 2022-08-06 06:52:52 +09:00
aclist 2671e87bc9 Do not exit after generating log 2022-08-06 06:36:36 +09:00
aclist a050cdfc80 Bootstrap old version with freedesktop dirs 2022-08-06 06:28:35 +09:00
aclist db9419f3a7 Fix typo 2022-08-06 06:20:31 +09:00
aclist b4273404c1 Use wget 2022-08-06 05:51:47 +09:00
aclist 2b6061e428 Check architecture earlier 2022-08-06 05:28:52 +09:00
aclist 3570e257a5 SD fixes 2022-08-06 05:26:00 +09:00
aclist af0448ac15 Make freedesktop settings SD only 2022-08-06 05:07:06 +09:00
aclist bf5ecc7462 Force recreation of freedesktop files 2022-08-06 04:58:59 +09:00
aclist 04d58987de Fix image url 2022-08-06 04:32:29 +09:00
aclist 52c3a6950c Rename upstream image paths 2022-08-06 04:19:14 +09:00
aclist 38d375444b Make executable 2022-08-06 03:58:29 +09:00
aclist c5538db60c Fix freedesktop paths 2022-08-06 03:49:47 +09:00
aclist 9a39e43af7 Drop config write when checking version 2022-08-06 03:41:28 +09:00
aclist 0c076358cd Bump version 2022-08-06 03:35:34 +09:00
aclist 293b99402a Freedesktop deployment fixes 2022-08-06 03:35:17 +09:00
aclist c04adc15fd Rename icon file 2022-08-06 03:26:59 +09:00
aclist 231aa993f8 Bump version 2022-08-06 03:19:49 +09:00
aclist 0b9c60a252 Fix freedesktop path 2022-08-06 03:19:13 +09:00
aclist 920181d284 Bump version 2022-08-06 03:17:12 +09:00
aclist 88f40958fb Fix freedesktop paths 2022-08-06 03:15:36 +09:00
aclist 76e9470483 Add Steam Deck images 2022-08-06 03:03:24 +09:00
aclist c9b1ddb572 Create images dir 2022-08-06 01:36:47 +09:00
aclist ae28465a96 Remove file extension on desktop file PNG 2022-08-05 04:53:07 +09:00
aclist 5b3344fa50 Bump version 2022-08-05 04:42:53 +09:00
aclist 070275ddbe Add correct path for .desktop files 2022-08-05 04:41:25 +09:00
aclist e0327d2d38 Bump version 2022-08-05 04:17:28 +09:00
aclist 1c0b9df801 Merge in backend features 2022-08-05 04:14:56 +09:00
aclist 5f5cb0afa4 Bump version 2022-08-05 04:10:32 +09:00
aclist e5378a85d5 Fix typo 2022-08-05 04:10:07 +09:00
aclist ce468d9b37 Add mobile icon 2022-08-05 04:02:58 +09:00
aclist a5bc902b7c Config flag hotfix 2022-08-05 03:28:46 +09:00
aclist cfc1edc2f5 Bump version 2022-08-05 03:28:23 +09:00
aclist c838f90861 Set branch to stable if no config file present 2022-08-05 03:27:29 +09:00
aclist 1d020f4233 Bump version 2022-08-04 20:59:31 +09:00
aclist d1f7cacf15 Prompt to restart first-time setup if failed 2022-08-04 20:59:27 +09:00
aclist 8f5078ebac Bump version 2022-08-01 03:12:24 +09:00
aclist d8b9a6177c Drop download prompt for branch toggle 2022-08-01 03:11:27 +09:00
aclist c590f10a64 Bump version 2022-08-01 03:02:33 +09:00
aclist 7ec1bac1f0 Source seen_news and config values 2022-08-01 03:01:58 +09:00
aclist 835c3c4fa1 Bump version 2022-08-01 02:53:34 +09:00
aclist 893413cfe1 Populate branch value correctly 2022-08-01 02:52:59 +09:00
aclist fdeb29c5a9 Bump version 2022-08-01 02:46:38 +09:00
aclist f5a2a6a520 Bump version 2022-08-01 02:45:47 +09:00
aclist 286ed612c8 Enforce download when switching branches 2022-08-01 02:45:33 +09:00
aclist 1733c70cbd Update docs 2022-07-24 22:41:02 +09:00
aclist fcb3e905e4 Update docs 2022-07-24 22:40:39 +09:00
aclist f41ae43ee2 Correct version number 2022-07-24 22:20:47 +09:00
aclist 9d6f2f15f0 Bump version to 2.4.0-rc.1 2022-07-24 22:20:06 +09:00
aclist 680d741a4c Update news 2022-07-24 22:18:15 +09:00
aclist 56989976d4 Bump version 2022-07-24 22:16:11 +09:00
aclist 98a9e5bfc1 Test news update 2022-07-24 21:44:17 +09:00
aclist d4ba87a5c6 Add news file 2022-07-24 20:57:04 +09:00
aclist c0dc49a30e Reformat 2022-07-23 02:12:01 +09:00
aclist 7b820242eb Reformat 2022-07-23 02:11:24 +09:00
aclist 9b78356453 Reformat 2022-07-23 02:11:14 +09:00
aclist bbc2b5bb2a Bump version 2022-07-18 17:58:38 +09:00
aclist 48c66e2df2 Bump minor version 2022-07-18 17:45:58 +09:00
aclist ce8046e954 Hotfix for fav server select on main menu 2022-07-18 17:45:56 +09:00
aclist e5e90a1b80 Hotfix for broken API 2022-07-18 04:27:50 +09:00
aclist 5947e04b32 Add hotfix 2022-07-18 04:27:42 +09:00
aclist 7d7965b874 Add line break 2022-07-18 01:28:46 +09:00
aclist 993c6c780f 2.2.1-rc.1 (hotfix for malformed API results) 2022-07-18 01:06:41 +09:00
aclist 94db48b556 Add unreleased features 2022-06-22 22:34:37 +09:00
aclist 4b3410c2c4 Update changelog to 2.2.0 2022-06-22 22:33:53 +09:00
aclist 36428bfd69 Toggle debug in-app 2022-06-22 22:33:52 +09:00
aclist f9fa553351 Bump version 2022-06-20 11:27:05 +09:00
aclist 1395082d26 Fix version number 2022-06-20 11:26:43 +09:00
aclist 1db82407ef Change link to documentation 2022-06-20 11:26:13 +09:00
aclist be0b5a77df Add adoc file 2022-06-19 16:16:08 +09:00
aclist af9e708915 Format 2022-06-19 13:31:59 +09:00
aclist b5a50ae277 Embed screenshot 2022-06-19 13:30:53 +09:00
aclist e092139655 Add screenshot 2022-06-19 13:29:57 +09:00
aclist 96867e8cc3 Update README.md 2022-06-19 13:26:15 +09:00
aclist 0a5b78da1d Downgrade version 2022-06-18 12:33:16 +09:00
aclist 79e117a0dd Fix typo 2022-06-18 12:33:05 +09:00
aclist d4a906066d Safer expansion of originating script path 2022-06-18 12:32:24 +09:00
aclist 3c41152aa8 Bump version 2022-06-18 12:32:04 +09:00
aclist e384890e9a Bump version 2022-06-17 10:11:11 +09:00
aclist abb6b3f02b Remove required workshop path check 2022-06-17 10:10:25 +09:00
aclist cdc3e0e05f Bump version 2022-06-17 09:16:25 +09:00
aclist a3026101e0 Fix default Steam path prefix 2022-06-17 09:15:39 +09:00
aclist 8304eb0a53 Reset whitelist when canceling one-shot mode 2022-06-16 12:24:10 +09:00
aclist 386702fc8a Bump version 2022-06-16 12:23:52 +09:00
aclist b39ac0f036 Major version update 2022-06-15 19:32:10 +09:00
aclist 14c8a1a79b Update changelog for 2.0.0 2022-06-15 19:30:04 +09:00
aclist e5303cbae0 Bump version 2022-06-13 10:17:25 +09:00
aclist b197c64ce7 Add hotfix 2022-06-13 10:17:03 +09:00
aclist bcda934f14 Add confirmation dialog before run 2022-06-13 10:16:03 +09:00
aclist 748ce0a05f Print entire changelog since we can scroll 2022-06-12 16:17:23 +09:00
aclist 10de829874 Bump version 2022-06-12 16:16:34 +09:00
aclist 994dab8f1e Update unreleased features 2022-06-12 15:23:22 +09:00
aclist cb5b017829 Reword header 2022-06-12 15:21:47 +09:00
aclist 536c69988b Bump correct version 2022-06-12 15:20:20 +09:00
aclist 80e88f54ad Bump correct version 2022-06-12 15:20:14 +09:00
aclist 8a248b9cec Bump version 2022-06-12 13:47:08 +09:00
aclist ffe95ef0c5 Hotfix for Steam API queries 2022-06-12 13:44:30 +09:00
aclist 436919c852 Update unreleased 2022-06-09 00:43:22 +09:00
aclist fd371a30fe Fix typo 2022-06-08 23:50:41 +09:00
aclist ea1743ecc3 Bump changelog 2022-06-08 23:50:21 +09:00
aclist 94add8d983 Fix array used for mod concatenation 2022-06-08 23:49:26 +09:00
aclist f4f58f698f Clean up readme 2022-06-05 05:58:52 +09:00
aclist 76eebbfab6 Bump version 2022-06-05 05:47:27 +09:00
aclist d4352807fe Bump version 2022-06-05 05:40:38 +09:00
aclist 46f28abfa0 Fix regex 2022-06-05 05:39:20 +09:00
aclist a34dbe09ce Add changelog 2022-06-05 05:31:01 +09:00
aclist a6fff2b1af Bump 1.1.0 2022-06-05 05:29:30 +09:00
aclist 74da4a1ad1 Add titles to other menus 2022-05-29 15:40:38 +09:00
aclist fd7c306c86 Auto-close progress bar 2022-05-29 15:36:43 +09:00
aclist 4b531a8dca Fix progress bar 2022-05-29 15:33:14 +09:00
aclist 206656b675 Delete lib directory 2022-05-29 15:29:50 +09:00
aclist 462643e212 Delete test.sh 2022-05-29 15:29:39 +09:00
aclist 1912e0c4b0 Restore title line with working separator 2022-05-29 14:47:25 +09:00
aclist 1a49cb6879 Change separator 2022-05-29 14:41:56 +09:00
aclist 71d0cacadd Fix typo 2022-05-29 14:32:26 +09:00
aclist f83dd8b7e4 Bump version 2022-05-29 14:03:47 +09:00
aclist 7ab0d7378a Add default Steam Deck path to config 2022-05-29 14:02:39 +09:00
aclist 905c98c406 Remove separator from menu title 2022-05-29 13:57:48 +09:00
aclist cfadfb627e bump to version 1.0.0 2022-05-23 04:20:34 +09:00
aclist cad3128945 add new yad version 2022-05-18 19:00:29 +09:00
aclist d6b782d836 add dynamic lib test 2022-05-17 21:32:14 +09:00
aclist 79a18303a2 Delete yad
remove old binary version
2022-05-17 21:31:51 +09:00
aclist 3ecb340ad1 add yad test 2022-05-12 20:29:13 +09:00
aclist 2f02ae649e add compiled version of yad 2022-05-12 20:28:44 +09:00
aclist 4c5e07fe89 add license 2022-05-12 20:28:06 +09:00
aclist 8d50310c76 initial GUI version 2022-05-09 20:42:24 +09:00
aclist d81b99be25 placeholder readme 2022-05-09 20:36:41 +09:00
aclist 73af2df381 remove TUI image 2022-05-09 20:09:30 +09:00
aclist 6d21c2710b remove TUI client 2022-05-09 20:08:59 +09:00
aclist e0276d4f95 Reword README 2022-01-24 08:41:14 +09:00
aclist 29a440beb1 Update README 2022-01-24 08:38:29 +09:00
aclist ea4871f916 Reset patch version 2022-01-21 05:48:01 +09:00
aclist 8642bd115b Bump minor version 2022-01-21 05:45:20 +09:00
aclist 9685bff75a Add sigint trap 2022-01-21 05:44:23 +09:00
aclist 296185a728 Hide cursor to prettify log output 2022-01-21 05:43:51 +09:00
aclist 407ac4b87f Prevent line splitting on modlist comparison 2022-01-21 05:43:24 +09:00
aclist cf2555bf5a Correctly test for steamcmd 2022-01-21 05:42:56 +09:00
aclist b369266803 Better handling of inter-device block movement 2022-01-21 05:41:35 +09:00
aclist a0d73ed338 Add column and upstream version check 2022-01-21 05:41:03 +09:00
aclist 037451d6a4 Add column version check 2022-01-21 05:40:12 +09:00
aclist 0f844b6950 Update wording about ping 2022-01-11 20:29:30 +09:00
aclist ad4175dace Revert message 2022-01-11 18:53:13 +09:00
aclist aac5fb656c Add mod validation method 2022-01-11 18:51:57 +09:00
aclist 0f4dbed599 Update case statement 2022-01-11 18:50:42 +09:00
aclist 4bedbfbf19 Move menu strings outside of table 2022-01-11 18:49:37 +09:00
aclist 0b74605b4b Add timeout message to table 2022-01-11 18:48:48 +09:00
aclist f4c10fbe4f Fix string literal typo in workshop URL 2022-01-09 20:44:23 +09:00
aclist babf84bbfd Add credit 2022-01-01 02:08:20 +09:00
aclist 664e226fe5 Update minor version 2021-12-31 15:48:24 +09:00
aclist 30ba0c1c8c -world=empty flag fix for servers with custom menu 2021-12-31 15:43:54 +09:00
aclist c891e9cfef Edit typo 2021-12-31 09:49:38 +09:00
aclist 739dc56f09 Remove space 2021-12-31 09:45:30 +09:00
aclist 145d40cb3b Update Proton version info 2021-12-31 09:45:10 +09:00
aclist 53350cdd5a Remove stale variable 2021-12-30 13:24:03 +09:00
aclist 38c42f6358 Sanitize mod links 2021-12-30 13:23:17 +09:00
aclist 00ecb9747c Clarify wording 2021-12-15 16:58:16 +09:00
aclist ed6d93cdd4 Add disclaimer 2021-12-15 16:56:18 +09:00
aclist 2b4d310e5e Add error handling for missing steamcmd 2021-12-15 07:48:05 +09:00
aclist 38d6316b63 Clarify wording 2021-12-12 07:32:21 +09:00
aclist 44ea5b3a55 Correct typo 2021-12-12 03:43:57 +09:00
aclist 08035642b9 Add image link 2021-12-12 03:43:05 +09:00
aclist b5b2a6a6a2 Add line breaks 2021-12-12 03:41:44 +09:00
aclist aa73ffebfd Initial commit 2021-12-12 03:40:43 +09:00
209 changed files with 9591 additions and 14653 deletions

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
# These are supported funding model platforms
github: aclist
+57
View File
@@ -0,0 +1,57 @@
name: Bug report
description: Submit bugs that affect functionality here
title: "[BUG] Your title here"
labels: ["bug"]
assignees:
- aclist
body:
- type: markdown
attributes:
value: |
### WARNING: When posting log/config data, redact any sensitive information like API keys.
- type: checkboxes
id: kb
attributes:
label: Did you check if this issue already exists?
options:
- label: I have checked the [Knowledge Base](https://aclist.github.io/dzgui/kb.html) and searched through [past issues](https://github.com/aclist/dztui/issues?q=is%3Aissue+is%3Aclosed) and did not find my issue there.
required: true
- type: dropdown
id: device
attributes:
label: Device type
options:
- Desktop PC
- Steam Deck
default: 0
validations:
required: true
- type: input
id: version
attributes:
label: DZGUI version
validations:
required: true
placeholder: "5.6.0"
- type: input
id: distro
attributes:
label: Linux distribution
validations:
required: true
placeholder: "Arch Linux"
- type: textarea
id: what-happened
attributes:
label: Describe the bug
description: What did you expect to happen?
placeholder: "E.g., When doing X, Y occurred. Include as much detail as possible."
validations:
required: true
- type: textarea
id: logs
attributes:
label: Additional log output
description: Attach the file `$HOME/.local/state/dzgui/DZGUI_DEBUG.log` by clicking this area to highlight it and then dragging the file in.
validations:
required: false
+1
View File
@@ -0,0 +1 @@
blank_issues_enabled: false
+47
View File
@@ -0,0 +1,47 @@
name: Feature suggestion
description: Submit requests for new features here
title: "[FEAT] Your title here"
labels: ["enhancement"]
assignees:
- aclist
body:
- type: dropdown
id: device
attributes:
label: Device type
options:
- Desktop PC
- Steam Deck
default: 0
validations:
required: true
- type: input
id: version
attributes:
label: DZGUI version
validations:
required: true
placeholder: "5.6.0"
- type: input
id: distro
attributes:
label: Linux distribution
validations:
required: true
placeholder: "Arch Linux"
- type: textarea
id: what-happened
attributes:
label: Describe the feature
description: A clear and detailed description
placeholder: "E.g., Add a dialog to the Options menu that automatically lets the user do Y"
validations:
required: true
- type: textarea
id: why
attributes:
label: Describe the benefit
description: How will this feature benefit large numbers of users?
placeholder: "E.g., Currently, users have to manually do X to achieve Y. Implementing this feature would achieve A, B, and C."
validations:
required: true
+50
View File
@@ -0,0 +1,50 @@
name: Troubleshooting
description: Submit user error/troubleshooting questions here
title: "[HELP] Your title here"
labels: ["troubleshooting"]
assignees:
- aclist
body:
- type: markdown
attributes:
value: |
### WARNING: When posting log/config data, redact any sensitive information like API keys.
- type: dropdown
id: device
attributes:
label: Device type
options:
- Desktop PC
- Steam Deck
default: 0
validations:
required: true
- type: input
id: version
attributes:
label: DZGUI version
validations:
required: true
placeholder: "5.6.0"
- type: input
id: distro
attributes:
label: Linux distribution
validations:
required: true
placeholder: "Arch Linux"
- type: textarea
id: what-happened
attributes:
label: Describe the issue
description: A detailed description. What did you expect to happen?
placeholder: "Include as much detail as possible and state the steps leading up to the problem. E.g., First I do this, then I do this, then this happens."
validations:
required: true
- type: textarea
id: logs
attributes:
label: Additional log output
description: Attach the file `$HOME/.local/state/dzgui/DZGUI_DEBUG.log` by clicking this area to highlight it and then dragging the file in.
validations:
required: false
+18
View File
@@ -0,0 +1,18 @@
name: Mirror to Codeberg
on:
push:
workflow_dispatch:
jobs:
mirror-to-codeberg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
if: ${{ vars.GIT_REMOTE != '' }}
with:
target_repo_url: ${{ vars.GIT_REMOTE }}
ssh_private_key: ${{ secrets.GIT_SSH_PRIVATE_KEY }}
+3 -12
View File
@@ -1,13 +1,4 @@
*.egg*
tags
__pycache__
prio.otl
bugs
build/
.ruff_cache/
.pytest_cache/
.mypy_cache/
notes.otl
uv.lock
.coverage
pyapp-latest/
dist/
pre-commit
tests/
-6
View File
@@ -1,6 +0,0 @@
[submodule "dzgui/lib/dayzquery"]
path = dzgui/lib/dayzquery
url = https://github.com/Yepoleb/dayzquery.git
[submodule "dzgui/lib/a2s"]
path = dzgui/lib/a2s
url = https://github.com/Yepoleb/python-a2s.git
-20
View File
@@ -1,20 +0,0 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.6
hooks:
- id: ruff-check
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.18.2
hooks:
- id: mypy
args: [--strict, --ignore-missing-imports]
- repo: local
hooks:
- id: copy-clog
name: Copy CHANGELOG.md to package data dir
entry: python scripts/copy_changelog.py
language: system
- id: untracked
name: Check for untracked files not present in .gitignore
entry: python scripts/untracked.py
language: system
+989 -67
View File
File diff suppressed because it is too large. Load diff
+71
View File
@@ -0,0 +1,71 @@
# Introduction
Thank you for your interest in DZGUI!
This guide goes over development conventions and best practices for contributors.
If you are a developer, you can skip to the end.
# Requesting help
If you encounter a problem with DZGUI, you can submit tickets on the GitHub
(issue tracker)[https://github.com/aclist/dzgui-devel/issues] under the
`troubleshooting` tag.
# How can I help the project?
There are several ways to help this project.
1. Report bugs that you find
2. Request features that you would like
3. Contribute features and fixes to the codebase
4. Contribute documentation to the project
Before making any contribution, please read the `CODE_OF_CONDUCT.md` and act
accordingly.
## Submitting a ticket
Navigate to the GitHub (issue tracker)[https://github.com/aclist/dzgui-devel/issues].
From there, follow the onscreen prompts. You will be asked questions such as:
- What version are you using?
- What distribution are you using?
- What is the issue that you found?
- How can we reproduce the issue?
You can also attach screenshots, logs, or other data that can help us.
## Requesting a feature
You can also request features via the same issue tracker. It is good practice to
first search for your idea to see if a similar one has already been posted.
If not, open a ticket where you describe your feature and its possible benefits.
Please note that this is a community project, so it takes time for us to develop
features. Putting in a feature request does not mean that it will be implemented,
but we will do our best to support as many cool ideas as possible.
## Contributing code or documentation
If you would like to take ownership or assist with an issue on the issue tracker, or
contribute a new change, please follow the guidelines below.
Fork this repository and check out the code up to `prerelease/<latest-version>`.
If there is no pending prerelease PR, you can base your changes off of
the `testing` branch. You may later be asked to retarget your PR to the prerelease
branch once a new one is made. This is because out-of-band PRs are consolidated into
the next release before merging.
The following naming conventions apply for PRs:
- fix/<your-fix> - patch/hotfix branches
- feat/<your-feature> - feature branches
- doc/<your-doc-branch> - documentation branches
- infra/<your-infra-branch> - infrastructure branches
Implement your changes and test them locally. If they work you may
open a merge request, and then we review your changes. If everything is OK, it
will be merged to `prerelease/<latest-version>`, then `testing`, and after a live
testing phase, to `stable` as well.
It is recommended to follow
(Conventional Commits)[https://www.conventionalcommits.org/en/v1.0.0/], as this
integrates well with tooling and helps the project review your code.
-18
View File
@@ -1,18 +0,0 @@
# TODO: link to here from sphinx docs
# Setting up precommit hooks
pre-commit install
# Fetching submodules
git submodule update --recursive --init
# Installing dev dependencies
uv pip install -e .[dev]
# Building documentation
sphinx-build -M html source build -a
# Building standalone DZGUI release binaries
1. Run `./scripts/dl_pyapp.sh`
2. Run `python3 scripts/release.py`
3. Generate a release and tag against the bundled `dzgui` executable
-5
View File
@@ -1,8 +1,3 @@
Additional licenses to git submodules not explicitly shipped with the source code:
python-a2s: https://raw.githubusercontent.com/Yepoleb/python-a2s/refs/heads/master/LICENSE
dayzquery: https://raw.githubusercontent.com/Yepoleb/dayzquery/refs/heads/master/LICENSE
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
+17 -20
View File
@@ -1,37 +1,34 @@
## What this is
DZGUI is a turnkey browser and mod manager for DayZ on Linux. It allows you to connect to both official and modded/community DayZ servers on Linux via a graphical user interface (GUI).
DZGUI allows you to connect to both official and modded/community DayZ servers on Linux and provides a graphical interface for doing so.
This overcomes certain limitations in the Linux client and helps prepare the game to launch by providing features like:
- Search for and display global and LAN servers via an interactive table
- Supports official, third-party, and modded DayZ servers
- Automatically find and prepare mods being requested by servers
- Search for and display server metadata in a table (server name, player count, ping, queue size, current gametime, distance, IP)
- Add/delete/manage favorite servers by IP or ID
- Quick-connect to favorite/recent servers
- Manage local mods and symlinks
- Prepare launch options to pass to Steam
- Find and prepare mods being requested by servers (choose from manual or automatic installation)
- Bulk delete/update local mods
- Concatenate launch options to pass to Steam
- Connect to mod-enabled LAN servers
## Design philosophy
DZGUI follows a specific set of guidelines, enumerated below:
- Provide a free and open-source tool under GPL
- Do not use undocumented, third-party servers to aggregate data; no central "DZGUI" server
- All connections go to Steam and DayZ servers directly; the tool should function in perpetuity without intermediary endpoints
- Target Linux desktop and Steam deck specifically; not a cross-platform tool
## Setup and usage
Please refer to the documentation for installation and setup instructions:
Refer to the documentation for installation and setup instructions:
- [GitHub](https://aclist.github.io/dzgui/index.html)
- [Codeberg (Mirror)](https://aclist.codeberg.page)
- [Mirror (Codeberg)](https://aclist.codeberg.page)
![A screenshot of DZGUI](/images/example.png)
## Attribution
Geolocation records from [DB-IP](https://db-ip.com) under [CC 4.0 license](https://creativecommons.org/licenses/by/4.0/)
This tool uses [python-a2s](https://github.com/Yepoleb/python-a2s) and [dayzquery](https://github.com/Yepoleb/dayzquery) as submodules; licenses for these submodules can be found in the LICENSES file
of the project root.
Both the geolocation records and submodules listed above are not shipped with the source code, but are retrieved and assembled at runtime.
Finally, executable versions of DZGUI shipped as release binaries are thin wrappers around the Python interpreter, and also retrieve and assemble the above dependencies at runtime on the end-user's
machine, rather than using pre-compiled source code. Users wishing to review these dependencies can inspect the 'pyproject.toml' manifest in the project root.
## Disclaimer
DZGUI is beta-quality software and is provided as-is.
-674
View File
@@ -1,674 +0,0 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
-20
View File
@@ -1,20 +0,0 @@
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -a
-22
View File
@@ -1,22 +0,0 @@
## Dependencies:
```
pip install -r requirements.txt
```
## Setup:
1. Modify `source/conf.py`.
2. Add .rst pages to `source` tree.
## Build
```
$ mkdir build
$ sphinx-build -M html source build -a
```
## Publish
Export contents of `build/html` to host.
N.B. For GitHub, touch `.nojekyll` file on the root of the branch.
-35
View File
@@ -1,35 +0,0 @@
@ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.https://www.sphinx-doc.org/
exit /b 1
)
if "%1" == "" goto help
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
:end
popd
-2
View File
@@ -1,2 +0,0 @@
sphinx-rtd-theme
sphinx-copybutton
-60
View File
@@ -1,60 +0,0 @@
Submitting a ticket
==========================
Tickets are tracked at the `DZGUI issue tracker <https://github.com/aclist/dztui/issues>`_.
You will need to `register for a GitHub account <https://github.com/signup>`_ in order to submit one.
If have checked the :doc:`kb` and `closed issues <https://github.com/aclist/dztui/issues?q=is%3Aissue+is%3Aclosed>`_ area and did not find a solution, three ticket types are provided for your
convenience:
- **Bug report**: for unexpected, breaking behavior in the application
- **Feature request**: to propose new functionality
- **Troubleshooting**: if all else fails, you can request help here
Reports by example
--------------------------
Below are some examples of how to format a constructive report that will ensure your problem can be resolved in a timely fashion.
A non-actionable report
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Subject: add button
hi, you must add a button to show how long I have to wait to join a full server, the app is useless without this...do your job, guys!!! ;-)
This report exhibits a number of problems:
- Vague title and summary: in addition to being unclear, this will slow down filing the incoming report.
- Problem space is poorly defined: it is not clear where the issue lies, where the feature is supposed to be implemented, nor why.
- Lack of context: the feature may already exist, but there is not enough information to go on. Alternatively, the feature may be technically impossible to implement, but there is not enough
information to go on.
- Incorrect report type: this is a feature request filed as a bug report.
- Unprofessional tone: the message is disrespectful towards project members and inserts the user's subjective opinion.
An actionable report
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Subject: Version 5.5.0-beta.2 crashes when selecting multiple table rows via Ctrl-click
This occurs specifically on version 5.5.0-beta.2 if the setting ALLOW_MULTI is set to ON. I was able to reproduce it using the following steps:
Distribution: Fedora
- Ensure that ALLOW_MULTI is set to ON
- Open the application and immediately navigate to the Server Browser
- Uses the Ctrl-click binding to select multiple rows in the table
- After >1 row is selected, the application crashes to the desktop with the following traceback (see attached dump)
Thanks for looking into this.
This report is actionable because it is objective, specific, and detailed:
- The subject is clearly defined: specific details ensure it will be filed in a timely manner.
- Scope is explicit: the specific version, settings, and conditions under which the problem occur were given.
- Ample context: the user gave steps to reproduce the problem and clarified each one.
- Courteous tone: the user interacted with project members in a professional manner.
- Supporting information: the user provided a crash dump to expedite resolution of the issue.
-40
View File
@@ -1,40 +0,0 @@
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'DZGUI'
author = 'aclist'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = []
templates_path = ['_templates']
exclude_patterns = []
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
#html_theme = 'alabaster'
extensions = [
'sphinx_rtd_theme',
'sphinx_copybutton',
"sphinx.ext.autosectionlabel",
"sphinx.ext.githubpages"
]
html_theme = "sphinx_rtd_theme"
#html_static_path = ['_static']
html_show_sphinx = False
html_show_copyright = False
html_show_sourcelink = False
today_fmt = "%Y-%m-%d"
release = "7.x.x"
version = "7.x.x"
-19
View File
@@ -1,19 +0,0 @@
Developers
===========
This project is open source under the GPLv3 license. You can find the source code on
`GitHub <https://github.com/aclist/dztui>`_. If you wish to contribute to
development, you will find further help in the
`CONTRIBUTING.md <https://github.com/aclist/dztui/blob/main/CONTRIBUTING.md>`_
file.
All contributors are expected to act in accordance with the project's
`code of conduct <https://github.com/aclist/dztui/blob/main/CODE_OF_CONDUCT.md>`_,
and follow the project's standards and guidelines.
To install DZGUI and related dependencies for linting, testing, and version control,
invoke the command ``uv pip install .[dev]``.
After this process, install the applicable pre-commit hooks by invoking the command ``pre-commit install``.
These pre-commit hooks enforce code checks that prevent making commits unless the relevant tests pass.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 609 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 569 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 417 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

-69
View File
@@ -1,69 +0,0 @@
.. DZGUI documentation master file, created by
sphinx-quickstart on Thu Dec 12 13:12:14 2024.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
DZGUI documentation (|release|)
=================================
Last update: |today|
What this is
----------------
A DayZ server browser/mod manager for Linux. Used to list official and community server details and quick connect to preferred servers by staging mods and concatenating launch options automatically.
Source code:
- `GitHub <https://www.github.com/aclist/dztui>`_
- `Codeberg (mirror) <https://codeberg.org/aclist/dztui>`_
Installation
-------------
- Step 1: :doc:`installation`
- Step 2: :doc:`setup`
Usage
------
See: :doc:`usage`.
Uninstallation
---------------
See: :doc:`uninstallation`.
Troubleshooting
----------------
See: :doc:`kb` or :ref:`Submitting a ticket`.
.. toctree::
:maxdepth: 3
:hidden:
self
.. toctree::
:caption: Setup
:maxdepth: 3
:hidden:
installation
setup
usage
uninstallation
.. toctree::
:caption: Advanced usage
:maxdepth: 3
:hidden:
steam
locale
.. toctree::
:caption: Help
:maxdepth: 3
:hidden:
kb
bugs
development
-110
View File
@@ -1,110 +0,0 @@
Installation
==================
Basic runtime dependencies
---------------------------------
If not already installed, the below can be found in your system’s package manager.
If any dependencies are missing when the application starts, it will warn you, so you need not take any preemptive measures here.
- curl
- jq
- steam
- wmctrl or xdotool
- zenity
.. note::
All dependencies are installed out of the box on Steam Deck.
UI dependencies (Python and PyGObject)
---------------------------------------
.. important::
As of version 6.0.0, you must have a valid Python 3.13 and matching PyGObject environment.
Depending on your distribution, this may require additional manual intervention.
Arch Linux (vanilla variants)
^^^^^^^^^^^^^^^^^^^^^^
You will need the ``python3.13`` package, if it is not already installed.
Install the following build dependencies:
.. code:: console
sudo pacman -S cmake gcc pkgconf python-cairo
.. include:: venv.rst
CachyOS (Arch)
^^^^^^^^^^^^^^^^^^^^^^^
Refer to the build instructions for Arch Linux first.
The ``python3.13`` package is not available on CachyOS, so it is recommended to
use ``uv`` to manage Python versions.
.. code:: console
sudo pacman -S uv
.. include:: venv.rst
Manjaro 26 (Arch)
^^^^^^^^^^^^^^^^^^^^^^^
If Python 3.13 is not already available out of the box, refer to the build instructions for :ref:`Arch Linux (vanilla variants)`.
Debian 13 variants
^^^^^^^^^^^^^^^^^^^^^^^
Python 3.13 and PyGObject are available out of the box. No additional steps are necessary.
You can proceed to the :ref:`Installscript`.
Fedora 43 variants
^^^^^^^^^^^^^^^^^^^^^^^
Fedora 43 ships with a newer version of Python (3.14), so you must set up Python 3.13 in its own
virtual environment (venv) to prevent it from conflicting with the system package.
Install the following build dependencies:
.. code:: console
sudo dnf install cairo cairo-devel cairo-gobject-devel gcc python3.13 python3.13-devel
.. include:: venv.rst
Ubuntu 24 variants
^^^^^^^^^^^^^^^^^^^^^^
Ubuntu ships with an older version of Python (3.12). You must install additional dependencies.
Add the PPA below to add Python 3.13 to your sources:
.. code:: console
sudo add-apt-repository ppa:deadsnakes/ppa
Install the following build dependencies:
.. code:: console
sudo apt install python3.13 python3.13-venv python3.13-dev build-essential python3-gi-cairo pkg-config libgirepository-2.0-dev libcairo2-dev
.. include:: venv.rst
Installscript
-----------------------
Invoke the command below from a terminal. This script fetches the main DZGUI script from the repository,
makes it executable, and launches DZGUI's first-time setup. After running this installscript, you will
have the file ``dzgui.sh`` wherever you invoked the command.
.. code:: console
curl -s "https://codeberg.org/aclist/dztui/raw/branch/dzgui/install.sh" | bash
nixOS installation
----------------------
Two packages are independently maintained by other contributors. Each takes a slightly different approach.
nixOS packages are standalone and do not require cloning the git repository.
- https://github.com/lelgenio/dzgui-nix
- https://github.com/jiriks74/dzgui.flake
Next steps
---------------
Proceed to the next section for setup instructions.
-77
View File
@@ -1,77 +0,0 @@
Knowledge Base
==================
.. _DZG-001:
DZG-001: Periodically getting dropped from servers, or servers appear unreachable
------------------------------------------------------------------------------------
It is a longstanding issue in DayZ that the game opens a large number of connections when querying servers and/or while connected to servers.
This can result in excess traffic on the user's PC which, depending on how much headroom your network has, can lead to getting dropped, unresponsiveness, or a timeout.
If you are on Wi-Fi, try switching to a wired connection and see if the problem resolves itself. If it does, your wireless router settings do not have enough headroom for max simultaneous connections. Use a wired connection, or update your network settings to a more permissive setup.
Bohemia has acknowledged this issue going back 10+ years and stated that DayZ has a heavy impact on the network, but there is as yet no proposed solution on the DayZ side.
This issue is frequently seen on Steam Deck, due to the tendency for users to use it in an untethered Wi-Fi setup.
.. _DZG-002:
DZG-002: Some servers appear locked in the official DayZ client, and are unreachable in DZGUI
-----------------------------------------------------------------------------------------------
This is a variant of :ref:`DZG-001`.
.. _DZG-003:
DZG-003: On Steam Deck, DayZ becomes unresponsive/sluggish over time
---------------------------------------------------------------------------------------------
When DayZ is open for 1+ hours, a gradual loss in performance and FPS may occur on the Steam Deck.
A solution that seems to work for most users is to install `Cryo Utilities <https://github.com/CryoByte33/steam-deck-utilities>`_, a third-party performance management application.
.. _DZG-004:
DZG-004: On Steam Deck, some mods in the Workshop show a black screen when DZGUI attempts to open them
---------------------------------------------------------------------------------------------------------
This is a bug in the Steam client that is being tracked at Valve's Steam for Linux issue tracker here: https://github.com/ValveSoftware/steam-for-linux/issues/9598.
To resolve this issue, manually intervene in the Steam client by selecting a different context (e.g., Store, Library), waiting for it to load, then navigating back to the Workshop context. This should
clear the blockage and allow the contents to render.
.. _DZG-005:
DZG-005: Rendering problems with objects in the Winter Chernarus v2 mod
--------------------------------------------------------------------------
This mod has LOD (level of detail) bugs that may cause objects near the player, such as leaves, to render incorrectly, or cause distant trees to pop in abruptly. This is an acknowledged issue with the mod itself, not with DayZ or DZGUI.
There is no user-side fix for this issue; it is a problem solely on the mod side.
.. _DZG-006:
DZG-006: After moving DayZ to another drive, DZGUI fails to locate it on initial setup
----------------------------------------------------------------------------------------
If you recently moved the location of DayZ using Steam's internal dialogs, it may take some time for this information to update internally on Steam's side.
Steam stores the location of installed games in a unified file, and DZGUI checks this file during initial setup to determine where Steam claims DayZ is installed.
If you recently moved DayZ to a different drive or partition but did not restart Steam, this information may be out of date, causing Steam to report the wrong location.
Try restarting the Steam client and starting the DZGUI initial setup again.
.. _DZG-007:
DZG-007: Why do I need a Steam Web API key? Is it safe?
----------------------------------------------------------
In order to provide a server browser showing a searchable list of all available servers, DZGUI utilizes the Steam Web API.
Actual connections and queries to individual servers are performed directly between the computer and the DayZ server.
DZGUI gets its server information directly from the most authoritative source: Steam. It does this by letting the user be solely in control of their own API key and the application in an authenticated way. Users explicitly get permission to use a Web API key instead of scraping DayZ server info from third-party sites.
Everything that happens between DZGUI and the Steam Web API endpoint takes place solely on the user's computer, using a GET request (fetch server list), and no information gets sent back to the developer. DZGUI does not scrape third party DayZ APIs without permission.
There is some misconception that a Steam Web API key could be used to gain information about a user's account or control their account. Not only is this not possible, but the Web API key is used solely by the user on their own computer and is protected by Steam Guard.
A Steam Web API key is the most strict way of getting authentic, reliable, and consistent server information in a zero-trust model.
You are responsible for the creation, storage, management, and revocation of your Web API key.
-12
View File
@@ -1,12 +0,0 @@
Locale support
==================
For internationalization purposes, DZGUI will inherit the default locale setting on the system when displaying numbers.
This is used for thousands separators in long numbers and decimal separators in fractional numbers.
If you wish to use a specific regional numbering preference while retaining a different base system language (e.g., English language with German-style numbering), pass the desired locale as a variable before launching DZGUI:
``LC_ALL=de_DE.UTF-8 ./dzgui``
If you intend to use this frequently, you could wrap the above in a script or alias.
-53
View File
@@ -1,53 +0,0 @@
Setup
=========
DayZ license
-----------------
Prepare a Steam account with a DayZ license (i.e., own the game). From Steam's right-click menu for the game options, under ``Compatibility``, enable a Proton version ≥ ``6.8`` (or use Proton
Experimental for the latest version).
As of this writing, any recent version of Proton should work, and it is encouraged to use the most recent one.
API keys
-------------
You will need at a minimum a :ref:`Steam Web API key<steam_api>` in order to browse the server index.
.. _steam_api:
Steam Web API key
^^^^^^^^^^^^^^^^^^
**This step is required**.
Register for a `Steam Web API key <https://steamcommunity.com/dev/apikey>`_ (free) using your Steam account. You will be asked for a unique URL for your app when registering.
Since this key is for a personal use application and does not actually call back anywhere, set a generic local identifier here like "127.0.0.1" or some other name that is meaningful to you.
Once configured, you can insert this key in the app when launching it for the first time.
.. note::
If you are confused about this requirement, please refer to DZGUI Knowledge Base article :ref:`DZG-007<DZG-007>` for additional information.
Battlemetrics API key
^^^^^^^^^^^^^^^^^^^^^^
**This step is optional, but recommended**. Using this key lets you also connect to and query servers by their shorthand ID instead of by IP.
Register for an API key at `BattleMetrics <https://www.battlemetrics.com/account/register?after=%2Fdevelopers>`_ (free).
From the ``Personal Access Tokens area``, select ``New Token``.
Give the token any name in the field at the top.
Leave **all options unchecked** and scroll to the bottom. Select ``Create Token``.
Once configured, you can insert this key in the app when launching it for the first time (optional), or later on when using the connect/query by ID methods in the app.
.. tip::
Each server has a unique ID. This is the string of numbers at the end of the URL. For example, in the URL ``https://www.battlemetrics.com/servers/dayz/8039514``, the ID is ``8039514``.
Next steps
--------------
Proceed to the next section for usage instructions.
-90
View File
@@ -1,90 +0,0 @@
Steam integration
====================
DZGUI can be added to Steam as a "non-Steam game" in order to facilitate integration with Steam Deck or desktop environments.
First, launch Steam in the **Large** (default) view.
.. attention::
Steam Deck users: Gaming Mode has limited support for configuration of custom games. You will need to switch to **Desktop Mode** in order to add a non-Steam game.
.. figure:: images/01.png
:scale: 70%
:alt: Adding a non-Steam game
Select **Add a Game** > **Add a Non-Steam Game** from the bottom left corner of the Steam client.
Navigate to ``$HOME/.local/share/applications`` and select ``dzgui.desktop``.
Select **Add Selected Programs** to add a shortcut to DZGUI.
Artwork
^^^^^^^^^^
DZGUI ships with custom artwork that provides various cover/splash images to allow it to integrate with the rest of your games library.
.. figure:: images/02.png
:scale: 70%
:alt: Adding a non-Steam game
From the main library view, navigate to the app’s details page and right-click the blank image header at the top.
.. figure:: images/03.png
:scale: 70%
:alt: Adding a non-Steam game
Select **Set Custom Background**
Select to display **All Files** from the **File type** dropdown
Navigate to ``$HOME/.local/share/dzgui`` and select ``hero.png``.
.. figure:: images/04.png
:scale: 70%
:alt: Adding a non-Steam game
Next, right-click the image background and select **Set Custom Logo**.
Navigate to ``$HOME/.local/share/dzgui`` and select ``logo.png``.
.. figure:: images/05.png
:scale: 70%
:alt: Adding a non-Steam game
Notice that this removes the redundant app name that occluded the image, as seen above.
.. figure:: images/06.png
:scale: 70%
:alt: Adding a non-Steam game
Next, navigate to your Library index (looks like a bookshelf of cover art) and find the DZGUI app.
Right-click its cover and select **Manage** > **Set custom artwork**.
Navigate to ``$HOME/.local/share/dzgui`` and select ``grid.png``.
.. figure:: images/07.png
:scale: 70%
:alt: Adding a non-Steam game
The final result will create box art looking like the above.
.. figure:: images/08.png
:scale: 100%
:alt: Adding a non-Steam game
Next, right-click the DZGUI entry in your Library and select **Properties** to open the properties dialog. Next to the **Shortcut** field, you will see a small square box which represents the game’s
icon. Click this to open a file explorer, navigate to ``$HOME/.local/share/dzgui``, and select ``icon.png``. This will add a small icon to the list view.
Finally, after you launch DZGUI for the first time, you should quit the application and return to the Library view. Select the **Recent Games** dropdown on the right-hand side.
Steam shows a collection of box art based on categories like "Play Next", "Recent Games", etc. Look for a **downward-pointing caret icon** and click it, then select the **Recent Games** category.
.. figure:: images/09.png
:scale: 100%
:alt: Adding a non-Steam game
If DZGUI was the last item played, it will be shown with a landscape, rather than portrait, orientation cover, which is initially blank.
To customize this cover, right click it and select **Manage** > **Set custom artwork**, navigate to ``$HOME/.local/share/dzgui``, then select ``hero.png``.
-12
View File
@@ -1,12 +0,0 @@
Uninstallation
==================
To uninstall DZGUI and its associated files, invoke ``./dzgui.sh`` with the ``-u`` or ``--uninstall`` flag.
Follow the prompts to choose from:
- **Full uninstall** -- removes the application and all user-defined configuration files
- **Partial uninstall** -- removes the application, but keeps user-defined configuration files
.. tip::
If you intend to reinstall DZGUI again, keeping your configuration files is recommended.
-25
View File
@@ -1,25 +0,0 @@
Usage
=========
It is always advised to have Steam running in the background. DZGUI is meant to run "on top of" Steam.
DZGUI can be launched in one of three ways.
From a terminal
------------------
Invoke the command ``./dzgui.sh`` from wherever you downloaded the DZGUI script to.
Launching from a terminal may give more verbose information in the event of a crash, and can be a good way of troubleshooting problems.
From the shortcut shipped with the application
--------------------------------------------------
On most distributions, if you are using a desktop environment based on the Freedesktop specification, shortcuts will be installed for you.
- One shortcut is located under the ``Games`` category of your system’s applications list/start menu.
- The other is accessed via the ``DZGUI`` desktop icon (Steam Deck only)
From Steam
--------------
See :doc:`steam`.
-43
View File
@@ -1,43 +0,0 @@
After satisfying the dependencies above, create a virtual environment (venv) and install PyGObject:
If you have ``uv`` as your Python version manager, invoke the following:
.. code:: console
uv venv --python 3.13 $HOME/.virtualenvs/dzgui
source $HOME/.virtualenvs/dzgui/bin/activate
uv pip install PyGObject
If you installed the ``python3.13`` package directly instead of ``uv``, use the below:
.. code:: console
python3.13 -m venv $HOME/.virtualenvs/dzgui
source $HOME/.virtualenvs/dzgui/bin/activate
pip install PyGObject
You can now proceed to the :ref:`Installscript`.
After installation, refer to the additional remarks below.
.. important::
Since PyGObject is localized to a venv, it is advisable to create a wrapper script to ensure
the venv is activated on subsequent invocations of DZGUI.
.. code:: console
#!/usr/bin/env bash
source $HOME/.virtualenvs/dzgui/bin/activate
<insert your path to dzgui.sh>
Make sure to update the placeholder path on the last line. For example, if you ran the
installscript from your home directory, the wrapper script would look like:
.. code:: console
#!/usr/bin/env bash
source $HOME/.virtualenvs/dzgui/bin/activate
$HOME/dzgui.sh
Save this wrapper script in a location of your choice, e.g., ``mywrapper.sh`` and set the
executable bit: ``chmod +x mywrapper.sh`` This script will be your entrypoint for
future invocations of DZGUI, so you should launch it, not ``dzgui.sh``
Executable
+1265
View File
File diff suppressed because it is too large. Load diff
View File
Whitespace-only changes.
View File
Whitespace-only changes.
-40
View File
@@ -1,40 +0,0 @@
import logging
import requests
from typing import Any, Optional, TYPE_CHECKING
from dzgui.const.constants import APP_NAME
from dzgui.const.endpoints import BM_SERVERS
logger = logging.getLogger(APP_NAME)
if TYPE_CHECKING:
from dzgui.api.servers import Record
def get_attributes(key: str, uid: int) -> Any:
# TODO: handle if key is not set
# TODO: tests for malformed IDs/values
hdr = {"Authorization": "Bearer " + key}
payload: dict[str, str] = {
"filter[game]": "dayz",
"sort": "-players",
"filter[ids][whitelist]": str(uid),
}
res = requests.get(BM_SERVERS, params=payload, headers=hdr)
res.raise_for_status()
j = res.json()["data"][0]["attributes"]
return j
def map_id_to_record(key: str, uid: int) -> Optional["Record"]:
from dzgui.api.servers import Record
try:
record = get_attributes(key, uid)
ip = record["ip"]
port = int(record["port"])
qport = int(record["portQuery"])
return Record(ip, port, qport)
except Exception:
return None
-207
View File
@@ -1,207 +0,0 @@
import hashlib
import logging
import shlex
from concurrent.futures import wait
from concurrent.futures import ThreadPoolExecutor
from dataclasses import dataclass
from pathlib import Path
import dzgui.api.pefile as PeFile
from dzgui.api.servers import get_rules, fqip_to_record
from dzgui.const.constants import (
APP_NAME,
APPID_DAYZ,
LIBRARYFOLDERS_PATH,
WORKSHOP_PATH,
)
from dzgui.config.query import lookup
from dzgui.const.enum import Preferences
from typing import Any
logger = logging.getLogger(APP_NAME)
@dataclass
class ModMeta:
protocol: str
published_id: str
name: str
timestamp: str
def get_local_mod_ids(steam_path: Path) -> list[int]:
workshop_path = get_local_mod_path(steam_path)
mods = get_local_mods(workshop_path)
return [int(mod.name) for mod in mods]
def get_local_mod_path(steam_path: Path) -> Path:
p = PeFile.get_app_path(steam_path / Path(LIBRARYFOLDERS_PATH), APPID_DAYZ)
workshop_path = p / WORKSHOP_PATH
return workshop_path
def get_local_mods(workshop_path: Path) -> list[Path]:
mods = [file for file in workshop_path.iterdir() if file.is_dir()]
return mods
def parse_meta(file: Path) -> ModMeta | None:
mod = file / "meta.cpp"
if mod.exists() is False:
return None
with open(file / "meta.cpp", "r") as f:
st = f.read()
lex = shlex.shlex(st)
lex.whitespace += "=;"
v = []
while True:
tok = lex.get_token()
if not tok:
break
if tok == "protocol" or tok == "publishedid":
ntok = lex.get_token()
elif tok == "timestamp":
# NOTE: some malformed .NET tick conversions result in numbers < 0
ntok = lex.get_token()
if ntok == "-":
ntok += str(lex.get_token())
elif tok == "name":
ntok = lex.get_token()
if ntok is not None:
ntok = ntok.split('"')[1]
if ntok is not None:
v.append(ntok)
meta = ModMeta(*v)
return meta
def get_mod_size(path: Path) -> float:
s = 0
for f in path.rglob("*"):
s += f.stat().st_size
size = round(s / (1024**2), 3)
return size
def get_delimited_mods(steam_path: Path) -> list[Any]:
workshop_path = get_local_mod_path(steam_path)
mods = get_local_mods(workshop_path)
clean = []
for mod in mods:
mod_dir = mod.name
symlink = _hash(mod_dir)
# FIXME: malformed .cpp files could break this
# mention that mods may be downloading
meta = parse_meta(mod)
if meta is None:
continue
size = get_mod_size(mod)
# NOTE: final col is cell renderer highlight toggle
clean.append([meta.name, symlink, mod_dir, size, False])
clean.sort(key=lambda row: str(row[0]).casefold())
return clean
def get_missing_mods(local: list, remote: list) -> list:
return [mod for mod in remote if mod not in local]
def _hash(uid: str) -> str:
md5 = hashlib.md5()
md5.update(uid.encode("ascii"))
return "@" + md5.hexdigest()[:8]
def remove_stale_signatures(config: Path, versions: Path) -> None:
if versions.is_file() is False:
logger.warning("Creating new version signatures file")
versions.touch()
return
path = lookup(config, Preferences.DEFAULT)
steam_path = Path(path)
ids = get_local_mod_ids(steam_path)
with open(versions, "r") as f:
lines = f.readlines()
for line in lines:
uid = int(line.split(",")[0])
if uid not in ids:
lines.remove(line)
with open(versions, "w") as f:
for line in lines:
f.write(line)
def find_stale_mods(config: Path) -> list[int]:
def push_record(rec: str) -> list:
record = fqip_to_record(rec)
if record is None:
return []
try:
mods = get_rules(record)
except Exception:
return []
return [mod.workshop_id for mod in mods]
steam = lookup(config, Preferences.DEFAULT)
steam_path = Path(steam)
local = get_local_mod_ids(steam_path)
records = lookup(config, Preferences.IP_LIST)
remote_mods = []
with ThreadPoolExecutor() as executor:
futures = [executor.submit(push_record, record) for record in records]
wait(futures)
for future in futures:
res = future.result()
remote_mods.extend(res)
unique_mods = set(remote_mods)
stale = [mod for mod in local if mod not in unique_mods]
return stale
def get_mod_dir_size(path: Path) -> int:
"""
This is not a guarantee of parity, as user may adjusted contents of local mods,
so upstream epoch time is still used
"""
size = 0
for i in Path(path).iterdir():
if i.is_file():
size += i.stat().st_size
elif i.is_dir():
size += get_mod_dir_size(i)
return size
def version_file_to_dict(file: Path) -> dict[str, str]:
versions = file.read_text().splitlines()
d: dict[str, str] = {}
for version in versions:
line = version.split(",")
mod = line[0]
stamp = line[1]
d[mod] = stamp
return d
def update_signatures(
mods: list[tuple[str, str, int, int]], version_file: Path
) -> None:
d = version_file_to_dict(version_file)
for _title, mod, stamp, size in mods:
d[mod] = str(stamp)
versions: list[str] = []
for k, v in d.items():
row = ",".join([k, v])
versions.append(row)
with open(version_file, "w") as f:
for version in versions:
f.write(f"{version}\n")
-63
View File
@@ -1,63 +0,0 @@
import logging
import requests
from typing import Union, TYPE_CHECKING
from dzgui.const.constants import APPID_DAYZ, APP_NAME, REQUEST_TIMEOUT
from dzgui.const import endpoints
logger = logging.getLogger(APP_NAME)
if TYPE_CHECKING:
from requests import Response
def test_steam_api(key: str) -> bool:
appid = APPID_DAYZ
payload: dict[str, Union[int, str]] = {
"filter": r"\appid" + rf"\{appid}",
"limit": 10,
"key": key,
}
try:
res = requests.get(
endpoints.STEAM_SERVERS, params=payload, timeout=REQUEST_TIMEOUT
)
return is_remote_up(res)
except Exception as e:
logger.critical(e)
# TODO: pass exception text into dialog
return False
# TODO: consolidate is_remote_up and exception logic into one function
def test_ipdb() -> bool:
try:
res = requests.get(endpoints.DB_IP, timeout=REQUEST_TIMEOUT)
return is_remote_up(res)
except Exception as e:
logger.critical(e)
return False
def test_bm_api(key: str) -> bool:
payload: dict[str, str] = {
"filter[game]": "dayz",
}
hdr = {"Authorization": "Bearer " + key}
try:
res = requests.get(
endpoints.BM_SERVERS, params=payload, headers=hdr, timeout=REQUEST_TIMEOUT
)
return is_remote_up(res)
except Exception as e:
logger.critical(e)
return False
def is_remote_up(res: "Response") -> bool:
if res.status_code == 200:
return True
else:
return False
-214
View File
@@ -1,214 +0,0 @@
import json
import logging
import os
import requests
import subprocess
from shlex import shlex
from pathlib import Path
from dzgui.init.prereqs import has_steam_client
from dzgui.const.constants import (
APP_NAME,
DEBIAN_STEAM_PATH,
DEFAULT_STEAM_PATH,
FLATPAK_STEAM_PATH,
UBUNTU_STEAM_PATH,
VDF_PATH,
)
from dzgui.const.endpoints import STEAM_PUBLISHED_FILES
from dzgui.strings import wizard
from dzgui.util.bash import concat_bash_args
logger = logging.getLogger(APP_NAME)
def get_steam_paths() -> list[tuple[Path, str]]:
paths = []
if has_steam_client():
HOME = Path.home()
env = os.environ.get("XDG_DATA_HOME")
if env is not None:
XDG_DATA_HOME = env
else:
XDG_DATA_HOME = DEFAULT_STEAM_PATH
DEFAULT_PATH = HOME.joinpath(XDG_DATA_HOME)
FLATPAK_PATH = HOME.joinpath(FLATPAK_STEAM_PATH)
UBUNTU_PATH = HOME.joinpath(UBUNTU_STEAM_PATH)
DEBIAN_PATH = HOME.joinpath(DEBIAN_STEAM_PATH)
human = {
DEFAULT_PATH: wizard.desc_default_path,
FLATPAK_PATH: wizard.desc_flatpak_path,
UBUNTU_PATH: wizard.desc_ubuntu_path,
DEBIAN_PATH: wizard.desc_debian_path,
}
for path in DEFAULT_PATH, FLATPAK_PATH, UBUNTU_PATH, DEBIAN_PATH:
if path.joinpath(VDF_PATH).is_file():
paths.append((path, human[path]))
return paths
def concat_mods(mods: list[str]) -> str:
from dzgui.util.symlink import _hash
hashes = []
for mod in mods:
md5sum = _hash(mod)
hashes.append(md5sum)
return ";".join(hashes)
def get_local_signatures(version_file: Path) -> dict[str, int]:
hashes: dict[str, int] = {}
lines = version_file.read_text().splitlines()
for line in lines:
data = line.split(",")
_id = data[0]
_hash = int(data[1])
hashes[_id] = _hash
return hashes
def enqueue_mod(mod: str, appid: int) -> None:
args = [
"steam",
f"steam://url/CommunityFilePage/{mod}+workshop_download_item",
str(appid),
mod,
]
subprocess.Popen(["/usr/bin/env", "bash", *args])
def get_needs_update(
version_file: Path, remote_hashes: list[tuple[str, str, int, int]]
) -> list[tuple[str, str, int, int]]:
local_hashes = get_local_signatures(version_file)
needs_update: list[tuple[str, str, int, int]] = []
for title, _id, _hash, size in remote_hashes:
if _id not in local_hashes:
needs_update.append((title, _id, _hash, size))
elif _hash != local_hashes[_id]:
needs_update.append((title, _id, _hash, size))
else:
continue
return needs_update
def get_remote_signatures(mods: list[str]) -> list[tuple[str, str, int, int]]:
"""
Attempts to continue connecting even if signatures are empty
"""
payload: dict[str, str | int] = {}
payload["itemcount"] = len(mods)
for i, mod in enumerate(mods):
payload[f"publishedfileids[{i}]"] = mod
try:
r = requests.post(STEAM_PUBLISHED_FILES, payload)
except Exception as e:
logger.critical(e)
return []
if r.status_code != 200:
return []
hashes: list[tuple[str, str, int, int]] = []
j = r.json()
rows = j["response"]["publishedfiledetails"]
for row in rows:
title = str(row["title"])
_id = str(row["publishedfileid"])
time = int(row["time_updated"])
size = int(row["file_size"])
hashes.append((title, _id, time, size))
return hashes
# TODO: set config to name=user, use official server and no mods,
# ensure that formatted string is identical to fixture with same hash
def connect(client: str, addr: str, appid: int, name: str, mods: list[str]) -> int:
concat = concat_mods(mods)
client_args = concat_bash_args(client)
# TODO: test flatpak arg expansion
params = [
"-applaunch",
str(appid),
f"-connect={addr}",
"-nolauncher",
"-nosplash",
"-skipintro",
f"-name={name}",
f"-mod={concat}",
]
proc = subprocess.run([*client_args, *params])
return proc.returncode
def find_user_id(path: Path) -> str | None:
resolved_path = path / "config" / "loginusers.vdf"
try:
vdf = vdf2json(resolved_path)
j = json.loads(vdf)
for user in j["users"]:
if j["users"][user]["MostRecent"] == "1":
return str(user)
return None
except Exception as e:
logger.warn(e)
return None
def vdf2json(path: Path) -> str:
def _istr(indent: int, string: str) -> str:
return (indent * " ") + string
jbuf = "{\n"
indent = 1
with open(path, "r") as f:
st = f.read()
lex = shlex(st)
while True:
tok = lex.get_token()
if not tok:
return jbuf + "}\n"
if tok == "}":
indent -= 1
jbuf += _istr(indent, "}")
ntok = lex.get_token()
if ntok is not None:
lex.push_token(ntok)
if ntok and ntok != "}":
jbuf += ","
jbuf += "\n"
else:
ntok = lex.get_token()
if ntok == "{":
jbuf += _istr(indent, tok + ": {\n")
indent += 1
else:
if ntok is not None:
jbuf += _istr(indent, tok + ": " + ntok)
ntok = lex.get_token()
if ntok is not None:
lex.push_token(ntok)
if ntok != "}":
jbuf += ","
jbuf += "\n"
def gen_shortcut() -> None:
# TODO:
"""
during setup, prompt user to select matching user id from loginusers
show user account name, select outer steam id
steam/userdata/<steamid_32>/config/shortcuts.vdf
"""
# STEAMID_MAGIC = 76561197960265728
# STEAMID_64 - STEAMID_MAGIC = STEAMID32
# or get right-most 32 bits
# STEAMID_64 & 0xFFFFFFFF
pass
View File
Whitespace-only changes.
-92
View File
@@ -1,92 +0,0 @@
import json
import shlex
from pathlib import Path
from typing import Any
"""
Convert legacy dztuirc to config.json
"""
class UnsupportedKey(Exception):
pass
def str2bool(string: str) -> bool:
s = string.lower()
match s:
case "":
return False
case "0":
return False
case "1" | "2":
return True
case "false":
return False
case "true":
return True
case _:
raise UnsupportedKey(f"The key {s} is not a valid config key.")
def rc2json(file: Path) -> str:
with open(file, "r") as f:
lex = shlex.shlex(f.read())
lex.whitespace += "="
keys: dict[str, Any] = {}
ips: list[str] = []
toggles = ["fullscreen"]
deprecated = [
"staging_dir",
"src_path",
"steam_path",
"debug",
"branch",
"auto_install",
]
while True:
tok = lex.get_token()
ntok = lex.get_token()
value: str | bool
if ntok is not None:
ntok = ntok.strip('""')
value = ntok
if tok in deprecated:
continue
elif tok in toggles:
if ntok is not None:
value = str2bool(ntok)
elif tok == "preferred_client":
tok = "client"
elif tok == "api_key":
tok = "bm_api"
elif tok == "ip_list":
while True:
ntok = lex.get_token()
if ntok is not None:
ntok = ntok.strip('""')
value = ntok
if ntok == ")":
break
# TODO: make test for this
# NOTE: strip malformed records from ancient config file versions
if ntok is not None:
if len(ntok.split(":")) == 3 and ntok.split(":")[2] != "":
ips.append(ntok)
continue
if not tok:
break
keys[tok] = value
keys["ip_list"] = ips
keys["use_miles"] = False
keys["start_tab"] = 0
return json.dumps(keys, indent=2)
-18
View File
@@ -1,18 +0,0 @@
import textwrap
from pathlib import Path
def write_desktop_file(share_path: Path) -> None:
template = f"""\
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec={share_path}/launch.sh
Name=DZGUI
Comment=dzgui
Icon={share_path}/dzgui
Categories=Game"""
file = share_path / "dzgui.desktop"
file.write_text(textwrap.dedent(template))
-99
View File
@@ -1,99 +0,0 @@
import gzip
import logging
import re
import requests
import shutil
from pathlib import Path
from dzgui.const.constants import APP_NAME, REQUEST_TIMEOUT
from dzgui.const.endpoints import DB_IP
logger = logging.getLogger(APP_NAME)
def find_download_url(url: str) -> str | None:
res = requests.get(url, timeout=REQUEST_TIMEOUT)
res.raise_for_status()
reg = r'ref=[\'"]([^\'">]+.csv.gz)'
urls = re.findall(reg, res.text)
if len(urls) < 1:
return None
return str(urls[0])
def get_ipdb(ips_path: Path) -> None:
url = find_download_url(DB_IP)
if url is None:
return
date = find_date(url)
month_file = ips_path.parent / ".month"
if ips_path.exists() and month_file.exists():
old_date = month_file.read_text().rstrip("\n")
if old_date == date:
logger.info(f"IP DB date matches: {date}")
return
# TODO: log additional output
logger.info(f"Fetching IPDB for {date} from {url}")
try:
tmp = serialize(url)
except Exception as e:
logger.critical(e)
return
logger.info(f"Extracting {tmp}")
unzip(tmp, ips_path)
logger.info("Stripping IPv6 records")
try:
strip_ipv6(ips_path)
except Exception as e:
logger.critical(e)
return
with open(month_file, "w") as f:
f.write(date)
logger.info(f"Wrote {date} to {month_file}")
def find_date(url: str) -> str:
date = re.sub(r"(dbip-city-lite-)(.*)(.csv.gz)", r"\2", url)
date = date.split("/")[-1]
return date
def unzip(tmp: Path, ips_path: Path) -> None:
with gzip.open(tmp, "rb") as f:
with open(ips_path, "wb") as outfile:
shutil.copyfileobj(f, outfile)
tmp.unlink()
def serialize(url: str) -> Path:
with requests.get(url, stream=True) as r:
r.raise_for_status()
filename = "ips.csv.gz"
tmp = Path("/tmp") / filename
with open(tmp, "wb") as f:
shutil.copyfileobj(r.raw, f)
return tmp
# TODO: optimize this function
# consider using grep
# cf. grep -vE "^[a-z0-9]{4}:" | grep -v "::" > "$ip_file"
def strip_ipv6(path: Path) -> None:
ips = []
with open(path, "r") as f:
s = f.read()
reg = r"^\d{1,3}\..*"
ips = re.findall(reg, s, re.MULTILINE)
assert ips[0].split(",")[0] == "0.0.0.0"
assert ips[-1].split(",")[0] == "224.0.0.0"
with open(path, "w") as f:
for ip in ips:
f.write(ip + "\n")
-62
View File
@@ -1,62 +0,0 @@
from typing import Any
from pathlib import Path
from dzgui.util._json import read_json
from dzgui.const.enum import Preferences
from dzgui.const.constants import STEAM_CMD, FLATPAK_RUN_CMD, FLATPAK_SANDBOX
class ConfigFileError(Exception):
pass
def lookup(path: Path, enum: Preferences) -> Any:
if path.is_file() is False:
raise ConfigFileError("Not a valid file")
key = enum_to_key(enum)
config = get_config(path)
try:
return config[key]
except KeyError:
return None
def get_config(path: Path) -> Any:
# TODO: is this being called multiple times?
try:
json = read_json(path)
return json
except Exception as e:
raise e
def get_favorites(path: Path) -> list[str]:
try:
conf = get_config(path)
except Exception:
pass
return list(conf["ip_list"])
# def is_in_favs(record: str, path: Path) -> bool:
# favs = get_favorites(path)
# if record in favs:
# return True
# return False
def enum_to_key(enum: Preferences) -> str:
return str(enum.dict["key"])
def get_client_index(client: str) -> int:
if client == STEAM_CMD:
return 0
elif client == FLATPAK_RUN_CMD:
return 1
elif client == FLATPAK_SANDBOX:
return 2
else:
return 0
-12
View File
@@ -1,12 +0,0 @@
# import shutil
from pathlib import Path
def uninstall(path: Path) -> None:
pass
# TODO: use xdg object?
# partial/full (keep config?)
# -u removes state, log
# XDG_SHARE_HOME/dzgui
# XDG_STATE_HOME/dzgui
# XDG_DATA_HOME/dzgui
-29
View File
@@ -1,29 +0,0 @@
from pathlib import Path
from dzgui.const.enum import Preferences
from dzgui.config.query import get_config, enum_to_key
from dzgui.util._json import write_json
# TODO: drop deprecated
# TEST: parametrize writing config values and checking config output in test
def toggle_config(path: Path, key: Preferences) -> None:
real_key = enum_to_key(key)
try:
conf = get_config(path)
cur_val = conf[real_key]
conf[real_key] = not cur_val
write_json(conf, path)
except Exception as e:
raise e
def write_config(path: Path, key: Preferences, value: str) -> None:
real_key = enum_to_key(key)
try:
conf = get_config(path)
conf[real_key] = value
write_json(conf, path)
except Exception as e:
raise e
-19
View File
@@ -1,19 +0,0 @@
from dataclasses import dataclass
from typing import TYPE_CHECKING, Union
if TYPE_CHECKING:
from dzgui.config.xdg import Xdg
from dzgui.util.ip import Coords
# NOTE: mutable dataclass, 'use_miles' key changes on demand
@dataclass(slots=True)
class UserPrefs:
is_steam_deck: bool
is_game_mode: bool
is_debug: bool
coords: Union["Coords", None]
version: str
paths: "Xdg"
latest_release: str | None
use_miles: bool
-94
View File
@@ -1,94 +0,0 @@
import os
from pathlib import Path
from dataclasses import dataclass
from dzgui.const.constants import APP_NAME_LOWER, DEBUG_LOG, SYSTEM_LOG
@dataclass
class Xdg:
config: Path
columns: Path
notes: Path
resolution: Path
history: Path
version: Path
system: Path
debug: Path
ips: Path
def is_writeable(path_str: str) -> bool:
if path_str is None:
return False
path = Path(path_str)
if not path.exists():
try:
path.mkdir(parents=True)
except OSError:
return False
path.unlink()
return True
try:
file = Path(path / "temp")
with open(file, "w") as f:
f.write("")
except Exception:
return False
file.unlink()
return True
def get_xdg_paths() -> dict:
home = Path.home()
xdg_paths = {
"XDG_CONFIG_HOME": home / ".config",
"XDG_STATE_HOME": home / ".local" / "state",
"XDG_DATA_HOME": home / ".local" / "share",
"XDG_CACHE_HOME": home / ".cache",
}
resolved_paths = {}
for path in xdg_paths:
rp = os.environ.get(path)
if rp is not None and is_writeable(rp):
resolved_paths[path] = Path(rp)
else:
resolved_paths[path] = xdg_paths[path] / APP_NAME_LOWER
return resolved_paths
def parse_filepaths(xdg: dict) -> Xdg:
# cache = xdg["XDG_CACHE_HOME"]
# data = xdg["XDG_DATA_HOME"]
config = xdg["XDG_CONFIG_HOME"]
state = xdg["XDG_STATE_HOME"]
config = config / "config.json"
system = state / "logs" / SYSTEM_LOG
debug = state / "logs" / DEBUG_LOG
columns = state / "dzg.columns.json"
notes = state / "dzg.notes.json"
resolution = state / "dzg.res.json"
history = state / "dzg.history"
versions = state / "dzg.versions"
ips = state / "ips.csv"
return Xdg(
config,
columns,
notes,
resolution,
history,
versions,
system,
debug,
ips,
)
-16
View File
@@ -1,16 +0,0 @@
"""
Generic defaults used when initializing a config file from scratch
"""
config_boilerplate = {
"bm_api": "",
"fav_server": "",
"fav_label": "",
"name": "",
"fullscreen": False,
"steam_api": "",
"default_steam_path": "",
"client": "",
"ip_list": [],
"use_miles": False,
"start_tab": 0,
}
-79
View File
@@ -1,79 +0,0 @@
APPID_DAYZ = 221100
APPID_DAYZ_EXP = 1024020
UDP_PORT = 27016
VM_FILE = "/proc/sys/vm/max_map_count"
MIN_COUNT = 1048576
REQUEST_TIMEOUT = 10
APPNAME_DAYZ = "DayZ"
APPNAME_DAYZ_EXP = "DayZ Exp"
APPNAME_DAYZ_EXP_HUMAN = "DayZ Experimental"
DAYZ_BINARY = "DayZ_x64.exe"
LIBRARYFOLDERS_PATH = "steamapps/libraryfolders.vdf"
WORKSHOP_PATH = "steamapps/workshop/content/" + str(APPID_DAYZ)
STEAM_CMD = "steam"
FLATPAK_CMD = "flatpak"
FLATPAK_APPID = "com.valvesoftware.Steam"
FLATPAK_RUN_CMD = "flatpak run " + FLATPAK_APPID
FLATPAK_SANDBOX = "flatpak-spawn --host flatpak run " + FLATPAK_APPID
AUTHOR = "aclist"
STABLE_REPO = "stable"
BETA_REPO = "testing"
APP_NAME = "DZGUI"
APP_NAME_LOWER = "dzgui"
APP_NAME_ABBR = "dzg"
HEX_RED = "#FF0000"
HEX_ORANGE = "#FFAC1C"
CLIPBOARD = "edit-copy-symbolic"
HELP_BUBBLE = "help-about-symbolic"
INPUT_KEYBOARD = "input-keyboard-symbolic"
LIST_ADD = "list-add-symbolic"
REFRESH_ICON = "view-refresh-symbolic"
SEARCH_ICON = "system-search-symbolic"
STEAM_ICON = "steam_tray_mono"
VIEW_CONCEAL = "view-conceal-symbolic"
VIEW_REVEAL = "view-reveal-symbolic"
ERROR = "dialog-error-symbolic"
WARNING = "dialog-warning-symbolic"
WEB_BROWSER = "web-browser-symbolic"
SEPARATOR = "SEPARATOR"
# TODO: drop
NO_PADDING = 0
NO_EXPAND = False
NO_FILL = False
EXPAND = True
FILL = True
SCROLL_INCREMENT = 50
WINDOW_DEFAULT_X = 1400
WINDOW_DEFAULT_Y = 800
LEGACY_CONFIG_PATH = ".config/dztui/dztuirc"
LEGACY_COLS_PATH = ".local/state/dzgui/dzg.cols.json"
LEGACY_IPS_PATH = ".local/share/dzgui/helpers/ips.csv"
DEBUG_LOG = f"{APP_NAME}_DEBUG.LOG"
SYSTEM_LOG = f"{APP_NAME}_SYSTEM.LOG"
CHANGELOG_PATH = "data/CHANGELOG.md"
HERO_PATH = "data/images/hero.png"
CSS_PATH = "data/app.css"
VDF_PATH = "steamapps/libraryfolders.vdf"
DEFAULT_STEAM_PATH = ".local/share/Steam"
FLATPAK_STEAM_PATH = ".var/app/com.valvesoftware.Steam/data/Steam"
UBUNTU_STEAM_PATH = ".steam/steam"
DEBIAN_STEAM_PATH = ".steam/debian-installation"
LOG_FILTERS = ("CRITICAL", "WARNING", "INFO", "DEBUG")
TMP_PATH = "/tmp"
TMP_TARBALL = "/tmp/dzgui.tar.gz"
TMP_EXE = "/tmp/dzgui"
-25
View File
@@ -1,25 +0,0 @@
# internal
STEAM_PUBLISHED_FILES = "https://api.steampowered.com/ISteamRemoteStorage/GetPublishedFileDetails/v1/?format=json"
STEAM_SERVERS = "https://api.steampowered.com/IGameServersService/GetServerList/v1/?"
BM_SERVERS = "https://api.battlemetrics.com/servers?"
GITHUB = "https://github.com/aclist"
GITHUB_RELEASES = "https://api.github.com/repos/aclist/dztui/releases/latest"
CODEBERG_RELEASES = "https://codeberg.org/api/v1/repos/aclist/dzgui/releases/latest"
GITHUB_USER_RELEASES = "https://github.com/aclist/dztui/releases"
DB_IP = "https://db-ip.com/db/download/ip-to-city-lite"
IP_ECHO = "https://ipecho.net/plain"
COORDS_API = "http://ip-api.com/json"
# steam URIs
WORKSHOP = "steam://url/CommunityFilePage/"
OPEN_URL = "steam://openurl/"
# user facing
GITHUB_PAGES = "https://aclist.github.io/dzgui/index"
CODEBERG_PAGES = "https://aclist.codeberg.page"
GITHUB_ISSUES = "https://github.com/aclist/dzgui/issues"
FORUM = "https://old.reddit.com/r/dzgui"
SPONSORS = "https://github.com/sponsors/aclist"
STEAM_API_SETUP = "https://steamcommunity.com/dev/apikey"
BM_API_SETUP = "https://www.battlemetrics.com/developers"
BM_BROWSE = "https://www.battlemetrics.com/servers/dayz"
-301
View File
@@ -1,301 +0,0 @@
from enum import Enum
from typing import Any, Self
from dzgui.util import strings
class Port(Enum):
DEFAULT = 1
CUSTOM = 2
class ServerTab(Enum):
BROWSER = 0
SAVED = 1
RECENT = 2
LAN = 3
class Popup(Enum):
WAIT = 1
NOTIFY = 2
CONFIRM = 3
ENTRY = 4
MODLIST = 6
DETAILS = 7
QUIT = 8
class VAdjustment(Enum):
UP = 1
DOWN = 2
TOP = 3
BOTTOM = 4
class CursorPosition(Enum):
UP = 1
DOWN = 2
TOP = 3
BOTTOM = 4
class FilterMode(Enum):
INITIAL = 1
TOGGLE_OFF = 2
TOGGLE_ON = 3
class EnumWithAttrs(Enum):
def __new__(cls, *args: Any, **kwargs: Any) -> Self:
value = len(cls.__members__) + 1
obj = object.__new__(cls)
obj._value_ = value
return obj
def __init__(self, d: dict):
self.dict = d
class Preferences(EnumWithAttrs):
STEAM = {
"key": "steam_api",
}
BM = {
"key": "bm_api",
}
CLIENT = {
"key": "client",
}
WINDOW = {
"key": "fullscreen",
}
DIST = {
"key": "use_miles",
}
NAME = {
"key": "name",
}
INSTALL = {
"key": "auto_install",
}
DEBUG = {
"key": "debug",
}
DEFAULT = {
"key": "default_steam_path",
}
FAV_LBL = {
"key": "fav_label",
}
FAV_SRV = {
"key": "fav_server",
}
IP_LIST = {
"key": "ip_list",
}
BRANCH = {
"key": "branch",
}
START_TAB = {
"key": "start_tab",
}
class NotebookPage(EnumWithAttrs):
CHANGELOG = {"crumbs": strings.crumbs.changelog, "statusbar": True}
DEVELOPERS = {"crumbs": strings.crumbs.developers, "statusbar": False}
HELP = {"crumbs": strings.crumbs._help, "statusbar": True}
KEYS = {"crumbs": strings.crumbs.keys, "statusbar": True}
LOG = {"crumbs": strings.crumbs.log, "statusbar": True}
MODS = {"crumbs": strings.crumbs.mods, "statusbar": True}
OPTIONS = {"crumbs": strings.crumbs.options, "statusbar": False}
SERVERS = {"crumbs": strings.crumbs.servers, "statusbar": True}
THANKS = {"crumbs": strings.crumbs.thanks, "statusbar": True}
CONNECTION = {"crumbs": "Connect", "statusbar": True}
class RowType(EnumWithAttrs):
# TODO: strings
CHANGELOG = {
"label": "View changelog",
"tooltip": "Opens the DZGUI changelog",
}
SHOW_LOG = {
"label": "Show debug log",
"tooltip": "Read the DZGUI log generated since startup",
}
SEPARATOR = {
"label": "SEPARATOR",
"tooltip": "",
}
DUMP_LOG = {
"label": "Output system info to log file",
"tooltip": "Dump diagnostic data for troubleshooting",
}
DOCS = {
"label": "Documentation/help files (GitHub) ⧉",
"tooltip": "Open the DZGUI documentation in a browser",
}
DOCS_FALLBACK = {
"label": "Documentation/help files (Codeberg mirror) ⧉",
"tooltip": "Open the DZGUI documentation in a browser",
}
BUGS = {
"label": "Report a bug (GitHub) ⧉",
"tooltip": "Open the DZGUI issue tracker in a browser",
}
FORUM = {
"label": "DZGUI Subreddit ⧉",
"tooltip": "Open the DZGUI discussion forum in a browser",
}
SPONSOR = {
"label": "Sponsor (GitHub) ⧉",
"tooltip": "Sponsor development of the DZGUI project",
}
THANKS = {
"label": "Special thanks",
"tooltip": "A list of contributors, testers, and sponsors",
}
# TODO: rename to ContextMenuItem
class ContextMenu(EnumWithAttrs):
ADD_NOTE = {"label": strings.add_note}
ADD_SERVER = {"label": strings.add}
CONNECT = {"label": strings.connect}
COPY_LOG_CLIPBOARD = {"label": strings.copy_log}
COPY_SERVER_IP = {"label": strings.copy_ip}
COPY_SERVER_NAME = {"label": strings.copy_name}
DELETE_MOD = {"label": strings.delete_mod}
OPEN_WORKSHOP = {"label": strings.open_workshop}
REFRESH_PLAYERS = {"label": strings.refresh_players}
REMOVE_HISTORY = {"label": strings.remove_history}
REMOVE_SERVER = {"label": strings.remove}
SET_FAV = {"label": strings.add_fav}
SHOW_DETAILS = {"label": strings.show_details}
SHOW_MODS = {"label": strings.show_mods}
class ContextMenuGroup(Enum):
"""
Groupings of context menu items
"""
SERVER_MOD = (ContextMenu.OPEN_WORKSHOP,)
MOD = (ContextMenu.OPEN_WORKSHOP, ContextMenu.DELETE_MOD)
LOG = (ContextMenu.COPY_LOG_CLIPBOARD,)
SERVER_BROWSER = (
ContextMenu.CONNECT,
ContextMenu.ADD_SERVER,
ContextMenu.SET_FAV,
ContextMenu.COPY_SERVER_NAME,
ContextMenu.COPY_SERVER_IP,
ContextMenu.ADD_NOTE,
ContextMenu.SHOW_MODS,
ContextMenu.SHOW_DETAILS,
ContextMenu.REFRESH_PLAYERS,
)
SCAN_LAN = (
ContextMenu.CONNECT,
ContextMenu.SET_FAV,
ContextMenu.COPY_SERVER_NAME,
ContextMenu.COPY_SERVER_IP,
ContextMenu.ADD_NOTE,
ContextMenu.SHOW_MODS,
ContextMenu.SHOW_DETAILS,
ContextMenu.REFRESH_PLAYERS,
)
SAVED = (
ContextMenu.CONNECT,
ContextMenu.SET_FAV,
ContextMenu.REMOVE_SERVER,
ContextMenu.COPY_SERVER_NAME,
ContextMenu.COPY_SERVER_IP,
ContextMenu.ADD_NOTE,
ContextMenu.SHOW_MODS,
ContextMenu.SHOW_DETAILS,
ContextMenu.REFRESH_PLAYERS,
)
RECENT = (
ContextMenu.CONNECT,
ContextMenu.ADD_SERVER,
ContextMenu.SET_FAV,
ContextMenu.REMOVE_HISTORY,
ContextMenu.COPY_SERVER_NAME,
ContextMenu.COPY_SERVER_IP,
ContextMenu.ADD_NOTE,
ContextMenu.SHOW_MODS,
ContextMenu.SHOW_DETAILS,
ContextMenu.REFRESH_PLAYERS,
)
class ModButton(EnumWithAttrs):
SELECT_ALL = {
"label": strings.mod_panel.select_all,
"tooltip": strings.mod_panel.select_all_tooltip,
}
UNSELECT_ALL = {
"label": strings.mod_panel.unselect_all,
"tooltip": strings.mod_panel.unselect_all_tooltip,
}
HIGHLIGHT_STALE = {
"label": strings.mod_panel.highlight_stale,
"tooltip": strings.mod_panel.highlight_stale_tooltip,
}
UNHIGHLIGHT_STALE = {
"label": strings.mod_panel.unhighlight_stale,
"tooltip": strings.mod_panel.unhighlight_stale_tooltip,
}
DELETE_SELECTED = {
"label": strings.mod_panel.delete_selected,
"tooltip": strings.mod_panel.delete_selected_tooltip,
}
SELECT_STALE = {
"label": strings.mod_panel.select_stale,
"tooltip": strings.mod_panel.select_stale_tooltip,
}
class ButtonType(EnumWithAttrs):
SERVERS = {
"label": strings.buttons.servers_label,
"tooltip": strings.buttons.servers_tooltip,
"opens": NotebookPage.SERVERS,
}
MODS = {
"label": strings.buttons.mods_label,
"tooltip": strings.buttons.mods_tooltip,
"opens": NotebookPage.MODS,
}
OPTIONS = {
"label": strings.buttons.options_label,
"tooltip": strings.buttons.options_tooltip,
"opens": NotebookPage.OPTIONS,
}
HELP = {
"label": strings.buttons.help_label,
"tooltip": strings.buttons.help_tooltip,
"opens": NotebookPage.HELP,
}
EXIT = {
"label": strings.buttons.exit_label,
"tooltip": strings.buttons.exit_tooltip,
"opens": None,
}
HELP_MENU_ROWS = (
RowType.CHANGELOG,
RowType.SHOW_LOG,
RowType.DUMP_LOG,
RowType.SEPARATOR,
RowType.DOCS,
RowType.DOCS_FALLBACK,
RowType.BUGS,
RowType.FORUM,
RowType.SPONSOR,
RowType.SEPARATOR,
RowType.THANKS,
)
-13
View File
@@ -1,13 +0,0 @@
"""
This file is intended to be patched by package maintainers
repackaging DZGUI for use in different distributions.
If DZGUI is going to be installed globally via a package manager
or other means and will reside in an immutable location, or needs to be
explicitly bound to a certain version, set the flag below to False.
This will disable the ability for the application to self-manage and
will suppress the "Updates available" button in the gutter.
"""
ALLOW_UPDATES = True
-152
View File
@@ -1,152 +0,0 @@
from typing import TYPE_CHECKING
import gi
gi.require_version("Gtk", "3.0")
from gi.repository.Gtk import ListStore # noqa E402
from gi.repository import Gdk, GObject # noqa E402
if TYPE_CHECKING:
from dzgui.const.enum import NotebookPage, ServerTab
# TODO: if servers fail to load, may leave dangling widgets waiting for a signal
class Emitter(GObject.GObject):
def __init__(self) -> None:
super().__init__()
# TODO: rename signals to e.g. maps_keybinding_pressed
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def request_keyword_focus(self) -> None:
"""User invoked Ctrl-f keybinding from ServerTreeView"""
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def saved_servers_changed(self) -> None:
"""Record was added/removed from Saved Servers model"""
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def request_maps_focus(self) -> None:
"""User invoked Ctrl-m keybinding from ServerTreeView"""
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def request_ip_entry_focus(self) -> None:
"""User invoked Ctrl-i keybinding from ServerTreeView"""
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def request_custom_port_focus(self) -> None:
"""User invoked Ctrl-n keybinding from ServerTreeView"""
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def request_default_port_focus(self) -> None:
"""user invoked ctrl-d keybinding from servertreeview"""
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def request_button_box_focus(self) -> None:
"""User invoked right movement keybinding from ServerTreeView"""
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(str, str))
def fav_server_changed(self, name: str, addr: str) -> None:
"""Change favorite server via context menu"""
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(int,))
def check_button_pressed(self, keyval: int) -> None:
"""User toggled filter panel check button via keyboard"""
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(object,))
def server_page_changed(self, keyval: int) -> None:
"""Triggered on 'switch-page' signal within tabs of NotebookPage.SERVERS."""
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(bool,))
def server_page_toggled(self, keyval: int) -> None:
"""Triggered on map/unmap signal from NotebookPage.SERVERS. Shows/hides grid panels."""
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def statusbar_loaded(self) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def distcalc_started(self) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(bool,))
def mod_page_toggled(self, state: bool) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(bool,))
def lan_tab_toggled(self, state: bool) -> None:
pass
@GObject.Signal(
flags=GObject.SignalFlags.RUN_LAST,
arg_types=(
object,
object,
),
)
def distcalc_ended(
self, dist: str | None, context: "ServerTab | NotebookPage"
) -> None:
pass
@GObject.Signal(
flags=GObject.SignalFlags.RUN_LAST,
arg_types=(
str,
bool,
),
)
def check_toggled(self, label: str, state: bool) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(object,))
def servers_loaded(self, tag: "ServerTab") -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def servers_loaded_init(self) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(str,))
def map_selection_changed(self, map: str) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(object,))
def load_maps(self, store: ListStore) -> None:
pass
@GObject.Signal(
flags=GObject.SignalFlags.RUN_LAST,
arg_types=(
str,
int,
),
)
def mods_updated(self, msg: str, mods: int) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def mods_highlighted(self) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def api_change_failed(self) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def already_saved_server(self) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(str,))
def keyword_set(self, keyword: str) -> None:
pass
-502
View File
@@ -1,502 +0,0 @@
import logging
import threading
from typing import Any, TYPE_CHECKING, Union
import dzgui.util._json as JSON # noqa
from dzgui.const.enum import (
FilterMode,
Preferences,
NotebookPage,
ButtonType,
ContextMenu,
)
from dzgui.config.userprefs import UserPrefs
from dzgui.const.constants import APP_NAME
from dzgui.controllers.emitter import Emitter
from dzgui.managers.config import ConfigManager
from dzgui.managers.connection import ConnectionManager
from dzgui.managers.contextmenu import ContextMenuManager
from dzgui.managers.mods import ModManager
from dzgui.managers.notes import NoteManager
from dzgui.model.servers import ServerModelManager
from dzgui.util.diag import write_diagnostic
from dzgui.util.format import format_player_count
from dzgui.util.open_links import open_user_workshop, open_workshop_page
from dzgui.views.dialogs.filepicker import FilePicker
from dzgui.views.dialogs.generic import ExceptionDialog
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gdk, GLib, GObject # noqa E402
logger = logging.getLogger(APP_NAME)
if TYPE_CHECKING:
from dzgui.api.servers import Record
from dzgui.const.enum import ServerTab
from dzgui.managers.connection import Prerequisites
from dzgui.managers.filter import FilterManager
from dzgui.util.dist import Haversine
from dzgui.views.base import Notebook, Grid, OuterWindow
from dzgui.views.components.buttonbox import ContextualButton
from dzgui.views.components.filter_panel import FilterPanel
from dzgui.views.components.right_panel import RightPanel
from dzgui.views.components.statusbar import Statusbar
from dzgui.views.pages.options import Options
from dzgui.views.pages.preconnect import PreConnectionAssistant
from dzgui.views.pages.servers import ServerNotebook
from dzgui.views.trees.tree_log import LogTreeView
from dzgui.views.trees.tree_menu import MenuTreeView
from dzgui.views.trees.tree_mods import ModTreeView
from dzgui.views.trees.tree_servers import ServerTreeView
class AppNavigation:
window: "OuterWindow"
grid: "Grid"
right_panel: "RightPanel"
statusbar: "Statusbar"
notebook: "Notebook"
modtreeview: "ModTreeView"
menu: "MenuTreeView"
servers: "ServerNotebook"
saved: "ServerTreeView"
recent: "ServerTreeView"
lan: "ServerTreeView"
logtreeview: "LogTreeView"
filters: "FilterPanel"
preconnect: "PreConnectionAssistant"
options: "Options"
class Controller(GObject.GObject):
def __init__(self) -> None:
self.dist_cache: dict[str, "Haversine"] = {}
self.mediator = AppNavigation()
self.prefs: UserPrefs
self.emitter = Emitter()
self.emitter.connect("map_selection_changed", self._on_map_selection_changed)
self.emitter.connect("check_toggled", self._on_check_toggled)
self.emitter.connect("servers_loaded_init", self._on_servers_loaded_init)
# NOTE: suppress requests until entire UI is loaded
self.loaded = False
self.pending_jobs = 1
self.exit_event = threading.Event()
self.cancel_event = threading.Event()
self.connection_man: ConnectionManager
def get_emitter(self) -> Emitter:
return self.emitter
def register_widget(self, attr: str, widget: Gtk.Widget) -> None:
try:
setattr(self.mediator, attr, widget)
except AttributeError:
logger.critical(f"{attr} is not a valid AppNavigation attribute.")
def get_prefs(self) -> UserPrefs:
return self.prefs
def set_prefs(self, prefs: UserPrefs) -> None:
self.config_man = ConfigManager(prefs, self)
self.notes_man = NoteManager(self, prefs.paths.notes)
self.prefs = prefs
def query_config(self, key: Preferences) -> Any:
return self.config_man.lookup(key)
def is_auto_install(self) -> bool:
return bool(self.query_config(Preferences.INSTALL))
def suppress_signal(
self, owner: Any, child: Any, func_name: str, state: bool
) -> None:
func = getattr(owner, func_name)
if state:
child.handler_block_by_func(func)
else:
child.handler_unblock_by_func(func)
def get_active_context(self) -> "ServerTab":
return self.get_active_treeview().get_enum()
def get_active_treeview(self) -> "ServerTreeView":
return self.mediator.notebook.servers.get_active_treeview()
def grab_active_treeview(self) -> None:
self.get_active_treeview().grab_focus()
def save_res_and_quit(self, *args: Any) -> None:
treeview = self.get_active_treeview()
window = self.get_window()
self.config_man.save_res_and_quit(treeview, window)
def set_statusbar(self, enum: "NotebookPage | ServerTab", text: str) -> None:
self.mediator.statusbar.set_by_context(enum, text)
def remove_statusbar(self, context: "NotebookPage | ServerTab") -> None:
self.mediator.statusbar.pop(context)
def set_statusbar_dist(
self, haversine: Union["Haversine", None], enum: "ServerTab"
) -> None:
"""
NOTE: prevents race condition when server tab changed,
but allows caching the distance in the background
"""
context = self.get_active_context()
page = self.mediator.notebook.get_page_by_enum()
if page != NotebookPage.SERVERS:
self.emitter.emit("distcalc_ended", None, context)
return
if enum != context:
self.emitter.emit("distcalc_ended", None, context)
return
if haversine is None:
self.emitter.emit("distcalc_ended", None, context)
return
dist = haversine.get_rounded(self.prefs.use_miles)
self.emitter.emit("distcalc_ended", dist, context)
def toggle_config(self, key: Preferences) -> None:
# NOTE: Preferences.DIST is dynamic
if key == Preferences.DIST:
self.prefs.use_miles = not self.prefs.use_miles
self.config_man.toggle_config(key)
def update_config(self, key: Preferences, value: str) -> None:
self.config_man.update_config(key, value)
def open_keybindings(self) -> None:
notebook = self.mediator.grid.notebook
notebook.toggle_keybindings()
def focus_notebook(self) -> None:
notebook = self.mediator.grid.notebook
notebook.focus_current()
def show_developers_page(self) -> None:
self.open_page(NotebookPage.DEVELOPERS)
def open_page(self, page: NotebookPage) -> None:
self.mediator.grid.notebook.set_page_by_enum(page)
def open_page_by_button(self, button: "ContextualButton") -> None:
# TODO: consolidate methods with set_page_by_enum
match button.context:
case ButtonType.EXIT:
self.save_res_and_quit()
return
case ButtonType.OPTIONS:
try:
# TODO: where to put config file check
self.mediator.grid.notebook.settings.populate_settings()
except Exception:
return
case ButtonType.MODS:
self.load_mods()
self.open_page(button.opens)
def get_help_row(self) -> str:
return self.mediator.menu.get_row_enum()
def open_user_workshop(self, uid: str) -> None:
# NOTE: uid may contain leading zeroes, not a real integer
client = self.query_config(Preferences.CLIENT)
open_user_workshop(uid, client)
def load_mods(self) -> None:
self.mod_man = ModManager(self)
def uncolorize_mods(self) -> None:
self.mod_man.uncolorize_mods()
def highlight_stale(self) -> None:
self.mod_man.highlight_stale()
def toggle_mod_selection(self, state: bool) -> None:
self.mod_man.toggle_mod_selection(state)
def delete_mods(self) -> None:
self.mod_man.delete_mods()
def get_mod_store(self) -> Gtk.TreeModel | None:
return self.mediator.modtreeview.get_model()
def set_fav(self, name: str, record: str, simple_ip: str) -> None:
try:
self.config_man.set_fav(name, record)
self.emitter.emit("fav_server_changed", name, simple_ip)
except Exception as e:
logger.critical(e)
return
def menu_action(self, action: ContextMenu, tree: "ServerTreeView") -> None:
context_man = ContextMenuManager(tree, self)
context_man.process(action)
def populate_log(self) -> None:
log = self.prefs.paths.debug
try:
self.mediator.logtreeview.populate_log(log)
self.open_page(NotebookPage.LOG)
except Exception as e:
dialog = ExceptionDialog(self, str(e))
dialog.run()
def select_colorized(self) -> None:
self.mod_man.select_colorized()
def get_filter_man(self) -> "FilterManager":
"""Each ServerTreeView has an atomic FilterManager"""
return self.get_active_treeview().get_filter_man()
def dump_diagnostics(self) -> None:
picker = FilePicker(self.mediator.window)
file = picker.pick_file()
if file is not None:
try:
write_diagnostic(self.prefs.paths.config, file)
except Exception as e:
dialog = ExceptionDialog(self, str(e))
dialog.run()
def update_api_key(self, key: Preferences, text: str) -> None:
self.config_man.update_api_key(key, text)
def set_resolution(self, window: "OuterWindow") -> None:
self.config_man.set_resolution(window)
def propagate_column_width(self, col: Gtk.TreeViewColumn) -> None:
GLib.idle_add(self.mediator.servers.update_tab_widths, col)
def refresh_tree(self) -> None:
treeview = self.get_active_treeview()
treeview.set_loaded(False)
ServerModelManager(self, treeview).refresh()
def get_player_count(self) -> str:
treeview = self.get_active_treeview()
model, control = treeview.get_model_and_control_model()
count = format_player_count(model, control)
return count
def get_statusbar(self) -> "Statusbar":
return self.mediator.statusbar
def populate_model(self, tv: "ServerTreeView") -> None:
# NOTE: skip on previously loaded tabs
if tv.is_loaded():
self.emitter.emit("servers_loaded", tv.get_enum())
return
self.mediator.statusbar.set_by_context(tv.get_enum(), "")
ServerModelManager(self, tv).load()
def get_dist_cache(self) -> dict[str, "Haversine"]:
return self.dist_cache
def set_dist_cache(self, addr: str, haversine: "Haversine") -> None:
self.dist_cache[addr] = haversine
def get_map_store(self) -> Gtk.ListStore:
filter_man = self.get_filter_man()
return filter_man.get_map_store()
def get_enabled_filters(self) -> dict:
filter_man = self.get_filter_man()
return filter_man.get_filters()
# TODO: rename
def _on_servers_loaded_init(self, emitter: "Emitter") -> None:
"""Triggered after servers load but prior to maps loading"""
# FIXME: wipe maps store when changing tabs if model is none
# e.g. select recent, toggle map, then select lan -> not wiped
tv = self.get_active_treeview()
if tv.loaded is False:
return
store = self.get_map_store()
self.emitter.emit("load_maps", store)
def has_server_model(self) -> bool:
treeview = self.get_active_treeview()
proxy_man = treeview.get_proxy_man()
control = proxy_man.get_control()
if control is None:
return False
if len(control) < 1:
return False
return True
def _on_check_toggled(self, emitter: Emitter, label: str, state: bool) -> None:
filter_man = self.get_filter_man()
filter_man.set_filter(label, state)
mode = FilterMode.TOGGLE_ON if state else FilterMode.TOGGLE_OFF
ServerModelManager(self, self.get_active_treeview()).refilter(mode)
def _on_map_selection_changed(self, emitter: Emitter, selection: str) -> None:
smm = ServerModelManager(self, self.get_active_treeview())
smm.refilter(FilterMode.TOGGLE_ON)
def get_notebook(self) -> "Notebook":
return self.mediator.notebook
def get_prior_page(self) -> NotebookPage:
return self.mediator.notebook.get_prior_page()
def get_servers(self) -> "ServerNotebook":
return self.mediator.servers
def get_server_notebook(self) -> Gtk.Notebook:
return self.mediator.servers.notebook
def get_window(self) -> "OuterWindow":
return self.mediator.window
def get_menu(self) -> "MenuTreeView":
return self.mediator.menu
def has_favorites(self) -> bool:
favs = self.config_man.get_favorites()
if len(favs) < 1:
return False
return True
def get_config_man(self) -> ConfigManager:
return self.config_man
def add_by_str(self, addr: str) -> None:
saved_tree = self.get_servers().get_saved()
ServerModelManager(self, saved_tree).add_by_str(addr)
def add_by_record(self, record: "Record") -> None:
saved_tree = self.get_servers().get_saved()
ServerModelManager(self, saved_tree).add_by_record(record)
def remove_by_record(self, record: "Record") -> None:
saved_tree = self.get_servers().get_saved()
ServerModelManager(self, saved_tree).remove_by_record(record)
def add_to_history(self, record: dict[str, Any]) -> None:
tv = self.get_servers().get_recent()
ServerModelManager(self, tv).add_to_history(record)
def remove_from_history(self, record: "Record") -> None:
# NOTE: remove action is only possible from history tree context menu,
# i.e., the active tree
tv = self.get_active_treeview()
ServerModelManager(self, tv).remove_from_history(record)
def connect_by_str(self, addr: str) -> None:
if addr.isdigit():
config_man = self.get_config_man()
key = config_man.lookup(Preferences.BM)
self.connection_man = ConnectionManager(self)
self.connection_man.connect_by_id(int(addr), key)
else:
self.connection_man = ConnectionManager(self)
self.connection_man.connect_by_ip(addr)
def connect_by_record(self, record: "Record") -> None:
self.connection_man = ConnectionManager(self)
self.connection_man.connect_by_record(record)
def get_details(self, record: "Record") -> None:
ConnectionManager(self).query_details(record)
def get_modlist(self, record: "Record") -> None:
ConnectionManager(self).query_modlist_and_present(record)
def get_server_name(self) -> str:
tv = self.get_active_treeview()
return tv.get_name()
def open_workshop_page(self, mod: str) -> None:
cmd = self.query_config(Preferences.CLIENT)
open_workshop_page(mod, cmd)
def has_note(self) -> bool:
note = self.get_note()
if len(note) > 0:
return True
return False
def get_note_by_record(self, record: str) -> str:
return self.notes_man.get_note(record)
def get_note(self) -> str:
tv = self.get_active_treeview()
record = tv.get_record_string()
return self.notes_man.get_note(record)
def add_note(self, note: str) -> None:
tv = self.get_active_treeview()
record = tv.get_record_string()
self.notes_man.add_note(record, note)
def delete_note(self) -> None:
tv = self.get_active_treeview()
record = tv.get_record_string()
self.notes_man.delete_note(record)
def refresh_players(self, record: "Record") -> None:
treeview = self.get_active_treeview()
model, treeiter = treeview.get_selection().get_selected()
ServerModelManager(self, treeview).update_playercount(treeiter, record)
def get_active_keyword(self) -> str:
return self.get_filter_man().get_active_keyword()
def set_active_keyword(self, keyword: str) -> None:
self.get_filter_man().set_active_keyword(keyword)
def get_modtreeview(self) -> "ModTreeView":
return self.mediator.modtreeview
def get_exit_event(self) -> threading.Event:
return self.exit_event
def set_exit_event(self) -> None:
self.exit_event.set()
def set_cancel_event(self) -> None:
self.cancel_event.set()
def get_cancel_event(self) -> threading.Event:
return self.cancel_event
def clear_cancel_event(self) -> None:
self.cancel_event.clear()
def open_connection_assistant(self, prereqs: "Prerequisites") -> None:
self.open_page(NotebookPage.CONNECTION)
self.mediator.preconnect.populate(prereqs)
def set_start_tab(self) -> None:
ind = self.config_man.get_start_tab()
self.get_servers().notebook.set_current_page(ind)
def update_and_connect(self, raise_window: bool) -> None:
self.connection_man.update_and_connect(raise_window)
def update_status(self) -> None:
self.mediator.preconnect.mark_finished()
def get_steam_client_name(self) -> str:
return self.mediator.options.get_client_name()
def present_window(self) -> None:
self.mediator.window.present_with_time(Gdk.CURRENT_TIME)
-74
View File
@@ -1,74 +0,0 @@
## Added
- Setup wizard
- Changelog text wrapping and formatting
- Changelog ships with source
- Documentation ships with source
- Decouple UI components into modules
- Choose from kilometer or miles distance display
- More granular haversine calculation
- Parse XDG data dirs with fallbacks
- Dedicated mods page
- Dedicated thanks page
- Rearrange menus/breadcrumbs
- Open filepicker when generating system log
- Developers page (and -d flag)
- Redact API key in log table
- Integrate add/connect widgets into main menu
- Favorite/connect/LAN panels integrated with server views
- Abort on first LAN server found
- Colorized IP/ID validation fields
- Copy favorite server IP to clipboard
- Set favorite server from tables
- Detailed/copyable trace in critical error dialogs
- Visual icons
- Integrated server notebook
- Propagate width changes to all tables
- Remember tree position in menus
- Show hidden server count after filtering
- Atomic map filters per server context
- Use concurrency when checking stale mods (performance uplift)
- Copy version by clicking label
- Add server name to server mod dialogs
- Lazy load ping cell data func
- Refresh servers button
- Early load alerts button
- Preconnect dialog
- Preconnect warnings/failsafes like filesize
## Changed
- Conform to PEP 440 versioning for beta versions
- Reduce padding on keys button
- Boldface breadcrumbs
- Bold labels inside frames
- Sidebar buttons do not steal focus
- Copy IP copies IP:queryport only instead of IP:gameport:queryport, mimics syntax needed by add by ip method
- Load new model into view without flushing
- Cull servers with abnormal queue values (integer overflow: 2147483647)
- Packaging structure
- Suppress log messages from imported modules
- Embed Workshop link in Options menu
- Disable overlay scrollbars on server tables
## Dropped
- Debug mode
- Branch switching
- Manual mod install mode (describe rationale)
- Force update mods
## Fixed
- Longstanding issue with left clicks not registering as tree selection changes after spamming keyboard input
- Center server title text on server dialogs
- Rare segfaults when changing maps (threading)
- Moved dialogs out of threads
## Unreleased
- Load offline mods
- Choose to jump into splash screen instead of server
- Local documentation
- Raw debug command in context menu
## Developer-facing
- Add pyproject.toml file
- Show deprecation warnings
- Options -> Dev page
-40
View File
@@ -1,40 +0,0 @@
.invalid-entry {
border-color: red;
}
.frame {
border: 0px;
}
.toast-label {
background-color: black;
border: 1px solid white;
}
.frame > border {
border-radius: 5px;
padding: 5px;
}
.page-heading {
font-size: 1.5rem;
font-weight: 800;
margin-bottom: 0.5rem;
}
.settings-subheading {
font-size: 1.2rem;
font-weight: 700;
}
.left-label {
font-size: 1.3rem;
}
.details-heading {
font-size: 1.2rem
}
.preconnect-heading {
font-size: 1.2rem;
font-weight: 800;
}
.masked-tree {
background-color: transparent;
}
.error-frame border {
border: 2px solid red;
}
-24
View File
@@ -1,24 +0,0 @@
import logging
from typing import TYPE_CHECKING
from dzgui.const.constants import APP_NAME
from dzgui.util.ip import get_local_ip, get_coords, Coords
if TYPE_CHECKING:
from pathlib import Path
logger = logging.getLogger(APP_NAME)
def get_local_coords(path: "Path") -> Coords | None:
try:
my_ip = get_local_ip()
except Exception as e:
logger.warn(e)
return None
try:
return get_coords(path, my_ip)
except Exception as e:
logger.warn(e)
return None
-23
View File
@@ -1,23 +0,0 @@
import logging
import sys
from pathlib import Path
from dzgui.config.query import lookup
from dzgui.const.constants import APPID_DAYZ, APP_NAME, LIBRARYFOLDERS_PATH
from dzgui.const.enum import Preferences
from dzgui.views.dialogs.early_alert import EarlyAlertDialog
import dzgui.api.pefile as PeFile
logger = logging.getLogger(APP_NAME)
def is_dayz_installed(config: Path) -> None:
try:
path = lookup(config, Preferences.DEFAULT)
PeFile.get_app_path(Path(path) / LIBRARYFOLDERS_PATH, APPID_DAYZ)
except Exception as e:
logger.critical(e)
EarlyAlertDialog(str(e))
sys.exit(1)
-25
View File
@@ -1,25 +0,0 @@
import fcntl
import os
import sys
from pathlib import Path
from typing import TextIO
from dzgui.views.dialogs.early_alert import EarlyAlertDialog
from dzgui.util.strings import cannot_acquire_lock
def lock_release(lock: TextIO) -> None:
fcntl.flock(lock, fcntl.LOCK_UN)
os.close(lock.fileno())
def lock_acquire() -> TextIO:
lockfile = Path("/tmp/dzgui.flock")
lock = open(lockfile, "w")
try:
fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
except OSError:
EarlyAlertDialog(cannot_acquire_lock)
sys.exit(1)
return lock
-60
View File
@@ -1,60 +0,0 @@
import shutil
from pathlib import Path
from dzgui.const.constants import LEGACY_CONFIG_PATH, LEGACY_COLS_PATH, LEGACY_IPS_PATH
from dzgui.config.convert import rc2json
from dzgui.util._json import read_json, write_json
def migrate_legacy_conf(config: Path) -> None:
old_conf = Path.home() / LEGACY_CONFIG_PATH
j = rc2json(old_conf)
config.parent.mkdir(parents=True, exist_ok=True)
config.write_text(j)
def has_new_config(config: Path) -> bool:
return config.exists()
def migrate_cols_file(res: Path) -> None:
# NOTE: dzg.columns.json is API 7 spec
old_res = Path.home() / LEGACY_COLS_PATH
if old_res.is_file():
j = read_json(old_res)
cols = j["cols"]
if "View" in cols:
return
cols["View"] = cols.pop("Perspective")
cols["Max"] = cols.pop("Maximum")
write_json(j, res)
def copy_state_files(state_path: Path) -> None:
home = Path.home()
legacy = home / ".local/state/dzgui"
to_copy = [
"dzg.res.json",
"dzg.notes.json",
"dzg.history",
"dzg.versions",
"ips.csv",
".month",
]
if state_path == legacy:
# TODO: log this
return
for file in legacy.iterdir():
if file.name in to_copy:
shutil.copy(file, state_path / file.name)
def copy_ipdb(ips_path: Path) -> None:
home = Path.home()
legacy = home / LEGACY_IPS_PATH
if ips_path == legacy:
return
if legacy.is_file() is False:
return
# TODO: ensure that month file is copied
shutil.copy(legacy, ips_path)
-23
View File
@@ -1,23 +0,0 @@
import os
import sys
from importlib import metadata
from pathlib import Path
from dzgui.const.constants import APP_NAME_LOWER
def is_prefix_writeable() -> bool:
prefix = sys.prefix
path = Path(prefix)
file = path / ".is_writeable"
try:
with open(file, "w") as f:
f.write("")
os.remove(file)
except OSError:
return False
return True
def get_version() -> str:
return metadata.version(APP_NAME_LOWER)
-25
View File
@@ -1,25 +0,0 @@
import logging
import shutil
import subprocess
from dzgui.const.constants import APP_NAME, FLATPAK_APPID, FLATPAK_CMD, STEAM_CMD
logger = logging.getLogger(APP_NAME)
def has_steam_client() -> bool:
if shutil.which(STEAM_CMD):
return True
if not shutil.which(FLATPAK_CMD):
return False
try:
res = subprocess.run(
[FLATPAK_CMD, "list"], capture_output=True, text=True, check=True
)
if FLATPAK_APPID in res.stdout:
return True
else:
return False
except subprocess.CalledProcessError as e:
logger.critical(e)
return False
-85
View File
@@ -1,85 +0,0 @@
import psutil
import subprocess
import shutil
from warnings import deprecated
from dzgui.const.constants import (
DAYZ_BINARY,
STEAM_CMD,
FLATPAK_APPID,
FLATPAK_CMD,
FLATPAK_RUN_CMD,
FLATPAK_SANDBOX,
)
# TODO: move to util.proc
def is_dayz_running() -> bool:
"""Subprocesses spawned from Steam will not show up in regular process tree"""
procs = []
substring = DAYZ_BINARY
for proc in psutil.process_iter():
try:
procs.append(proc.cmdline())
except Exception:
continue
return any(substring in item for sublist in procs for item in sublist)
def is_steam_running(cmd: str) -> bool:
if cmd == STEAM_CMD:
if has_cmd(STEAM_CMD) is False:
return False
return is_running(STEAM_CMD)
elif cmd == FLATPAK_RUN_CMD or FLATPAK_SANDBOX:
return is_flatpak_steam_running()
else:
raise TypeError("Not a valid Steam client selection")
# CHORE: test alternate clients
# TODO: has_flatpak_steam
def is_flatpak_steam_running() -> bool:
if has_cmd(FLATPAK_CMD) is False:
return False
proc = subprocess.check_output([FLATPAK_CMD, "ps"], text=True)
lines = proc.splitlines()
if FLATPAK_APPID in lines:
return True
return False
def is_running(proc: str) -> bool:
for process in psutil.process_iter(["pid", "name"]):
if process.info["name"] == proc:
return True
return False
def has_cmd(cmd: str) -> bool:
if shutil.which(cmd) is not None:
return True
return False
@deprecated("dropped in favor of Gtk native methods")
def foreground(cmd: str, pid: int) -> None:
if cmd == "wmctrl":
proc = subprocess.run(["wmctrl", "-ilp"], capture_output=True, text=True)
lines = proc.stdout.splitlines()
for line in lines:
els = line.split(" ")
if str(pid) in els:
wid = els[0]
break
subprocess.run(["wmctrl", "-ia", wid])
elif cmd == "xdotool":
args = [cmd, "search", "--pid", str(pid)]
proc = subprocess.run([*args], capture_output=True, text=True)
lines = proc.stdout.splitlines()
## NOTE: some forked subprocesses may fail, so skip over them
for line in lines:
subprocess.run(
["xdotool", "windowactivate", line], stderr=subprocess.DEVNULL
)
-39
View File
@@ -1,39 +0,0 @@
import logging
import requests
from packaging.version import Version
from typing import Any
from dzgui.const.constants import APP_NAME, REQUEST_TIMEOUT
from dzgui.const.endpoints import GITHUB_RELEASES, CODEBERG_RELEASES
logger = logging.getLogger(APP_NAME)
def get_latest_release() -> tuple[Any, Any] | tuple[None, None]:
tag = None
url = None
# TODO: check order; github often has gateway errors
for url in [GITHUB_RELEASES, CODEBERG_RELEASES]:
try:
res = requests.get(url, timeout=REQUEST_TIMEOUT)
if res.status_code == 200:
tag = res.json()["tag_name"]
url = res.json()["assets"][0]["browser_download_url"]
break
except Exception as e:
logger.critical(e)
continue
return tag, url
def check_updates(version: str) -> str | None:
try:
latest, url = get_latest_release()
if latest is None:
return None
if Version(version) >= Version(latest):
return None
return url
except Exception:
return None
View File
Whitespace-only changes.
Submodule dzgui/lib/a2s deleted from b40eb24cdb.
-151
View File
@@ -1,151 +0,0 @@
import argparse
import logging
import os
import sys
import warnings
from typing import TYPE_CHECKING
from dzgui.api.mods import remove_stale_signatures
from dzgui.const.constants import APP_NAME
from dzgui.const.enum import Preferences
from dzgui.config.ipdb import get_ipdb
from dzgui.config.query import lookup
from dzgui.config.userprefs import UserPrefs
from dzgui.config.xdg import get_xdg_paths, parse_filepaths
from dzgui.init.coords import get_local_coords
from dzgui.init.dayz import is_dayz_installed
from dzgui.init.flock import lock_acquire
from dzgui.init.migrate import (
has_new_config,
copy_state_files,
migrate_cols_file,
)
from dzgui.init.prefix import get_version
from dzgui.init.prereqs import has_steam_client
from dzgui.strings import boot
from dzgui.init.update import check_updates
# from dzgui.util.map_count import get_map_count
from dzgui.util.deck import is_steam_deck, is_game_mode
from dzgui.util.localize import set_locale
from dzgui.util.symlink import rebuild_symlinks
from dzgui.util.strings import init, flags
from dzgui.views.base import App
from dzgui.views.dialogs.wizard import SetupWizard
from dzgui.views.dialogs.early_alert import EarlyAlertDialog
if TYPE_CHECKING:
from pathlib import Path
logger = logging.getLogger(APP_NAME)
parser = argparse.ArgumentParser(description=flags.description)
parser.add_argument("-v", "--version", action="store_true", help=flags.version)
parser.add_argument("-u", "--uninstall", action="store_true", help=flags.uninstall)
parser.add_argument("-d", "--debug", action="store_true", help=flags.debug)
args = parser.parse_args()
# TODO: profile load time
def make_parents(path: "Path") -> None:
path.parent.mkdir(parents=True, exist_ok=True)
def uninstall() -> None:
# TODO: uninstall data files (-u)
# -u removes state, log, freedesktop
# XDG_SHARE_HOME/dzgui
# XDG_STATE_HOME/dzgui
# XDG_DATA_HOME/dzgui
pass
def setup_logger(log_path: "Path") -> None:
_format = (
"%(asctime)s␞%(levelname)s␞%(filename)s::%(funcName)s::%(lineno)s␞%(message)s"
)
fh = logging.FileHandler(log_path)
formatter = logging.Formatter(_format)
fh.setFormatter(formatter)
fh.setLevel(logging.DEBUG)
logger.setLevel(logging.DEBUG)
logger.addHandler(fh)
def main() -> None:
lock = lock_acquire() # noqa
if args.version is True:
print(get_version())
sys.exit(0)
if args.uninstall is True:
uninstall()
sys.exit(0)
if args.debug is True:
warnings.filterwarnings("default", category=DeprecationWarning)
version = get_version()
set_locale()
print(f"{APP_NAME} {version}")
# NOTE: consider aborting this check if steam deck
xdg_paths = get_xdg_paths()
XDG = parse_filepaths(xdg_paths)
if XDG.resolution.parent.is_dir() is False:
make_parents(XDG.resolution)
if XDG.debug.is_file() is False:
make_parents(XDG.debug)
_is_steam_deck = is_steam_deck()
_is_game_mode = is_game_mode() if _is_steam_deck else False
if _is_game_mode:
# NOTE: this may no longer be necessary on newer versions of SteamOS
del os.environ["GTK_IM_MODULE"]
if has_new_config(XDG.config) is False:
migrate_cols_file(XDG.columns)
copy_state_files(xdg_paths["XDG_STATE_HOME"])
# TODO: add logging inside wizard
SetupWizard(_is_steam_deck, XDG.config)
return
setup_logger(XDG.debug)
with open(XDG.debug, "w") as f:
f.truncate(0)
latest_release = check_updates(version)
if _is_steam_deck is False:
# TODO: sudo escalation dialog
# count = get_map_count()
# TODO: move into module
if has_steam_client() is False:
EarlyAlertDialog(init.requires_steam)
# NOTE: clear versions file of unlinked mods
rebuild_symlinks(XDG.config)
remove_stale_signatures(XDG.config, XDG.version)
is_dayz_installed(XDG.config)
# TODO: handle IP DB failure and use coords fallback
get_ipdb(XDG.ips)
local_coords = get_local_coords(XDG.ips)
use_miles = lookup(XDG.config, Preferences.DIST)
prefs = UserPrefs(
is_steam_deck=_is_steam_deck,
is_game_mode=_is_game_mode,
is_debug=args.debug,
coords=local_coords,
version=version,
paths=XDG,
latest_release=latest_release,
use_miles=use_miles,
)
print(boot.all_ok)
App(prefs)
-219
View File
@@ -1,219 +0,0 @@
import logging
import traceback
from typing import Any, TYPE_CHECKING
from dzgui.const.constants import (
APP_NAME,
FLATPAK_RUN_CMD,
FLATPAK_SANDBOX,
STEAM_CMD,
WINDOW_DEFAULT_X,
WINDOW_DEFAULT_Y,
)
from dzgui.api.probe import test_steam_api, test_bm_api
from dzgui.const.enum import Preferences
from dzgui.managers.threading import call_on_thread, StoredFunc, ThreadingManager
from dzgui.views.dialogs.generic import ExceptionDialog
from dzgui.util._json import read_json, write_json
import gi
gi.require_version("Gtk", "3.0")
from gi.repository.Gtk import main_quit # noqa E402
# import dzgui.api.servers as Servers
if TYPE_CHECKING:
from dzgui.config.userprefs import UserPrefs
from dzgui.controllers.mc import Controller
from dzgui.views.base import OuterWindow
from dzgui.views.trees.tree_servers import ServerTreeView
logger = logging.getLogger(APP_NAME)
class ConfigManager:
def __init__(self, prefs: "UserPrefs", controller: "Controller") -> None:
self.prefs = prefs
self.config = prefs.paths.config
self.controller = controller
self.emitter = controller.get_emitter()
self.thread_man = ThreadingManager(controller)
def lookup(self, enum: Preferences) -> Any:
key = self.enum_to_key(enum)
config = self.get_config()
try:
return config[key]
except KeyError:
return None
def add_saved_server(self, record: str) -> None:
ips = self.lookup(Preferences.IP_LIST)
ips.append(record)
self.update_config(Preferences.IP_LIST, ips)
def update_history_file(self, records: list[Any]) -> None:
with open(self.prefs.paths.history, "w") as f:
for record in records:
addr = f"{record[7]}:{record[8]}"
f.write(f"{addr}\n")
def remove_saved_server(self, record: str) -> None:
ips = self.lookup(Preferences.IP_LIST)
ips.remove(record)
self.update_config(Preferences.IP_LIST, ips)
# TODO: drop/reroute
def update_config(self, key: Preferences, value: str) -> None:
self.write_config(key, value)
# TODO: suppress signals
# then reenable (or it spawns dialog twice)
# TODO: do this on demand if/when in options page
# self.mediator.grid.notebook.settings.populate_settings()
def get_config(self) -> Any:
# TODO: is this being called twice?
try:
return read_json(self.config)
except Exception as e:
logger.critical(e)
raise e
# TODO: strings
@call_on_thread("Checking api")
def update_api_key(self, key: Preferences, text: str) -> None:
if key is Preferences.STEAM:
res = test_steam_api(text)
else:
res = test_bm_api(text)
if res is True:
self.update_config(key, text)
else:
self.thread_man.set_cleanup_func(
StoredFunc(lambda: self.emitter.emit("api_change_failed"))
)
return
def get_start_tab(self) -> Any:
return int(self.lookup(Preferences.START_TAB))
def get_favorites(self) -> list[str]:
return list(self.lookup(Preferences.IP_LIST))
def get_favorite(self) -> tuple[str, str] | None:
fav = str(self.lookup(Preferences.FAV_LBL))
if len(fav) < 1:
return None
ip = str(self.lookup(Preferences.FAV_SRV))
addr = ip.split(":")
return fav, f"{addr[0]}:{addr[2]}"
def is_in_favs(self, record: str) -> bool:
favs = self.get_favorites()
if record in favs:
return True
return False
def enum_to_key(self, enum: Preferences) -> str:
return str(enum.dict["key"])
def get_client_index(self, client: str) -> int:
if client == STEAM_CMD:
return 0
if client == FLATPAK_RUN_CMD:
return 1
if client == FLATPAK_SANDBOX:
return 2
return 0
def toggle_config(self, key: Preferences) -> None:
try:
real_key = self.enum_to_key(key)
_json = self.get_config()
cur_val = not _json[real_key]
_json[real_key] = cur_val
write_json(_json, self.config)
except Exception as e:
logger.critical(e)
raise e
def set_fav(self, name: str, record: str) -> None:
try:
self.write_config(Preferences.FAV_LBL, name)
self.write_config(Preferences.FAV_SRV, record)
except Exception:
return
def write_config(self, key: Preferences, value: str) -> None:
try:
real_key = self.enum_to_key(key)
conf = self.get_config()
conf[real_key] = value
write_json(conf, self.config)
except Exception as e:
logger.critical(e)
trace = traceback.format_exc()
dialog = ExceptionDialog(self.controller, trace)
dialog.run()
raise e
def save_res_and_quit(self, tv: "ServerTreeView", window: "OuterWindow") -> None:
columns = tv.get_columns()
columns_file = self.prefs.paths.columns
try:
data = read_json(columns_file)
except Exception as e:
logger.critical(e)
data = {"cols": {}}
for column in columns:
title = column.get_title()
size = column.get_width()
data["cols"][title] = size
try:
write_json(data, columns_file)
except Exception as e:
logger.critical(e)
logger.info("Normal user exit")
if window.props.is_maximized:
main_quit()
return
w, h = window.get_size()
data = {"res": {"width": w, "height": h}}
res_path = self.prefs.paths.resolution
try:
write_json(data, res_path)
except Exception as e:
logger.critical(e)
main_quit()
def set_resolution(self, window: "OuterWindow") -> None:
if self.prefs.is_game_mode:
window.fullscreen()
return
elif self.lookup(Preferences.WINDOW) is True:
window.fullscreen()
try:
data = read_json(self.prefs.paths.resolution)
valid_json = True
except Exception as e:
valid_json = False
logger.critical(e)
if valid_json:
res = data["res"]
w, h = res["width"], res["height"]
logger.info(f"Restoring window size to {w},{h}")
window.set_default_size(w, h)
else:
w = WINDOW_DEFAULT_X
h = WINDOW_DEFAULT_Y
logger.info(f"Using default window size {w},{h}")
window.set_default_size(w, h)
-316
View File
@@ -1,316 +0,0 @@
import logging
import shutil
import time
from dataclasses import dataclass
from packaging.version import Version
from pathlib import Path
from typing import TYPE_CHECKING
import dzgui.api.pefile as PeFile
import dzgui.api.servers as Servers
from dzgui.api.steam import (
connect,
enqueue_mod,
get_remote_signatures,
get_needs_update,
)
from dzgui.api.mods import (
get_mod_dir_size,
get_local_mod_ids,
get_local_mod_path,
update_signatures,
)
from dzgui.const.constants import (
APP_NAME,
APPID_DAYZ,
APPID_DAYZ_EXP,
APPNAME_DAYZ,
APPNAME_DAYZ_EXP_HUMAN,
)
from dzgui.const.enum import NotebookPage, Preferences
from dzgui.init.proc import is_dayz_running, is_steam_running
from dzgui.managers.threading import call_on_thread, StoredFunc, ThreadingManager
from dzgui.strings.dialogs import waiting_for_launch, waiting_for_mods
from dzgui.strings.server_mods import checkmark, resync
from dzgui.util.format import format_mib
from dzgui.util.strings import dialog, server_timeout
from dzgui.util.symlink import rebuild_symlinks
from dzgui.views.dialogs.generic import ExceptionDialog
from dzgui.views.dialogs.servers import ServerDetailsDialog, ServerModDialog
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GLib # noqa E402
if TYPE_CHECKING:
from dzgui.api.servers import A2SInfo, Record
from dzgui.controllers.mc import Controller
logger = logging.getLogger(APP_NAME)
@dataclass(slots=True, frozen=True)
class SteamProcess:
name: str
is_running: bool
@dataclass(slots=True, frozen=True)
class Prerequisites:
name: str
appid: int
local_version: Version
remote_version: Version
build: str
binary_missing: bool
required_space: float
available_space: float
passworded: bool
dayz_running: bool
steam_proc: SteamProcess
mods: list[list[str]]
game_mode: bool
class ConnectionManager:
def __init__(self, controller: "Controller") -> None:
self.controller = controller
self.thread_man = ThreadingManager(controller)
self.appid: int
self.record: Record
self.workshop: Path
self.remote_mod_ids: list[str] = []
self.missing_mods: list[tuple[str, str, int, int]] = []
@call_on_thread(dialog.querying)
def connect_by_id(self, _id: int, key: str) -> None:
res = Servers.query_by_id(_id, key)
self._prepare_connection(res)
@call_on_thread(dialog.querying)
def connect_by_ip(self, addr: str) -> None:
res = Servers.query_by_ip(addr)
self._prepare_connection(res)
@call_on_thread(dialog.querying)
def connect_by_record(self, record: Servers.Record) -> None:
res = Servers.query_by_record(record)
self._prepare_connection(res)
def _prepare_connection(self, res: "A2SInfo") -> None:
failure_func = StoredFunc(self._server_timeout)
info = res.get_info()
if info is None:
self.thread_man.set_cleanup_func(failure_func, destroy_first=True)
return
try:
self.history = res.as_row()
except Exception:
self.thread_man.set_cleanup_func(failure_func, destroy_first=True)
return
record = res.get_record()
# NOTE: store metadata for later connection
self.appid = info.game_id
self.record = record
builds = {APPID_DAYZ: APPNAME_DAYZ, APPID_DAYZ_EXP: APPNAME_DAYZ_EXP_HUMAN}
build = builds[self.appid]
binary_missing = False
required_mib = 0.0
free_mib = 0.0
steam_path = Path(self.controller.query_config(Preferences.DEFAULT))
self.workshop = get_local_mod_path(steam_path)
local_version = PeFile.get_pretty_version(steam_path, info.game_id)
if local_version is None:
local_version = "0.0.0"
binary_missing = True
prefs = self.controller.get_prefs()
remote_mods: list[list[str]] = []
if res.is_modded():
try:
remote_mods = self._query_modlist(record)
self.remote_mod_ids = [mod[1] for mod in remote_mods]
except Exception as e:
logger.warning(e)
self.thread_man.set_cleanup_func(failure_func, destroy_first=True)
return
hashes = get_remote_signatures(self.remote_mod_ids)
version_file = prefs.paths.version
self.missing_mods = get_needs_update(version_file, hashes)
for mod in remote_mods:
if any(mod[1] in tuple for tuple in self.missing_mods):
mod[2] = resync
if local_version is not None:
pefile_path = PeFile.get_pefile_path(steam_path, info.game_id)
total, used, free = shutil.disk_usage(pefile_path)
if len(self.missing_mods) > 0:
required_size = sum(row[2] for row in self.missing_mods)
required_mib = format_mib(required_size)
free_mib = format_mib(required_size)
dayz_running = is_dayz_running()
client_name = self.controller.get_steam_client_name()
client = self.controller.query_config(Preferences.CLIENT)
running = is_steam_running(client)
steam_proc = SteamProcess(client_name, running)
game_mode = prefs.is_game_mode
prereqs = Prerequisites(
name=info.server_name,
appid=info.game_id,
local_version=Version(local_version),
remote_version=Version(info.version),
build=build,
binary_missing=binary_missing,
required_space=required_mib,
available_space=free_mib,
passworded=info.password_protected,
dayz_running=dayz_running,
steam_proc=steam_proc,
mods=remote_mods,
game_mode=game_mode,
)
func = StoredFunc(self.controller.open_connection_assistant, prereqs)
self.thread_man.set_cleanup_func(func, destroy_first=True)
@call_on_thread(dialog.querying)
def query_details(self, record: Servers.Record) -> None:
details = Servers.get_details(record)
if details.success is False:
self.thread_man.set_cleanup_func(
StoredFunc(self._server_timeout), destroy_first=True
)
return
self.thread_man.set_cleanup_func(
StoredFunc(self._present_details_dialog, details), destroy_first=True
)
def _query_modlist(self, record: Servers.Record) -> list[list[str]]:
mods = Servers.get_rules(record)
steam_path = self.controller.query_config(Preferences.DEFAULT)
local = get_local_mod_ids(steam_path)
alpha_mods: list[list[str]] = [
[
mod.name,
str(mod.workshop_id),
checkmark if mod.workshop_id in local else "",
]
for mod in mods
]
alpha_mods.sort(key=lambda x: x[0])
return alpha_mods
@call_on_thread(dialog.querying)
def query_modlist_and_present(self, record: Servers.Record) -> None:
try:
mods = self._query_modlist(record)
except Exception:
self.thread_man.set_cleanup_func(
StoredFunc(self._server_timeout), destroy_first=True
)
return
self.thread_man.set_cleanup_func(
StoredFunc(self._present_modlist_dialog, mods),
destroy_first=True,
)
def _present_modlist_dialog(self, mods: list[list[str]]) -> None:
dialog = ServerModDialog(self.controller, mods)
dialog.run()
def _present_details_dialog(self, details: Servers.Details) -> None:
dialog = ServerDetailsDialog(self.controller, details)
dialog.run()
def _server_timeout(self) -> None:
dialog = ExceptionDialog(self.controller, server_timeout)
dialog.run()
def _connect_steam(self) -> None:
addr = f"{self.record.ip}:{self.record.gameport}"
playername = self.controller.query_config(Preferences.NAME)
client = self.controller.query_config(Preferences.CLIENT)
rc = connect(client, addr, self.appid, playername, self.remote_mod_ids)
if rc != 0:
# TODO: log/pop the error
func = StoredFunc(self.controller.update_status)
self.thread_man.set_cleanup_func(func)
return
self.thread_man.show_cancel(False)
self.thread_man.update_dialog(waiting_for_launch)
while True:
# TODO: check cancel event
if self.controller.get_exit_event().is_set():
# TODO: some facility to also close spawned steam process
return
if is_dayz_running():
break
time.sleep(1)
func = StoredFunc(self._add_to_history_and_return)
self.thread_man.set_cleanup_func(func)
def _add_to_history_and_return(self) -> None:
self.controller.add_to_history(self.history)
self.controller.open_page(NotebookPage.SERVERS)
def _update_mods(self, raise_window: bool) -> None:
# NOTE: fast enqueue all mods in auto mode
prefs = self.controller.get_prefs()
for title, mod, stamp, size in self.missing_mods:
# TODO: check cancel and exit events
enqueue_mod(mod, self.appid)
time.sleep(2)
if raise_window is True:
logger.info("Bringing window to foreground")
GLib.idle_add(self.controller.present_window)
for title, mod, stamp, size in self.missing_mods:
mod_path = self.workshop / mod
# NOTE: Steam updates mod chunks in parallel, will finish at the same time
while mod_path.is_dir() is False:
time.sleep(1)
while True:
if self.controller.get_exit_event().is_set():
return
if self.controller.get_cancel_event().is_set():
self.controller.clear_cancel_event()
return
cur_size = get_mod_dir_size(mod_path)
if cur_size == size:
break
time.sleep(1)
update_signatures(self.missing_mods, prefs.paths.version)
# TODO: just push steam path directly
rebuild_symlinks(prefs.paths.config)
self._connect_steam()
@call_on_thread(waiting_for_mods, show_cancel=True)
def update_and_connect(self, raise_window: bool) -> None:
if len(self.missing_mods) > 0:
self._update_mods(raise_window)
else:
self._connect_steam()
-117
View File
@@ -1,117 +0,0 @@
import gi
import logging
from typing import TYPE_CHECKING
from dzgui.const.constants import APP_NAME
from dzgui.const.enum import ContextMenu, Preferences
from dzgui.util.clip import copy_clipboard
from dzgui.util.open_links import open_workshop_page
from dzgui.views.dialogs.note import NoteDialog
from dzgui.views.trees.tree_mods import ModTreeView
from dzgui.views.trees.tree_log import LogTreeView
from dzgui.views.trees.tree_servers import ServerTreeView
from dzgui.views.trees.tree_server_mods import ServerModTreeView
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gdk, GLib, GObject # noqa E402
logger = logging.getLogger(APP_NAME)
if TYPE_CHECKING:
from dzgui.controllers.mc import Controller
class ContextMenuManager:
def __init__(
self,
treeview: LogTreeView | ModTreeView | ServerTreeView | ServerModTreeView,
controller: "Controller",
) -> None:
self.controller = controller
self.treeview = treeview
def process(self, action: ContextMenu) -> None:
if isinstance(self.treeview, ServerTreeView):
record = self.treeview.get_record()
if record is None:
return
match action:
# UNTHREADED
case ContextMenu.ADD_NOTE:
dialog = NoteDialog(self.controller)
dialog.run()
case ContextMenu.COPY_SERVER_IP:
self.copy_server_ip()
case ContextMenu.COPY_SERVER_NAME:
self.copy_server_name()
case ContextMenu.SET_FAV:
name = self.treeview.get_value_at_index(0)
# NOTE: fully qualified ip
fqip = self.treeview.get_record_string()
# NOTE: short ip for display purposes
simple = self.treeview.get_simplified_ip()
self.controller.set_fav(name, fqip, simple)
# THREADED
case ContextMenu.ADD_SERVER:
self.controller.add_by_record(record)
case ContextMenu.CONNECT:
self.controller.connect_by_record(record)
case ContextMenu.REFRESH_PLAYERS:
self.controller.refresh_players(record)
case ContextMenu.REMOVE_HISTORY:
self.controller.remove_from_history(record)
case ContextMenu.REMOVE_SERVER:
self.controller.remove_by_record(record)
case ContextMenu.SHOW_DETAILS:
self.controller.get_details(record)
case ContextMenu.SHOW_MODS:
self.controller.get_modlist(record)
if isinstance(self.treeview, ModTreeView):
match action:
case ContextMenu.DELETE_MOD:
self.controller.delete_mods()
case ContextMenu.OPEN_WORKSHOP:
self.open_mod_page()
if isinstance(self.treeview, LogTreeView):
match action:
case ContextMenu.COPY_LOG_CLIPBOARD:
self.copy_log()
if isinstance(self.treeview, ServerModTreeView):
match action:
case ContextMenu.OPEN_WORKSHOP:
self.open_mod_page()
def copy_server_ip(self) -> None:
if not isinstance(self.treeview, ServerTreeView):
return
record = self.treeview.get_simplified_ip()
copy_clipboard(record)
def copy_server_name(self) -> None:
name = self.treeview.get_value_at_index(0)
if name is None:
return
copy_clipboard(name)
def open_mod_page(self) -> None:
if not hasattr(self.treeview, "get_selected_mod"):
return
mod = self.treeview.get_selected_mod()
cmd = self.controller.query_config(Preferences.CLIENT)
open_workshop_page(mod, cmd)
def copy_log(self) -> None:
if not isinstance(self.treeview, LogTreeView):
return
log = self.treeview.concatenate_rows()
if log is None:
return
copy_clipboard(log)
-105
View File
@@ -1,105 +0,0 @@
from typing import TYPE_CHECKING
from dzgui.model.model_factory import ModelFactory
from dzgui.util import strings
from dzgui.util.strings import all_maps
if TYPE_CHECKING:
from dzgui.model.model_factory import FastInsertListStore
class FilterManager:
def __init__(self) -> None:
self.map_store = ModelFactory().make_map_store()
# TODO: namespace under own file: strings.filters
self.default_filters = {
strings.filter_1pp: True,
strings.filter_day: True,
strings.filter_empty: False,
strings.filter_3pp: True,
strings.filter_night: True,
strings.filter_full: False,
strings.filter_lowpop: True,
strings.filter_nonascii: False,
strings.filter_duplicate: False,
strings.filter_official: True,
strings.filter_unofficial: True,
strings.filter_modded: True,
}
self.active_keyword = ""
self.active_map = (0, all_maps)
self.prior_map = all_maps
self.filters: list
self.enabled_filters = dict(self.default_filters)
def set_prior_map(self, name: str) -> None:
self.prior_map = name
def get_active_map_name(self) -> str:
return self.active_map[1]
def get_active_map(self) -> tuple[int, str]:
return self.active_map
def set_active_map(self, ind: int, name: str) -> None:
self.active_map = (ind, name)
def get_active_keyword(self) -> str:
return self.active_keyword
def set_active_keyword(self, word: str) -> None:
self.active_keyword = word
def get_default_filters(self) -> dict:
"""Deep copy of defaults"""
return dict(self.default_filters)
def get_filters(self) -> dict:
return self.enabled_filters
def set_filter(self, label: str, state: bool) -> None:
self.enabled_filters[label] = state
def get_map_store(self) -> "FastInsertListStore":
return self.map_store
def reinit_map_store(self) -> None:
model = ModelFactory().make_map_store()
model.append([all_maps])
self.map_store = model
self.active_map = (0, all_maps)
def append_map(self, row: list[str]) -> None:
self.map_store.append(row)
def set_unique_maps(self, maps: list[str]) -> None:
if maps is None:
return
if len(maps) < 1:
return
self.reinit_map_store()
maps.sort()
for m in maps:
if m == "All maps":
continue
self.append_map([m])
def get_unique_maps(self) -> list[str]:
return [row[0] for row in self.map_store if row != "All maps"]
def get_all_filters(self) -> tuple:
map_name = self.get_active_map_name()
enabled = self.get_filters()
kw = self.get_active_keyword()
filters = []
filters.append(map_name)
filters.append(kw)
for filt in enabled:
if enabled[filt] is False:
filters.append(filt)
return tuple(filters)
-204
View File
@@ -1,204 +0,0 @@
import logging
import shutil
from pathlib import Path
from typing import Any, TYPE_CHECKING
from dzgui.api.mods import (
get_delimited_mods,
get_local_mod_path,
find_stale_mods,
_hash,
remove_stale_signatures,
)
from dzgui.const.constants import APP_NAME, APPID_DAYZ, APPID_DAYZ_EXP
from dzgui.const.enum import Preferences
from dzgui.managers.threading import call_on_thread, StoredFunc, ThreadingManager
from dzgui.model.model_factory import FastInsertListStore, ModelFactory
from dzgui.util.format import format_mods
from dzgui.util.strings import server_timeout
from dzgui.views.dialogs.generic import ExceptionDialog
import dzgui.api.pefile as PeFile
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk # noqa E402
if TYPE_CHECKING:
from dzgui.controllers.mc import Controller
logger = logging.getLogger(APP_NAME)
class ModManager:
"""
Because mods may be dynamically updated on the system,
this manager is instantiated each time the Mods page is opened
"""
def __init__(self, controller: "Controller") -> None:
self.controller = controller
self.emitter = controller.get_emitter()
self.prefs = controller.get_prefs()
self.path = controller.query_config(Preferences.DEFAULT)
self.treeview = self.controller.get_modtreeview()
self.store: FastInsertListStore
self.thread_man = ThreadingManager(controller)
self._get_mods()
# TODO: dialog strings
@call_on_thread("getting mods")
def _get_mods(self) -> None:
mods = get_delimited_mods(self.path)
if len(mods) < 1:
msg = self.format_mod_statusbar()
func = StoredFunc(lambda: self.emitter.emit("mods_updated", msg, 0))
self.thread_man.set_cleanup_func(func)
return
func = StoredFunc(self._on_mods_loaded, mods)
self.thread_man.set_cleanup_func(func)
def _on_mods_loaded(self, mods: list[list[Any]]) -> None:
self.store = ModelFactory().make_mod_store()
self.store.extend(mods)
self.treeview.set_model(self.store)
msg = self.format_mod_statusbar()
total_mods = len(self.store)
self.emitter.emit("mods_updated", msg, total_mods)
def delete_mods(self) -> None:
sel = self.treeview.get_selection()
model, pathlist = sel.get_selected_rows()
# NOTE: reverse when multiple selection
mods: list[tuple[str, Gtk.TreeIter]] = []
for path in reversed(pathlist):
res = self.get_mod_from_tree_path(path)
if res is None:
continue
mod, _iter = res
mods.append((mod, _iter))
self.delete_mods_on_system(mods)
def get_mod_from_tree_path(
self, tree_path: Gtk.TreePath
) -> tuple[str, Gtk.TreeIter] | None:
model = self.treeview.get_model()
if model is None:
return None
tree_iter = model.get_iter(tree_path)
mod = model.get_value(tree_iter, 2)
return mod, tree_iter
# TODO: strings
@call_on_thread("deleting mods")
def delete_mods_on_system(self, mods: list[tuple[str, Gtk.TreeIter]]) -> None:
for mod, _iter in mods:
self.delete_single_mod(mod)
iters = [_iter for mod, _iter in mods]
func = StoredFunc(self._on_mods_deleted, iters)
self.thread_man.set_cleanup_func(func)
def delete_single_mod(self, mod: str) -> None:
steam_path = Path(self.path)
mods_path = get_local_mod_path(steam_path)
app_path = PeFile.get_nested_app_path(steam_path, APPID_DAYZ)
md5 = _hash(mod)
symlink = app_path / md5
symlink.unlink()
shutil.rmtree(mods_path / mod)
# NOTE: second pass to unlink DAYZ_EXP mods
# TODO: test this with working APPID_DAYZ_EXP installation
try:
app_path_exp = PeFile.get_nested_app_path(steam_path, APPID_DAYZ_EXP)
symlink = app_path_exp / md5
symlink.unlink()
except PeFile.AppNotInstalledError:
pass
def _on_mods_deleted(self, iters: list[Gtk.TreeIter]) -> None:
for _iter in iters:
self.store.remove(_iter)
remove_stale_signatures(self.prefs.paths.config, self.prefs.paths.version)
model = self.treeview.get_model()
if model is None:
return
mods = len(model)
msg = self.format_mod_statusbar()
self.emitter.emit("mods_updated", msg, mods)
def uncolorize_mods(self) -> None:
model = self.treeview.get_model()
if model is None:
return
for mod in model:
_iter = mod.iter
path = model.get_path(_iter)
model[path][4] = None
path = Gtk.TreePath.new_from_indices([0])
self.treeview.set_cursor(path)
def toggle_mod_selection(self, state: bool) -> None:
sel = self.treeview.get_selection()
if state:
sel.select_all()
else:
sel.unselect_all()
self.treeview.grab_focus()
def format_mod_statusbar(self) -> str:
total_mods, total_size = self.calc_mod_size()
msg = format_mods(total_size, total_mods)
return msg
def calc_mod_size(self) -> tuple[int, int]:
model = self.treeview.get_model()
if model is None:
return 0, 0
total_mods = len(model)
total_size = 0
for mod in model:
total_size += mod[3]
return total_mods, total_size
def _on_stale_mods_found(self, stale_mods: list) -> None:
"""Manipulates attached ListStore in the main event loop"""
model = self.treeview.get_model()
if model is None:
return
for mod in model:
it = mod.iter
path = model.get_path(it)
if int(mod[2]) in stale_mods:
model[path][4] = True
self.emitter.emit("mods_highlighted")
# TODO: dialog strings
@call_on_thread("working")
def highlight_stale(self) -> None:
stale = find_stale_mods(self.prefs.paths.config)
func = StoredFunc(self._on_stale_mods_found, stale)
self.thread_man.set_cleanup_func(func)
def _server_timeout(self) -> None:
dialog = ExceptionDialog(self.controller, server_timeout)
dialog.run()
def select_colorized(self) -> None:
model = self.treeview.get_model()
if model is None:
return
sel = self.treeview.get_selection()
for mod in model:
it = mod.iter
path = model.get_path(it)
if mod[4] is True:
sel.select_path(path)
-42
View File
@@ -1,42 +0,0 @@
import json
import logging
from typing import TYPE_CHECKING
from dzgui.const.constants import APP_NAME
from dzgui.util._json import read_json
import gi
gi.require_version("Gtk", "3.0")
if TYPE_CHECKING:
from dzgui.controllers.mc import Controller
from pathlib import Path
logger = logging.getLogger(APP_NAME)
class NoteManager:
def __init__(self, controller: "Controller", path: "Path") -> None:
self.notes_path = path
self.cache: dict[str, str] = read_json(self.notes_path)
def add_note(self, server: str, note: str) -> None:
self.cache[server] = note
self.write_file()
def delete_note(self, server: str) -> None:
del self.cache[server]
self.write_file()
def get_note(self, server: str) -> str:
try:
text = self.cache[server]
return text
except Exception:
return ""
def write_file(self) -> None:
j = json.dumps(self.cache, indent=2)
self.notes_path.write_text(j)
-127
View File
@@ -1,127 +0,0 @@
import inspect
import logging
import threading
from typing import Any, Literal, TYPE_CHECKING, Union
from functools import wraps
from typing import Callable
from dzgui.const.constants import APP_NAME
from dzgui.views.dialogs.generic import WaitDialog
if TYPE_CHECKING:
from dzgui.controllers.mc import Controller
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GLib # noqa E402
logger = logging.getLogger(APP_NAME)
def call_on_thread(
dialog_str: str, show_dialog: bool = True, show_cancel: bool = False
) -> Callable:
def decorator(func: Callable) -> Callable:
@wraps(func)
def wrapper(*args: Any, **kwargs: Any) -> None:
self = args[0]
stored = StoredFunc(func, *args, **kwargs)
if not hasattr(self, "thread_man"):
raise AttributeError(f"Object '{self}' has no attribute 'thread_man'")
if type(self.thread_man) is not ThreadingManager:
raise TypeError(
"Attribute 'thread_man' must be of type 'ThreadingManager'"
)
self.thread_man.call_on_thread(dialog_str, stored, show_dialog, show_cancel)
return wrapper
return decorator
class StoredFunc:
def __init__(self, func: Callable, *args: Any, **kwargs: Any) -> None:
sig = inspect.signature(func)
self.func = func
self.bindings = sig.bind(*args, **kwargs)
def call(self) -> None:
self.func(*self.bindings.args, *self.bindings.kwargs)
class ThreadingManager:
def __init__(self, controller: Union["Controller", None]) -> None:
self.controller = controller
self.jobs = 1
self.cleanup_func: StoredFunc | None = None
self.destroy_first = False
def call_on_thread(
self,
dialog_str: str,
func: StoredFunc,
show_dialog: bool = True,
show_cancel: bool = False,
) -> None:
def callback() -> None:
func.call()
GLib.idle_add(self._destroy_on_idle)
if show_dialog is True and self.controller is not None:
self.wait_dialog = WaitDialog(
self.controller, dialog_str, jobs=self.jobs, show_cancel=show_cancel
)
self.wait_dialog.show_all()
thread = threading.Thread(target=callback)
thread.start()
def set_job_count(self, jobs: int) -> None:
self.jobs = jobs
def update_dialog(self, msg: str) -> None:
GLib.idle_add(lambda: self.wait_dialog.update_text(msg))
def increment_dialog(self) -> None:
GLib.idle_add(self.wait_dialog.increment)
def increment_dialog_with_str(self, text: str) -> None:
GLib.idle_add(lambda: self.wait_dialog.increment(text))
def set_cleanup_func(
self, func: StoredFunc | None, destroy_first: bool = False
) -> None:
if type(func) not in (StoredFunc, type(None)):
msg = f"Callback function '{func}' is not of type StoredFunc or None"
logger.critical(msg)
raise TypeError(msg)
self.destroy_first = destroy_first
self.cleanup_func = func
def get_cleanup_func(self) -> StoredFunc | None:
return self.cleanup_func
def destroy_dialog(self) -> None:
if hasattr(self, "wait_dialog"):
self.wait_dialog.destroy()
def _destroy_on_idle(self) -> Literal[False]:
if self.destroy_first:
self.destroy_dialog()
func = self.get_cleanup_func()
if func is not None:
func.call()
self.set_cleanup_func(None)
if not self.destroy_first:
self.destroy_dialog()
return False
def get_wait_dialog(self) -> WaitDialog:
return self.wait_dialog
def show_cancel(self, state: bool) -> None:
GLib.idle_add(self.wait_dialog.show_cancel, state)
-167
View File
@@ -1,167 +0,0 @@
from dataclasses import dataclass
from typing import Any, Sequence, TYPE_CHECKING
from dzgui.const.enum import HELP_MENU_ROWS
from dzgui.util.redact import redact_log
from dzgui.util.strings import delimiter
import gi
gi.require_version("Gtk", "3.0")
from gi.repository.Gtk import ListStore, TreeIter # noqa E402
from gi.repository import GObject # noqa E402
GTYPE_TO_PYTHON = {
GObject.type_from_name(GObject.type_name(ptype)): ptype
for ptype in (int, float, str, bool, object)
}
if TYPE_CHECKING:
from pathlib import Path
@dataclass(slots=True, frozen=True)
class ServerCols:
name: str
_map: str
perspective: str
gametime: str
players: int
_max: int
queue: int
ip: str
qport: int
ping: int
provider: str
modded: bool
@dataclass(slots=True, frozen=True)
class ModCols:
name: str
symlink: str
directory: str
size: float
color: bool
@dataclass(slots=True, frozen=True)
class LogCols:
timestamp: str
flag: str
traceback: str
msg: str
@dataclass(slots=True, frozen=True)
class ServerModCols:
name: str
uid: str
installed: str
@dataclass(slots=True, frozen=True)
class MenuCols:
name: str
hidden: object
class FastInsertListStore(ListStore):
def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
def _is_same_length(self, lists: Sequence[Any]) -> bool:
first_len = len(lists[0])
if not all(len(sublist) == first_len for sublist in lists):
return False
return True
def _is_type_homogeneous(self, lists: Sequence[Any]) -> bool:
transposed = zip(*lists)
for column in transposed:
first_type = type(column[0])
if not all(type(item) is first_type for item in column):
return False
return True
def extend(self, rows: Sequence[Any]) -> None:
"""
Compared to calling append() directly, introduces negligible overhead,
but guarantees type and length equivalence prior to insertion
"""
n_cols = self.get_n_columns()
expected_types = [
GTYPE_TO_PYTHON[self.get_column_type(i)] for i in range(n_cols)
]
if len(rows) == 0:
return
if not self._is_same_length(rows):
raise ValueError("Sublists are not of uniform length")
if not self._is_type_homogeneous(rows):
raise TypeError("Sublists are not type homogeneous")
if not all(isinstance(a, b) for a, b in zip(rows[0], expected_types)):
raise TypeError("Sublist types are not same as ListStore")
if len(rows[0]) != n_cols:
raise ValueError("Sublist column length is not same as ListStore")
for row in rows:
self.append(row)
def append(self, row: list[Any] | tuple[Any, ...] | None = ...) -> TreeIter: # type: ignore
"""
Optimized for speed, but makes no assurances about row homogeneity
and may segfault if types and length are not identical to ListStore.
For this reason, it is recommended to use the extend() method to insert
an entire list of lists
"""
if row is not None:
total = len(row)
i = len(self)
tree_iter = self.insert_with_values(i, tuple(range(total)), row)
else:
tree_iter = super().append(row)
return tree_iter
class ModelFactory:
def __init__(self) -> None:
pass
def new_model_from_logfile(self, path: "Path") -> FastInsertListStore:
store = self.make_log_store()
with open(path, "r") as f:
lines = [line.split(delimiter) for line in f.read().splitlines()]
for record in lines:
# NOTE: strips PII and API keys
clean = redact_log(record)
store.append(clean)
return store
def new_model_from_class(self, cls: type) -> FastInsertListStore:
store = FastInsertListStore(
*[ftype for field, ftype in cls.__annotations__.items()]
)
return store
def make_map_store(self) -> FastInsertListStore:
return FastInsertListStore(str)
def make_help_store(self) -> FastInsertListStore:
store = self.new_model_from_class(MenuCols)
rows = [[row.dict["label"], row] for row in HELP_MENU_ROWS]
store.extend(rows)
return store
def make_mod_store(self) -> FastInsertListStore:
return self.new_model_from_class(ModCols)
def make_log_store(self) -> FastInsertListStore:
return self.new_model_from_class(LogCols)
def make_server_mod_store(self) -> FastInsertListStore:
return self.new_model_from_class(ServerModCols)
def make_server_store(self) -> FastInsertListStore:
return self.new_model_from_class(ServerCols)
-300
View File
@@ -1,300 +0,0 @@
import re
from typing import Any, TYPE_CHECKING, Union
from warnings import deprecated
from dzgui.const.enum import FilterMode
from dzgui.model.model_factory import ModelFactory
from dzgui.util import strings
if TYPE_CHECKING:
from dzgui.managers.filter import FilterManager
from dzgui.model.model_factory import FastInsertListStore
from dzgui.api.servers import Record
from dzgui.model.servers import NewPlayerCount
class ProxyModelManager:
"""
Manages access to cached FastInsertListStore resources and
performs filtering on behalf of atomic TreeViews,
which share the same column structure.
A ProxyModelManager is attached to each ServerTreeView.
Raw data is cached before being packed into a FastInsertListStore, see get_control()
Filtration creates a proxy of the TreeView's model, see get_proxy_model()
"""
def __init__(self, filter_man: "FilterManager") -> None:
self.filter_cache: dict[
tuple[str],
list[tuple[str, str, str, str, int, int, int, str, int, int, str, bool]],
] = {}
self.proxy_model: "FastInsertListStore"
self.filter_man = filter_man
self.control_model: (
list[tuple[str, str, str, str, int, int, int, str, int, int, str, bool]]
| None
) = None
self.filtered: list[
tuple[str, str, str, str, int, int, int, str, int, int, str, bool]
] = []
self.success = True
def has_control_model(self) -> bool:
if self.control_model is None:
return False
return True
def append_row(self, row: list) -> None:
self.proxy_model.append(row)
def append_row_to_control(
self, row: tuple[str, str, str, str, int, int, int, str, int, int, str, bool]
) -> None:
if self.control_model is None:
raise AttributeError("Trying to add rows to a non-existent model")
self.control_model.append(row)
self.filter(FilterMode.INITIAL, skip_cache=True)
def update_playercount(self, playercount: "NewPlayerCount") -> None:
treeiter = playercount.treeiter
self.proxy_model[treeiter][4] = playercount.players
self.proxy_model[treeiter][6] = playercount.queue
# TODO: use dataclass for record rows
def append_row_to_history(
self,
history: tuple[str, str, str, str, int, int, int, str, int, int, str, bool],
) -> None:
addr = history[7]
qport = history[8]
if self.control_model is None:
raise AttributeError("Trying to append row to empty model")
found = False
for i, row in enumerate(self.control_model):
if addr == row[7] and qport == row[8]:
item = self.control_model.pop(i)
self.control_model.append(item)
found = True
break
if found is False:
self.control_model.append(history)
if len(self.control_model) == 11:
del self.control_model[0]
self.filter(FilterMode.INITIAL, skip_cache=True)
def remove_row_from_control(self, record: "Record") -> None:
if self.control_model is None:
return
addr = f"{record.ip}:{record.gameport}"
qport = record.qport
for row in self.control_model:
if addr == row[7] and qport == row[8]:
self.control_model.remove(row)
break
self.wipe_cache()
self.filter(FilterMode.INITIAL, skip_cache=True)
def clear_proxy_model(self) -> None:
self.proxy_model.clear()
def get_proxy_model(self) -> Union["FastInsertListStore", None]:
if hasattr(self, "proxy_model"):
return self.proxy_model
return None
def filter(
self, mode: FilterMode, skip_cache: bool = False
) -> Union["FastInsertListStore", None]:
"""
Native Gtk.TreeView.refilter() method was not performant enough
when running in the main loop with 40k+ records
skip_cache: used when updating a record on Saved Servers/History and forcing a refilter
"""
# TODO: filter cache: return a dataclass object with clearly enumerated map, keyword, and filter values
# instead of just a serial list of strings
filters = self.filter_man.get_all_filters()
if skip_cache is False:
if filters in self.filter_cache:
cached_rows = self.filter_cache[filters]
clone = ModelFactory().make_server_store()
clone.extend(cached_rows)
self.set_proxy_model(clone)
self.set_filtered(cached_rows)
return None
match mode:
case FilterMode.INITIAL:
rows = self.filter_initial(filters)
case FilterMode.TOGGLE_ON:
rows = self.filter_toggle_on(filters)
case FilterMode.TOGGLE_OFF:
for f in filters[2:]:
self.set_filtered(self.filter_toggle_off(filters, f))
rows = self.filtered
# NOTE: FastInsertListStore manipulation must remain local to the thread
clone = ModelFactory().make_server_store()
if len(rows) > 0:
rows = self.sort_rows(rows)
clone.extend(rows)
self.set_cache(filters, rows)
self.set_proxy_model(clone)
return clone
def sort_rows(self, rows: list) -> list:
rows.sort(key=lambda x: re.sub(r"[^A-Za-z0-9]+", "", x[0].lower()))
return rows
def filter_initial(self, filters: tuple) -> list:
"""
Simply culls the control model of any disabled filters
"""
self.set_filtered(self.control_model)
for f in filters[2:]:
self.set_filtered(self.filter_toggle_off(filters, f))
return self.filtered
def filter_map(self, filters: tuple) -> list:
"""
Multi-filtration for any context starts by narrowing by map
"""
rows = self.filtered
sel_map = self.filter_man.get_active_map_name()
if sel_map == strings.all_maps:
return rows
rows = [row for row in rows if row[1] == sel_map]
return rows
def filter_keyword(self, filters: tuple) -> list:
keyword = self.filter_man.get_active_keyword()
rows = self.filtered
if keyword == "":
return rows
filtered = [
row
for row in rows
if keyword in row[0].lower()
or keyword in row[1].lower()
or keyword in row[7].lower()
]
return filtered
def filter_toggle_off(self, filters: tuple, filter_type: str) -> list:
"""
Sub-filtration of the current model
"""
pairs = {
strings.filter_3pp: strings.filter_1pp,
strings.filter_day: strings.filter_night,
strings.filter_official: strings.filter_unofficial,
}
for k, v in pairs.items():
if k in filters and v in filters:
self.set_filtered(None)
return []
rows = self.filtered
match filter_type:
case strings.filter_3pp:
rows = [row for row in rows if row[2] != strings.filter_3pp]
case strings.filter_1pp:
rows = [row for row in rows if row[2] != strings.filter_1pp]
case strings.filter_official:
rows = [row for row in rows if row[10] != strings.filter_official]
case strings.filter_unofficial:
rows = [row for row in rows if row[10] != strings.filter_unofficial]
case strings.filter_empty:
rows = [row for row in rows if row[4] != 0]
case strings.filter_full:
rows = [row for row in rows if row[4] != row[5]]
case strings.filter_duplicate:
seen = set()
final = []
for row in rows:
if row[0] not in seen:
seen.add(row[0])
final.append(row)
rows = final
case strings.filter_day:
reg = r"([0][0-9]|[1][0-6])"
rows = [row for row in rows if not re.match(reg, row[3])]
case strings.filter_night:
reg = r"([0][0-4]|[1][8]|[2][0-3])"
rows = [row for row in rows if not re.match(reg, row[3])]
case strings.filter_nonascii:
rows = [row for row in rows if row[0].isascii()]
case strings.filter_lowpop:
rows = [row for row in rows if (row[4] / row[5] * 100) > 30]
case strings.filter_modded:
rows = [row for row in rows if not row[11]]
return rows
def filter_toggle_on(self, filters: tuple[str]) -> list:
"""Effectively applies all filters"""
self.set_filtered(self.control_model)
self.set_filtered(self.filter_map(filters))
self.set_filtered(self.filter_keyword(filters))
f: str
for f in filters[2:]:
self.set_filtered(self.filter_toggle_off(filters, f))
return self.filtered
def set_cache(self, filters: tuple[str], filtered_rows: list[tuple]) -> None:
self.filter_cache[filters] = filtered_rows
@deprecated("Currently unused")
# def convert_model_to_list(self, model: "FastInsertListStore") -> list:
# return [[el for el in row] for row in model]
def set_filtered(self, rows: list | None) -> None:
if rows is None:
self.filtered = []
else:
self.filtered = rows
def get_filtered(self) -> list:
return self.filtered
def set_proxy_model(self, model: "FastInsertListStore") -> None:
"""
FastInsertListStore representation of the raw model after filtration
"""
self.proxy_model = model
def set_control(self, rows: list) -> None:
"""
Raw data model prior to filtration
"""
self.control_model = rows
def get_control(self) -> list[Any]:
if self.control_model is None:
raise AttributeError(
"Expected a populated control model, but it is Nonetype"
)
return self.control_model
def wipe_cache(self, full: bool = False) -> None:
self.filtered = []
self.filter_cache = {}
def push(self, data: list[Any]) -> None:
self.wipe_cache()
self.set_control(data)
self.filter(FilterMode.INITIAL)
-437
View File
@@ -1,437 +0,0 @@
import logging
import threading
from concurrent.futures import as_completed
from concurrent.futures import ThreadPoolExecutor
from dataclasses import dataclass
from typing import Any, TYPE_CHECKING
import dzgui.api.servers as Servers
from dzgui.const.constants import (
APPID_DAYZ,
APPID_DAYZ_EXP,
APP_NAME,
)
from dzgui.const.enum import FilterMode, Preferences, ServerTab
from dzgui.managers.threading import call_on_thread, StoredFunc, ThreadingManager
from dzgui.util.strings import api_warn_msg, dialog
from dzgui.views.dialogs.generic import ExceptionDialog
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk # noqa E402
if TYPE_CHECKING:
from dzgui.api.servers import A2SInfo
from dzgui.controllers.mc import Controller
from dzgui.model.proxy_model import ProxyModelManager
from dzgui.views.trees.tree_servers import ServerTreeView
logger = logging.getLogger(APP_NAME)
LAN_TIMEOUT = 0.5
API_TIMEOUT = 3
@dataclass
class NewPlayerCount:
treeiter: Gtk.TreeIter
players: int
queue: int
class ServerModelManager:
def __init__(self, controller: "Controller", tv: "ServerTreeView") -> None:
self.tv = tv
self.enum = tv.get_enum()
self.controller = controller
self.emitter = controller.get_emitter()
self.first_iteration: bool
self.preserve_on_fail = False
self.jobs = 1
self.proxy_man = tv.get_proxy_man()
self.thread_man = ThreadingManager(self.controller)
def load(self) -> None:
"""
Load is not called on init. There may be cases where you want to instantiate this class without dumping servers,
e.g., adding saved servers from another tab
"""
self.first_iteration = True
match self.enum:
case ServerTab.BROWSER:
# NOTE: extra DAYZ_EXP param
self.thread_man.set_job_count(len(Servers.params) + 1)
self._dump_api()
case ServerTab.SAVED:
self._dump_favorites()
case ServerTab.RECENT:
self._dump_history()
case ServerTab.LAN:
# NOTE: LAN tab is only loaded on demand
pass
case _:
pass
def refresh(self) -> None:
self.preserve_on_fail = True
self.load()
@call_on_thread(dialog.fetching)
def _dump_api(self) -> None:
# TODO: pass api key a priori in .load() call?
failure_func = StoredFunc(self._cleanup_on_failure)
config_man = self.controller.get_config_man()
key = config_man.lookup(Preferences.STEAM)
job = Servers.query_api
params = Servers.params
servers = []
with ThreadPoolExecutor() as executor:
futures = [executor.submit(job, key, APPID_DAYZ, param) for param in params]
for future in as_completed(futures):
try:
# NOTE: faciliates early aborting via sigint
# TODO: make this logic available to all dump contexts
if self.controller.get_exit_event().is_set():
return
self.thread_man.increment_dialog()
res = future.result(timeout=API_TIMEOUT)
if res.status != 200 or not res.parsed:
self.thread_man.set_cleanup_func(
failure_func, destroy_first=True
)
return
j = res.json
if j is not None:
servers.extend(j["response"]["servers"])
except Exception as e:
logger.critical(e)
self.thread_man.set_cleanup_func(failure_func, destroy_first=True)
return
# NOTE: this step is allowed to fail, since this metadata is incidental
res = Servers.query_api(key, APPID_DAYZ_EXP, "")
if res.status == 200 and res.parsed is True:
j = res.json
if j is not None:
servers.extend(j["response"]["servers"])
parsed = Servers.parse_json(servers)
self._push_data(parsed)
@call_on_thread(dialog.scanning)
def dump_lan(self, port: int, early_abort: bool) -> None:
servers = []
ports = range(1, 256)
failure_func = StoredFunc(self._cleanup_on_failure)
event = threading.Event()
with ThreadPoolExecutor() as executor:
futures = [executor.submit(Servers.test_ip, i, port, event) for i in ports]
for future in as_completed(futures):
try:
if self.controller.get_exit_event().is_set():
return
res = future.result(timeout=LAN_TIMEOUT)
if res is None:
continue
if early_abort is True:
# NOTE: on first non-empty hit, flag pending threads to close
event.set()
servers.append(res)
self.thread_man.set_cleanup_func(
StoredFunc(self._cleanup_on_success)
)
return
servers.append(res)
except Exception as e:
logger.critical(e)
self.thread_man.set_cleanup_func(failure_func, destroy_first=True)
if len(servers) == 0:
self.thread_man.set_cleanup_func(failure_func, destroy_first=True)
return
parsed = Servers.parse_json(servers)
self._push_data(parsed)
@call_on_thread(dialog.fetching)
def _dump_ips(self, ips: list[str]) -> None:
job = Servers.query_direct
servers = []
with ThreadPoolExecutor() as executor:
futures = [
executor.submit(
job,
ip.split(":")[0],
int(ip.split(":")[2]),
)
for ip in ips
]
for future in as_completed(futures):
# TODO: wrap except
if self.controller.get_exit_event().is_set():
return
res = future.result(timeout=API_TIMEOUT)
self.thread_man.increment_dialog()
# NOTE: failing entries are culled
if res is None:
# TODO: log which servers failed
continue
servers.append(res)
if len(servers) == 0:
self.thread_man.set_cleanup_func(
StoredFunc(self._cleanup_on_failure), destroy_first=True
)
return
parsed = Servers.parse_json(servers)
self._push_data(parsed)
@call_on_thread(dialog.querying)
def add_by_id(self, _id: str) -> None:
config_man = self.controller.get_config_man()
key = config_man.lookup(Preferences.BM)
res = Servers.query_by_id(int(_id), key)
self._parse_single_record(res)
@call_on_thread(dialog.querying)
def add_by_ip(self, addr: str) -> None:
res = Servers.query_by_ip(addr)
self._parse_single_record(res)
@call_on_thread(dialog.querying)
def add_by_record(self, record: Servers.Record) -> None:
# NOTE: rationale: a raw Record as shown in server browser may resolve to a different IP
res = Servers.query_by_record(record)
self._parse_single_record(res)
@call_on_thread(dialog.querying)
def remove_by_record(self, record: Servers.Record) -> None:
res = Servers.query_by_record(record)
self._parse_single_record(res, delete=True)
def update_history(
self,
rows: (
list[tuple[str, str, str, str, int, int, int, str, int, int, str, bool]]
| None
) = None,
) -> None:
proxy_man = self._get_proxy_man()
config_man = self.controller.get_config_man()
if rows is not None:
records = rows
else:
control_model = proxy_man.get_control()
records = control_model
config_man.update_history_file(records)
config_man.update_history_file(records)
self._sort_unique_maps(records)
proxy = proxy_man.get_proxy_model()
self.tv.set_model(proxy)
self.emitter.emit("servers_loaded", self.enum)
filter_man = self.tv.get_filter_man()
maps = self._get_new_maps()
filter_man.set_unique_maps(maps)
self.first_iteration = False
self.emitter.emit("servers_loaded_init")
def add_to_history(self, record: dict[str, Any]) -> None:
proxy_man = self._get_proxy_man()
rows = Servers.parse_json([record])
try:
proxy_man.append_row_to_history(rows[0])
except Exception:
self.update_history(rows)
return
self.update_history()
def remove_from_history(self, record: Servers.Record) -> None:
proxy_man = self._get_proxy_man()
proxy_man.remove_row_from_control(record)
self.update_history()
def add_by_str(self, addr: str) -> None:
if addr.isdigit():
self.add_by_id(addr)
else:
self.add_by_ip(addr)
@call_on_thread(dialog.querying)
def update_playercount(
self, treeiter: Gtk.TreeIter, record: Servers.Record
) -> None:
res = Servers.query_playercount(record)
if res is None:
return
players, queue = res
self.playercount = NewPlayerCount(treeiter, players, queue)
self.thread_man.set_cleanup_func(StoredFunc(self._push_playercount))
def _push_playercount(self) -> None:
proxy_man = self._get_proxy_man()
proxy_man.update_playercount(self.playercount)
def _parse_single_record(self, response: "A2SInfo", delete: bool = False) -> None:
self.preserve_on_fail = True
try:
row = response.as_row()
except Exception as e:
logger.warning(e)
self.thread_man.set_cleanup_func(
StoredFunc(self._cleanup_on_failure), destroy_first=True
)
return
# NOTE: expected to only contain one item
records = Servers.parse_json([row])
server = records[0]
if server is None:
return
proxy_man = self._get_proxy_man()
config_man = self.controller.get_config_man()
fqip = Servers.response_to_fqip(row)
record = response.get_record()
# TODO: less convoluted
if delete:
# NOTE: abort early if Saved Servers tab was not loaded yet
config_man.remove_saved_server(fqip)
if proxy_man.has_control_model() is False:
self.thread_man.set_cleanup_func(
StoredFunc(self._cleanup_when_no_model)
)
return
proxy_man.remove_row_from_control(record)
else:
if config_man.is_in_favs(fqip):
func = StoredFunc(lambda: self.emitter.emit("already_saved_server"))
self.thread_man.set_cleanup_func(func)
return
config_man.add_saved_server(fqip)
# FIXME: this is valid if saved servers tab is already open,
# but not if app was just booted; causes single row to appear prematurely
if proxy_man.has_control_model() is False:
proxy_man.push(records)
else:
proxy_man.append_row_to_control(server)
control_model = proxy_man.get_control()
self._sort_unique_maps(control_model)
self.thread_man.set_cleanup_func(StoredFunc(self._cleanup_single_ip))
def _cleanup_when_no_model(self) -> None:
self.emitter.emit("saved_servers_changed")
def _dump_history(self) -> None:
history = self.controller.get_prefs().paths.history
try:
with open(history, "r") as f:
rows = [row.rstrip("\n") for row in f]
except OSError:
self.thread_man.set_cleanup_func(
StoredFunc(self._cleanup_on_failure, False), destroy_first=True
)
return
if len(rows) == 0:
# TODO: customize statusbar to mention how records are added after connecting
self.thread_man.set_cleanup_func(
StoredFunc(self._cleanup_on_failure, False), destroy_first=True
)
return
self.thread_man.set_job_count(len(rows))
self._dump_ips(rows)
def _dump_favorites(self) -> None:
config_man = self.controller.get_config_man()
ips = config_man.lookup(Preferences.IP_LIST)
self.thread_man.set_job_count(len(ips))
if len(ips) == 0:
# TODO: customize statusbar to mention how records can be added via contextmenu
self.thread_man.set_cleanup_func(
StoredFunc(self._cleanup_on_failure, False), destroy_first=True
)
return
self._dump_ips(ips)
def _cleanup_single_ip(self) -> None:
proxy = self._get_proxy_man().get_proxy_model()
self.tv.set_model(proxy)
self.emitter.emit("servers_loaded", self.enum)
filter_man = self.tv.get_filter_man()
# NOTE: maps are set outside of thread because it triggers map changed signals
maps = self._get_new_maps()
filter_man.set_unique_maps(maps)
self.first_iteration = False
self.emitter.emit("servers_loaded_init")
self.emitter.emit("saved_servers_changed")
def _update_maps(self) -> None:
filter_man = self.tv.get_filter_man()
filter_man.set_unique_maps(self._get_new_maps())
self.emitter.emit("servers_loaded_init")
self.first_iteration = False
def _cleanup_on_success(self) -> None:
proxy = self._get_proxy_man().get_proxy_model()
self.tv.set_model(proxy)
# TODO: servers_loaded vs servers_reloaded
self.emitter.emit("servers_loaded", self.enum)
if self.first_iteration:
self._update_maps()
def _cleanup_on_failure(self, show_dialog: bool = True) -> None:
# TODO: disable map, keyword, and filter widgets if model is None
# signal driven (servers_empty, servers_failed_to_load)
if self.preserve_on_fail is False:
self.tv.set_model(None)
filter_man = self.tv.get_filter_man()
filter_man.set_unique_maps([])
# TODO: distinguish signals, e.g. "servers_failed_to_load", "servers_loaded_empty"
# customize statusbar and dialog accordingly
if show_dialog:
dialog = ExceptionDialog(self.controller, api_warn_msg)
dialog.run()
def _push_data(self, data: list[Any]) -> None:
self._get_proxy_man().push(data)
self._sort_unique_maps(data)
self.thread_man.set_cleanup_func(StoredFunc(self._cleanup_on_success))
def _sort_unique_maps(self, data: list) -> None:
u_maps = set([row[1] for row in data])
self._set_new_maps(sorted(u_maps))
def _set_new_maps(self, maps: list[str]) -> None:
self.new_maps: list[str] = maps
def _get_new_maps(self) -> list[str]:
return self.new_maps
def _get_proxy_man(self) -> "ProxyModelManager":
return self.proxy_man
@call_on_thread(dialog.filtering)
def refilter(self, mode: FilterMode) -> None:
# FIXME: causes two wait dialogs when map selection change signal emits after loading servers
self.first_iteration = False
proxy_man = self._get_proxy_man()
proxy_man.filter(mode)
self.thread_man.set_cleanup_func(StoredFunc(self._cleanup_on_success))
-1
View File
@@ -1 +0,0 @@
all_ok = "All OK. Loading UI..."
-2
View File
@@ -1,2 +0,0 @@
workshop = "Steam Workshop"
workshop_tooltip = "Open your Workshop subscriptions"
-24
View File
@@ -1,24 +0,0 @@
add_button="Add"
add_con_heading="Add/connect"
add_popover = "This address is already in your Saved Servers"
add_tooltip="Add to Saved Servers"
connect_button="Connect"
connect_tooltip="Connect to this server"
connect_entry_tooltip=(
"- IP: format as IP:Query port\ne.g. 192.168.1.1:27016\n"
"- Battlemetrics: numeric server ID\ne.g. 123456"
)
connect_entry_placeholder="Enter IP (IP:Query port) or Battlemetrics ID (numerical id)"
fav_heading="Favorite server"
favs_empty="None set. Right click a server and select 'Set favorite' to set."
lan_heading="LAN query port"
lan_default_button="Default port (27016)"
lan_custom_button="Custom port"
lan_scan_button="Scan"
lan_abort_tooltip = "Unless you have multiple DayZ servers on your LAN,\nleave this checked to get results faster"
lan_checkbox = "Stop scanning on first hit"
lan_placeholder="Enter the query port (1-65535)"
lan_entry_tooltip="Specify the port to search for DayZ servers on the local network"
lan_scan_tooltip="Scan for servers"
-6
View File
@@ -1,6 +0,0 @@
waiting_for_launch = "Waiting for DayZ to launch"
waiting_for_mods = "Waiting for Steam to update mods"
fetching_update = "Fetching update"
failed_to_update = "Failed to update DZGUI executable"
update_success = "Updated successfully. Please exit and relaunch."
-5
View File
@@ -1,5 +0,0 @@
api_validation_error = (
"API key validation error. Key was typed incorrectly or is defunct."
)
api_popover = "API key validation failed."
-12
View File
@@ -1,12 +0,0 @@
developers = "Developers"
start_tab = "Start tab"
workshop_label = "Subscribed mods"
workshop_eventbox = "If you manually subscribed to mods on Steam prior to using DZGUI, you can unsubscribe via this link."
steam_combo = "Steam"
flatpak_combo = "Flatpak"
flatpak_container_combo = "Flatpak (container)"
server_combo = "Server browser"
saved_combo = "Saved servers"
recent_combo = "Recent"
lan_combo = "LAN"
-11
View File
@@ -1,11 +0,0 @@
update_mods = "Update mods and connect"
connect = "Connect"
back = "Back"
cancel = "Cancel"
warnings = "Warnings"
errors = "Errors"
mods = "Mods"
total_mods = "Total mods: "
all_updated = "All mods updated."
"If you recently installed {build} or moved it to a different drive, "
"restart Steam to allow these changes to synchronize, then try again."
-6
View File
@@ -1,6 +0,0 @@
mod = "Mod"
mod_id = "ID"
up_to_date = "Up to date"
modlist = "Modlist"
checkmark = "✓"
resync="⟳"
-70
View File
@@ -1,70 +0,0 @@
### IntroductionPage
title_intro = "Welcome"
blurb_intro = """
This wizard will help you set up some common config options before launching the application.
"""
### SteamPathPage
heading_steam_path = "Steam path"
blurb_steam_path = """
DZGUI needs to find the location to your default Steam installation.
This will be used to determine whether (and where) DayZ is installed.
"""
desc_default_path = "This is the default Steam path on <b>most distributions</b>."
desc_flatpak_path = (
"This is the default Steam path if you are using <b>Flatpak Steam</b>."
)
desc_ubuntu_path = "This is the default Steam path on <b>Ubuntu-based systems</b>."
desc_debian_path = "This is the default Steam path on <b>Debian-based systems</b>."
no_valid_paths = (
"No valid Steam paths found on system. Please install Steam to continue."
)
button_scan = "Scan for Steam"
### ConfigMigrationPage
heading_config = "Import files"
blurb_config = """
It looks like you have a DZGUI 6 configuration file on the system.\n
Would you like to import this into DZGUI 7, keeping your existing preferences?\n
In both cases, your DZGUI 6 file will persist separately from DZGUI 7.
"""
config_import_button = "Import DZGUI 6 config to DZGUI 7"
config_import_box = (
"Configuration data imported successfully. Proceed to the next step."
)
config_new_button = "Create new DZGUI 7 config from scratch"
config_new_box = "A new config file will be created. Proceed to the next step."
config_error_box = "Something went wrong while writing a new config file to the system."
### APIValidationPage
entry_placeholder = "Enter API key here"
api_success = "API key set successfully. Please proceed to the next step."
heading_steam_api = "Steam Web API key"
button_web_api = "Web API setup link"
blurb_steam_api = """
You must set up a Steam Web API key in order to browse the global server list.
\nIf you don't have one already, it can be set up via the page below.
\nPlease refer to the DZGUI documentation for more instructions.
"""
heading_bm_api = "Battlemetrics Web API key"
blurb_bm_api = """A Battlemetrics key is <b>optional</b>, but allows you to add/search for servers\n
by numeric ID on the web. For example, in the URL https://www.battlemetrics.net/servers/dayz/24819107,\n
the ID would be <b>24819107</b>.
"""
### PreferencesPage
heading_prefs = "User preferences"
blurb_prefs = """Here you can set up some basic settings. Additional preferences can be\n
configured via the Options menu once DZGUI launches.
"""
label_player = "Player name"
placeholder_player = "Set an in-game player name"
radio_km = "km (kilometers)"
radio_mi = "mi (miles)"
label_dist = "Distance display"
label_client = "Steam client"
### Completion page
heading_completion = "Setup complete"
blurb_completion = "Configuration completed successfully. Please exit and restart DZGUI to apply changes."
View File
Whitespace-only changes.
-22
View File
@@ -1,22 +0,0 @@
import json
from pathlib import Path
from typing import Any
def read_json(path: Path) -> Any:
try:
with open(path, "r") as infile:
try:
data = json.load(infile)
return data
except json.decoder.JSONDecodeError as e:
raise e
except OSError as e:
raise e
def write_json(data: dict, path: Path) -> None:
try:
j = json.dumps(data, indent=2)
path.write_text(j)
except Exception as e:
raise e
-5
View File
@@ -1,5 +0,0 @@
import shlex
def concat_bash_args(command: str) -> list[str]:
return shlex.split(command)
-10
View File
@@ -1,10 +0,0 @@
import gi
gi.require_version("Gtk", "3.0")
gi.require_version("Gdk", "3.0")
from gi.repository import Gtk, Gdk # noqa E402
def copy_clipboard(text: str) -> None:
clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
clipboard.set_text(text, -1)
Loaded 100 of 209 files, more files were not shown because too many files have changed in this diff. Show more