Compare commits

..
1498 Commits
Author SHA1 Message Date
aclist b2f6abd667 Merge pull request #276 from aclist/chore/update-readme
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
chore: update readme
2026-03-30 20:56:32 +09:00
aclist f76985c79d chore: reword readme 2026-03-30 20:14:45 +09:00
aclist 3d3cd19892 chore: update readme 2026-03-30 20:13:20 +09:00
aclist c14fb10d23 Merge pull request #270 from aclist/prerelease/6.0.2
Mirror to Codeberg / mirror-to-codeberg (push) Has been cancelled
fix: dialogs in thread
2026-01-26 18:25:52 +09:00
aclist a8417d27d7 fix: dialogs in thread 2026-01-26 17:00:55 +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 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 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 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
275 changed files with 8518 additions and 21769 deletions

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ jobs:
mirror-to-codeberg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
+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
+19 -135
View File
@@ -1,138 +1,22 @@
# Changelog
## [7.0.0] Unreleased
### Added
- Setup wizard
- Uninstall wizard
- Descriptive details panel to certain error dialogs
- 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
- Unset favorite server button
- 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
- Save filters per server context between sessions
- Preboot progress dialog
- Choose to jump into splash screen instead of server
- Collapsible connection panel
- Play offline (load mods directly)
- Generate Steam shortcuts and cover art
- Warn user if background downloads are disabled
- Dynamic copy button
- Update map count (-u flag)
- Filter button tooltips
- Expand/collapse changelog versions
- Support local light/dark mode changes on system theme
- Server time calculator
### Changed
- Conform to PEP 440 versioning for beta versions
- Enforce fullscreen mode on Steam Deck
- Reduce padding on keys button
- Boldface breadcrumbs
- Changed some dialog error messages from popups to popovers
- Changed how filter buttons are packed in sidebar
- 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
- Reduce size of geolocation DB on disk (~100MB)
- Enable LAN page Empty/Full filters on first run of app
- Propagate subscribed mods to Steam client
- Make j/k keys in context menus follow same wraparound logic as down arrow/up arrow
### Dropped
- Battlemetrics API support
- Unused metadata from system log files
- 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
- In-game time field missing certain ranges of time at night
- Wrap long entries in changelog
- Certain server descriptions with special characters not rendering correctly
- Center server title text on server dialogs
- Rare segfaults when changing maps (threading)
- Moved dialogs out of threads
- History table not being in lock-step with state file
- Current keyword filter not being applied when refreshing table
### Unreleased
- Load offline mods
- Local documentation
- Raw debug command in context menu
### Developer-facing
- Add pyproject.toml file
- Show deprecation warnings
- Options -> Dev page
## [6.0.5] 2026-05-17
### Changed
- Update symlink hash logic to align with DZGUI 7 beta
- Update A2S helper to latest commit
## [6.0.4] 2026-04-13
### Fixed
- Update A2S module checksums to support servers with missing description field
## [6.0.3] 2026-04-12
### Fixed
- Use GLibUnix namespace where available when setting up SIGINT callback
## [6.0.2] 2026-01-26
### Fixed
## Fixed
- Explicitly use Python 3.13 when calling subprocesses
- Raise error correctly from module
- Do not spawn dialogs from inside of thread when fetching prereqs
### Changed
## Changed
- Optimize time complexity of startup checks
- Optimize coordinate calculation by using local records first
- Rename some internal functions
- Wrap entire startup process in dialog
## [6.0.1] 2026-01-16
### Fixed
## Fixed
- Explicitly use Python 3.13 when calling subprocesses
## [6.0.0] 2026-01-14
### Added
## Added
- Support DayZ Experimental
- Ping display on server tables
- Save descriptive text notes on a per-server basis
@@ -158,7 +42,7 @@
- Commandline usage help text (GaryBlackbourne)
- More descriptive help dialogs when initial dependencies are missing
### Fixed
## Fixed
- Script failing to start when remote endpoints are unavailable (GaryBlackbourne)
- Key stickiness when quickly navigating through entries in tables
- Servers returning malformed A2S_INFO blocking server browser from loading
@@ -197,7 +81,7 @@
- Path discovery during first-time setup when parsing filepaths with whitespaces
- First-time setup dialog continuously triggering when DayZ install path had whitespaces in it
### Changed
## Changed
- Require Python 3.13
- Reduced global API cooldown from 60s to 30s
- Clarify dialog messages when DayZ path could not be found
@@ -209,50 +93,50 @@
- Rewrote distance calculation module (GaryBlackbourne)
- Changed preferred client setting from radio toggle to combobox
### Dropped
## Dropped
- Ping readout in statusbar
- Extraneous information from right statusbar
## [5.8.3] 2026-01-04
### Fixed
## Fixed
- Normalize checksum numbers and dates
## [5.8.2] 2026-01-04
### Fixed
## Fixed
- Fix regression in symlink routine introduced by previous hotfix
## [5.8.1] 2025-12-27
### Fixed
## Fixed
- Path discovery during first-time setup when parsing filepaths with whitespaces
- First-time setup dialog continuously triggering when DayZ install path had whitespaces in it
## [5.8.0] 2025-07-06
### Added
## Added
- Filter servers by official/unofficial status
- Automatically fetch geolocation records
### Changed
## Changed
- Updated internal versioning of helper files
### Fixed
## Fixed
- Corrected erroneous 2024 date in prior changelog entries
## [5.7.0] 2025-04-17
### Added
## Added
- Save application dimensions when quitting and restore on subsequent boot
### Fixed
## Fixed
- Issues with the window exceeding the bounds of the screen when displaying some table contexts
### Changed
## Changed
- More direct server ping query method that should return marginally more accurate times
## [5.6.7] 2025-04-04
### Dropped
## Dropped
- Removed extraneous pre-boot API checks that could cause error messages to be printed if the user had not set up an API key yet
## [5.6.6] 2025-03-16
### Changed
## Changed
- Update IP database records for 2025-03
## [5.6.5] 2025-03-04
### Fixed
## Fixed
- Livonia server results being dropped from batch queries
## [5.6.4] 2025-02-10
+12 -14
View File
@@ -8,7 +8,7 @@ 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/dztui/issues) under the
(issue tracker)[https://github.com/aclist/dzgui-devel/issues] under the
`troubleshooting` tag.
# How can I help the project?
@@ -24,7 +24,7 @@ accordingly.
## Submitting a ticket
Navigate to the GitHub [issue tracker](https://github.com/aclist/dztui/issues).
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?
@@ -46,10 +46,14 @@ but we will do our best to support as many cool ideas as possible.
## Contributing code or documentation
If you would like to assist with an issue on the issue tracker or
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 the `dzgui7` (development) branch.
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
@@ -57,17 +61,11 @@ The following naming conventions apply for PRs:
- doc/<your-doc-branch> - documentation branches
- infra/<your-infra-branch> - infrastructure branches
Implement your changes and test them locally. If they work, you may
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 `dzgui7`. After sufficient changes are consolidated into a new release,
this branch will be tagged to a certain point in time and a binary release published.
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
(Conventional Commits)[https://www.conventionalcommits.org/en/v1.0.0/], as this
integrates well with tooling and helps the project review your code.
Please see DEVELOPERS.md for further details.
## License applicability to contributions
Code contributed to this repository becomes subject to the terms of the GPL license defined in the LICENSE file at the project root.
-30
View File
@@ -1,30 +0,0 @@
# TODO: link to here from sphinx docs
## Installing from source
### Fetch submodules
git submodule update --recursive --init
### Install with dev dependencies
uv pip install -e '.[dev]'
This includes all dependencies for building, linting, testing, and checking in code.
If you optionally want to install only a subset of dev tools, replace 'dev' with the following flag:
build: package release deps
docs: documentation tools
lint: code linting, fixing, and type checking
test: unit and integration tests
## Miscellaneous
### Setting up precommit hooks
pre-commit install
### Building documentation
sphinx-build -M html source build -a
### Building standalone release binaries
1. Set up the build target: `rustup target add x86_64-unknown-linux-musl`
2. Run `python3 scripts/release.py`
3. Generate a release and tag against the resulting tarfile generated in `dist`
+10 -16
View File
@@ -1,14 +1,15 @@
## What this is
DZGUI is a turnkey server 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 and delete local mods
- And more
- 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
@@ -21,20 +22,13 @@ DZGUI follows a specific set of guidelines, enumerated below:
## 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](/dzgui/data/images/example.png)
![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/)
Executable versions of DZGUI published as release binaries ship with various runtime dependencies and the Python interpreter built in.
Users wishing to review the licenses to these components can inspect the `LICENSE` file located in the release tarball.
## 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>.
-502
View File
@@ -1,502 +0,0 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
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 this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
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
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser 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 Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "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
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY 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
LIBRARY (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 LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey 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 library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!
-48
View File
@@ -1,48 +0,0 @@
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
--------------------------------------------
1. This LICENSE AGREEMENT is between the Python Software Foundation
("PSF"), and the Individual or Organization ("Licensee") accessing and
otherwise using this software ("Python") in source or binary form and
its associated documentation.
2. Subject to the terms and conditions of this License Agreement, PSF
hereby grants Licensee a nonexclusive, royalty-free, world-wide
license to reproduce, analyze, test, perform and/or display publicly,
prepare derivative works, distribute, and otherwise use Python
alone or in any derivative version, provided, however, that PSF's
License Agreement and PSF's notice of copyright, i.e., "Copyright (c)
2001, 2002, 2003, 2004 Python Software Foundation; All Rights Reserved"
are retained in Python alone or in any derivative version prepared
by Licensee.
3. In the event Licensee prepares a derivative work that is based on
or incorporates Python or any part thereof, and wants to make
the derivative work available to others as provided herein, then
Licensee hereby agrees to include in any such work a brief summary of
the changes made to Python.
4. PSF is making Python available to Licensee on an "AS IS"
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
6. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.
7. Nothing in this License Agreement shall be deemed to create any
relationship of agency, partnership, or joint venture between PSF and
Licensee. This License Agreement does not grant permission to use PSF
trademarks or trade name in a trademark sense to endorse or promote
products or services of Licensee, or any third party.
8. By copying, installing or otherwise using Python, Licensee
agrees to be bound by the terms and conditions of this License
Agreement.
-21
View File
@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2022 Gabriel Huber
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-176
View File
@@ -1,176 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
-29
View File
@@ -1,29 +0,0 @@
BSD 3-Clause License
Copyright (c) 2009, Jay Loden, Dave Daeschler, Giampaolo Rodola
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the psutil authors nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-21
View File
@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2020 Gabriel Huber
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-175
View File
@@ -1,175 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
-19
View File
@@ -1,19 +0,0 @@
Copyright (c) 2015 Rossen Georgiev <rossen@rgp.io>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-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 = "6.x.x - 7.x.x"
version = "6.x.x - 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.
-110
View File
@@ -1,110 +0,0 @@
Installation (DZGUI 6 legacy)
==================
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 :doc:`setup` section for setup instructions.
-33
View File
@@ -1,33 +0,0 @@
Installation (DZGUI 7 beta)
==================
In order to make the first-time setup experience easier for end-users, DZGUI 7 no longer requires
the tool to be installed from source code into a working Python environment. All necessary dependencies and the
runtime environment are built-in.
Turnkey installer
------------------------
- Visit the project's `Releases page <https://github.com/aclist/dztui/releases/latest>`_.
- Extract the DZGUI tarball from the top of the **Assets** list.
- From a terminal, run the command ``./dzgui`` or double click on the extracted file in
a file explorer.
- Once the setup wizard opens, follow the steps at the bottom of this page.
UI dependencies (Python and PyGObject)
---------------------------------------
On most major distributions, GObject introspection libraries should be available by default.
If you receive an error about a missing ``libgirepository-2.0`` dependency, install it via your system's package manager.
On Debian-based distributions (Ubuntu, etc.), this package is not explicitly installed on the system.
You can install it via the following set of commands:
.. code:: console
sudo apt update
sudo apt install libgirepository-2.0-0
Next steps
---------------
Proceed to the :doc:`setup` section for setup instructions.
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
-28
View File
@@ -1,28 +0,0 @@
Installation
==================
As of this writing, you have a choice of two DZGUI versions:
- DZGUI 6: Legacy stable version, more complicated to install
- DZGUI 7: Unstable beta version, much easier to install
DZGUI 6
--------------------
This version is no longer receiving feature updates, but will receive security updates until it is replaced by DZGUI 7.
DZGUI 6 must be installed from the source code and has many more package dependencies and prerequisites for it to function correctly.
If you are looking for a one-click, self-contained installer, use :ref:`DZGUI 7` instead.
To install **DZGUI 6**, visit :doc:`dzgui6`.
DZGUI 7
--------------------
This version is currently in beta testing and has all of the features found in DZGUI 6, but may be unstable.
DZGUI 7 has an all-in-one installer and setup wizard, and many new features not found in DZGUI 6.
However, this codebase is newer and is provided as a pre-release beta candidate.
If you want the simplest installer and don't mind experiencing the occasional bug, use this version.
To install **DZGUI 7**, visit :doc:`dzgui7`.
-112
View File
@@ -1,112 +0,0 @@
Knowledge Base
==================
.. _DZG-001:
DZG-001: Timeouts occur while trying to query a specific server
------------------------------------------------------------------------------------
The leading cause of specific servers periodically timing out is local network configuration.
Many third-party DayZ servers use a server rental/hosting provider with DDoS protection.
This can cause responses from servers to originate from a server other than the one originally queried.
Consumer-grade routers are likely to drop this traffic as invalid due to how they handle NAT (network address translation).
By contrast, wireless routers and enterprise-grade routers may be less likely to have this issue.
If you find that a specific server is unresponsive for you when it shouldn't be, add a port forwarding rule to your router's settings for
the server's query port.
In addition, a uniform packet size is expected. If your router's MTU setting differs from the default of 1,500,
it could lead to incoming responses being discarded (see warning below).
.. important::
Ensure that MTU (maximum tranmission unit) on your network is set to the standard size of 1,500 bytes.
If your network preferences or router have "jumbo" frames enabled, packets may be dropped, causing server queries to time out.
.. _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.
DZG-008: Periodically getting dropped from servers while connected
-------------------------------------------------------------------
In some cases, DayZ opens a large number of connections while connected to servers.
If your network does not have enough headroom or has settings departing from defaults, this may lead to getting dropped from servers,
unresponsiveness, or a timeout.
If you are on Wi-Fi, try switching to a wired connection and see if the problem resolves itself. Consumer Wi-Fi routers
tend to have less headroom for simultaneous connections than their wired counterparts.
DZG-009: Floating dialogs appear maximized on tiling window managers
-------------------------------------------------------------------
The main DZGUI window and its child dialogs are expected to be rendered as floating by your window manager.
DZGUI sends window manager hints to this effect, but tiling window managers designed to bisect the screen into quadrants (e.g., i3 window manager)
may try to always launch applications in fullscreen.
To resolve this, set specific exclusions or window hints in your WM's configuration file.
For example, for i3, add the following to your `XDG_CONFIG_HOME/i3/config` file (defaults to `$HOME/.config/i3/config`):
.. code:: console
for_window [instance="DZGUI"] floating enable, move position center
for_window [instance="DZGUI - Dialog"] floating enable, move position center
-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.
-43
View File
@@ -1,43 +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
^^^^^^^^^^^^^^^^^^^^^^
.. warning::
This feature is no longer supported in DZGUI. Battlemetrics has switched to a paid service.
Battlemetrics queries are expected to fail in DZGUI 6. In DZGUI 7, this feature has been removed entirely.
Next steps
--------------
Proceed to the next section for usage instructions.
-94
View File
@@ -1,94 +0,0 @@
Steam integration
====================
.. note::
In :doc:`DZGUI 7 <dzgui7>`, Steam shortcut creation and cover art setup are handled automatically during setup. You can skip this step unless you are using DZGUI 6.
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``
-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
Executable
+1262
View File
File diff suppressed because it is too large. Load diff
View File
Whitespace-only changes.
View File
Whitespace-only changes.
-119
View File
@@ -1,119 +0,0 @@
import logging
import re
from collections.abc import Iterator
from pathlib import Path
from typing import Any
from warnings import deprecated
from dzgui.const.constants import APP_NAME
logger = logging.getLogger(APP_NAME)
class ACF:
def __init__(self, file: Path) -> None:
super().__init__()
self.dict: dict[str, Any]
self.load(file)
def as_dict(self) -> dict[str, Any]:
return self.dict
def load(self, file: Path) -> None:
delimiter = r"\t\t"
lines = []
# TODO: illegal file handling
with open(file, "r", encoding="utf-8") as f:
for line in f:
line = line.strip()
if not line:
continue
els = re.split(delimiter, line, maxsplit=1)
lines.append(els)
self.dict = self.parse(iter(lines))
@classmethod
def enquote(cls, s: str) -> str:
return f'"{s}"'
@classmethod
def dequote(cls, s: str) -> str:
return s.rstrip('"').lstrip('"')
def parse(self, lines: Iterator[list[str]]) -> dict[str, str]:
acf: dict[str, Any] = {}
try:
while True:
line = next(lines)
if len(line) == 1:
key = line[0]
if key == "{":
continue
return acf
elif key == "}":
return acf
else:
key = self.dequote(key)
acf[key] = self.parse(lines)
elif len(line) == 2:
k, v = line
k = self.dequote(k)
v = self.dequote(v)
try:
n = list(acf.keys())[-1]
acf[n][k] = v
except Exception:
acf[k] = v
except StopIteration:
return acf
def get_allows_downloads(self) -> int | None:
try:
# TODO: consider coercing strs to ints on initial import
flag = int(self.dict["AppState"]["AllowOtherDownloadsWhileRunning"])
return flag
except Exception as e:
logger.critical(e)
return None
@deprecated(
"Serializing workshop files is no longer supported, use dzgui.api.steam.unsubscribe"
)
class WorkshopACF(ACF):
def __init__(self, file: Path) -> None:
super().__init__(file)
def unpack(self, d: dict, lines: list[Any] = []) -> str:
t1 = "AppWorkshop"
t2 = ("WorkshopItemsInstalled", "WorkshopItemDetails")
for k, v in d.items():
if type(v) is dict:
if k in t1:
self.indent = 0
elif k in t2:
self.indent = 1
else:
self.indent = 2
pref = "\t" * self.indent
lines.append(pref + self.enquote(k))
lines.append(pref + "{")
self.unpack(v, lines)
lines.append(pref + "}")
else:
pref = "\t" * (self.indent + 1)
lines.append(pref + self.enquote(k) + "\t\t" + self.enquote(v))
s = ""
for line in lines:
s += line + "\n"
return s
def to_file(self, file: Path) -> None:
s = self.unpack(self.dict)
file.write_text(s)
def delete(self, modid: int) -> None:
del self.dict["AppWorkshop"]["WorkshopItemsInstalled"][modid]
del self.dict["AppWorkshop"]["WorkshopItemDetails"][modid]
-223
View File
@@ -1,223 +0,0 @@
import hashlib
import logging
import re
from concurrent.futures import wait
from concurrent.futures import ThreadPoolExecutor
from dataclasses import dataclass
from pathlib import Path
from dzgui.api.steam import get_app_path
from dzgui.api.servers import get_rules, fqip_to_record
from dzgui.const.constants import (
APP_NAME,
APPID_DAYZ,
DAYZ_COMMUNITY_ROOT,
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 = get_app_path(steam_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 is_mission(path: Path) -> bool:
# TODO: parse integrity of other files
parent = path.parent.name
if parent != DAYZ_COMMUNITY_ROOT:
return False
file = path / "init.c"
return file.exists()
def tokenize(mod: Path) -> dict[str, Any] | None:
file = mod.joinpath("meta.cpp")
delimiter = r"\s*=\s*"
modmeta = {}
try:
with open(file, "r", encoding="utf-8") as f:
for line in f:
line = line.strip().rstrip(";")
if not line:
continue
els = re.split(delimiter, line, maxsplit=1)
if len(els) == 2:
key, value = els
modmeta[key.strip()] = value.strip('"')
return modmeta
except Exception as e:
logger.critical(e)
return None
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_custom_mods(path: Path) -> list[Any]:
# TODO: rename this function for clarity ("get local vs. get custom")
mods = get_local_mods(path)
# TODO: error handling
return parse_mods(mods, use_custom=True)
def parse_mods(mods: list[Path], use_custom: bool = False) -> list[Any]:
clean = []
for mod in mods:
mod_dir = mod.name
symlink = _hash(mod_dir, use_custom)
meta = tokenize(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_delimited_mods(steam_path: Path) -> list[Any]:
workshop_path = get_local_mod_path(steam_path)
mods = get_local_mods(workshop_path)
return parse_mods(mods)
def get_missing_mods(local: list, remote: list) -> list:
return [mod for mod in remote if mod not in local]
def _hash(uid: str, use_custom: bool = False) -> str:
md5 = hashlib.md5()
md5.update(uid.encode("ascii"))
prefix = "@C" if use_custom else "@"
return prefix + md5.hexdigest()[:8]
def remove_stale_signatures(
config: Path, versions: Path, ids: list[int] | None = None
) -> 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)
if ids is None:
local_ids = get_local_mod_ids(steam_path)
with open(versions, "r") as f:
lines = f.readlines()
if ids is None:
lines = [line for line in lines if int(line.split(",")[0]) in local_ids]
else:
lines = [line for line in lines if int(line.split(",")[0]) not in ids]
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")
-48
View File
@@ -1,48 +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 is_remote_up(res: "Response") -> bool:
if res.status_code == 200:
return True
else:
return False
-197
View File
@@ -1,197 +0,0 @@
import binascii
import ctypes
import logging
import shutil
import vdf # type: ignore
from dataclasses import dataclass
from importlib import resources
from pathlib import Path
from typing import Any
from dzgui.api.steam import find_user_id_32
from dzgui.const.constants import APP_NAME, APP_NAME_LOWER, IMAGES_PATH
from dzgui.util.dirs import copy_dzgui_to_xdg_data
from dzgui.util.strings import unknown
logger = logging.getLogger(APP_NAME)
@dataclass(slots=True, frozen=True)
class ShortcutMetadata:
appname: str
appid: int
exe_path: str
start_dir: str
icon: str
class Shortcuts:
def __init__(self, steam_path: Path) -> None:
self.user_config_path: Path
self.shortcuts_path = self.find_shortcuts_path(steam_path)
self._load_shortcuts(self.shortcuts_path)
@classmethod
def gen_bpid(cls, uid: str) -> int:
u = uid.encode()
encoded = binascii.crc32(u)
return encoded | 0x80000000
@classmethod
def gen_signed_appid(cls, appid: int) -> int:
return ctypes.c_int(appid).value
@classmethod
def gen_exe_uid(cls, appname: str, exe: Path) -> str:
wrapped_exe = f'"{exe}"'
return appname + wrapped_exe
def find_appname_by_unsigned_id(self, appid: int) -> str:
# NOTE: bitmask signed int back to 32-bit CRC
# varying client versions treat case sensitivity differently
try:
for key in self.shortcuts["shortcuts"].keys():
if self.shortcuts["shortcuts"][key]["appid"] & 0xFFFFFFFF == appid:
try:
return str(self.shortcuts["shortcuts"][key]["appname"])
except Exception as e:
logger.debug(e)
try:
return str(self.shortcuts["shortcuts"][key]["AppName"])
except Exception as e:
logger.debug(e)
return unknown
except Exception as e:
logger.debug(e)
return unknown
def get_shortcuts(self) -> Any:
return self.shortcuts
def _load_shortcuts(self, path: Path) -> None:
try:
with open(path, "rb") as f:
shortcuts = vdf.binary_load(f)
self.shortcuts = shortcuts
logger.debug("Loaded shortcuts file")
except Exception as e:
logger.critical(e)
raise e
def find_shortcuts_path(self, steam_path: Path) -> Path:
uid = find_user_id_32(steam_path)
self.user_config_path = steam_path.joinpath(f"userdata/{uid}/config")
return self.user_config_path.joinpath("shortcuts.vdf")
def add_shortcut(
self, appname: str, start_dir: Path, exe_path: Path, icon: Path
) -> None:
uid = self.gen_exe_uid(appname, exe_path)
self.bpid = self.gen_bpid(uid)
self.signed_appid = self.gen_signed_appid(self.bpid)
meta = ShortcutMetadata(
appname, self.signed_appid, str(exe_path), str(start_dir), str(icon)
)
entry = self._create_entry(meta)
self._insert_at_last_index(entry)
def add_grid_images(self, images: Path) -> None:
"""
{BPID}_hero.png: hero (splash)
{BPID}p.ping: portrait boxart in library
{BPID}_logo.png: logo overlay on top of hero
{BPID}.png: legacy Big Picture/landscape image
"""
grid_path = self.user_config_path.joinpath("grid")
for img in ("_hero", "p", "_logo"):
filename = str(self.bpid) + img
dest = grid_path.joinpath(filename).with_suffix(".png")
b = images.joinpath(img).with_suffix(".png").read_bytes()
dest.write_bytes(b)
# NOTE: legacy Big Picture header
b = images.joinpath("_hero.png").read_bytes()
dest = grid_path.joinpath(str(self.bpid)).with_suffix(".png")
dest.write_bytes(b)
def _insert_at_last_index(self, entry: dict[str, Any]) -> None:
try:
last = list(self.shortcuts["shortcuts"].keys())[-1]
n = int(last) + 1
except Exception:
n = 0
self.shortcuts["shortcuts"][str(n)] = entry
@classmethod
def _create_entry(cls, meta: ShortcutMetadata) -> dict[str, Any]:
"""
https://developer.valvesoftware.com/wiki/Add_Non-Steam_Game
https://developer.valvesoftware.com/wiki/Steam_Library_Shortcuts
Key case is not internally consistent and varies between client versions
Most keys use Pascal case, but some do not
appid: signed int CRC
Exe: absolute path to the executable, must be wrapped in literal quotes
StartDir: directory the executable starts in, generally the parent
"""
NEW_ENTRY: dict[str, Any] = {}
NEW_ENTRY["appid"] = meta.appid
NEW_ENTRY["AppName"] = meta.appname
NEW_ENTRY["Exe"] = f'"{meta.exe_path}"'
NEW_ENTRY["StartDir"] = f"{meta.start_dir}"
NEW_ENTRY["icon"] = meta.icon
NEW_ENTRY["ShortcutPath"] = ""
NEW_ENTRY["LaunchOptions"] = ""
NEW_ENTRY["IsHidden"] = 0
NEW_ENTRY["AllowDesktopConfig"] = 1
NEW_ENTRY["AllowOverlay"] = 1
NEW_ENTRY["OpenVR"] = 0
NEW_ENTRY["Devkit"] = 0
NEW_ENTRY["DevkitGameID"] = ""
NEW_ENTRY["DevkitOverrideAppID"] = 0
NEW_ENTRY["LastPlayTime"] = 0
NEW_ENTRY["FlatpakAppID"] = ""
NEW_ENTRY["sortas"] = ""
NEW_ENTRY["tags"] = {}
return NEW_ENTRY
def delete_shortcut(self, start_path: Path) -> None:
shortcuts = self.shortcuts["shortcuts"]
for s in shortcuts:
if shortcuts[s]["StartDir"] == str(start_path):
del shortcuts[s]
break
self.save_shortcuts()
def save_shortcuts(self) -> None:
try:
backup = self.shortcuts_path.with_suffix(".vdf.bak")
shutil.copy(self.shortcuts_path, backup)
with open(self.shortcuts_path, "wb") as f:
vdf.binary_dump(self.shortcuts, f)
except Exception as e:
logger.critical(e)
def add_steam_shortcut(steam_path: Path, exe_path: Path) -> None:
try:
start_dir = exe_path.parent
traversable = resources.files(APP_NAME_LOWER).joinpath(IMAGES_PATH)
images = Path(str(traversable))
icon = images.joinpath("icon.png")
shortcuts = Shortcuts(Path(steam_path))
shortcuts.add_shortcut(APP_NAME, start_dir, exe_path, icon)
shortcuts.save_shortcuts()
shortcuts.add_grid_images(images)
copy_dzgui_to_xdg_data(exe_path)
logger.debug("Finished creating Steam shortcut")
except Exception as e:
logger.critical(e)
-478
View File
@@ -1,478 +0,0 @@
import logging
import os
import psutil
import requests
import subprocess
import vdf # type: ignore
from pathlib import Path
from requests.exceptions import HTTPError
from typing import Any, Union
from warnings import deprecated
from dzgui.api.acf import ACF
from dzgui.init.prereqs import has_steam_client
from dzgui.const.constants import (
APPID_DAYZ,
APPID_DAYZ_EXP,
APP_NAME,
DAYZ_BINARY,
DAYZ_LAUNCHER,
DEBIAN_STEAM_PATH,
DEFAULT_STEAM_PATH,
FLATPAK_STEAM_PATH,
LIBRARYFOLDERS_PATH,
UBUNTU_STEAM_PATH,
REQUEST_TIMEOUT,
VDF_PATH,
)
from dzgui.const.endpoints import (
APP_DETAILS,
SUB_ENDPOINT,
STEAM_PUBLISHED_FILES,
UNSUB_ENDPOINT,
)
from dzgui.strings import wizard
from dzgui.strings.errors import api_validation_error, workshop_endpoint_error
from dzgui.util.bash import concat_bash_args
logger = logging.getLogger(APP_NAME)
class AppNotInstalledError(Exception):
"""App not present in user's libraryfolders"""
pass
class AppMovedError(Exception):
"""VDF points to a nonexistent location on disk"""
pass
class VDFLoadError(Exception):
"""Malformed VDF or JSON conversion"""
pass
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:
# TODO: circular import workaround
from dzgui.api.mods 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]
mod_hash = int(data[1])
hashes[_id] = mod_hash
return hashes
def get_needs_update(
version_file: Path, remote_hashes: list[tuple[str, str, int, int]]
) -> list[tuple[str, str, int, int]]:
local_stamps = get_local_signatures(version_file)
needs_update: list[tuple[str, str, int, int]] = []
for title, _id, stamp, size in remote_hashes:
if _id not in local_stamps:
needs_update.append((title, _id, stamp, size))
elif stamp != local_stamps[_id]:
needs_update.append((title, _id, stamp, 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:
# NOTE: not a valid published file
if row["result"] == 9:
continue
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
def connect_debug(
client: str, addr: str, appid: int, name: str, mods: list[str]
) -> str:
concat = concat_mods(mods)
client_args = concat_bash_args(client)
params = [
"-applaunch",
str(appid),
f"-connect={addr}",
"-nolauncher",
"-nosplash",
"-skipintro",
f"-name={name}",
f"-mod={concat}",
]
client_args.extend(params)
return " ".join(client_args)
# 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 load_to_menu(client: str, appid: int, name: str, mods: list[str]) -> int:
"""Loads to the menu screen with the selected mods; used for AFK/pre-joining"""
concat = concat_mods(mods)
client_args = concat_bash_args(client)
params = [
"-applaunch",
str(appid),
"-nolauncher",
"-nosplash",
"-skipintro",
f"-name={name}",
f"-mod={concat}",
]
proc = subprocess.run([*client_args, *params])
return proc.returncode
def launch_offline(
client: str, appid: int, name: str, mods: list[str], mission: str
) -> int:
"""Launch offline with specific mods/missions"""
symlinks = ";".join(mods)
client_args = concat_bash_args(client)
params = [
"-applaunch",
str(appid),
"-nolauncher",
"-nosplash",
"-skipintro",
f"-name={name}",
f"-mod={symlinks}",
]
if len(mission) > 0:
arg = f"-mission={mission}"
params.append(arg)
proc = subprocess.run([*client_args, *params])
return proc.returncode
def find_loginusers(path: Path) -> Path:
return path / "config" / "loginusers.vdf"
def find_user_id(path: Path) -> str | None:
resolved_path = find_loginusers(path)
try:
with open(resolved_path, "r") as f:
v = vdf.load(f)
users = v["users"]
# NOTE: beta client: /package/beta
last_user = str(next(iter(users)))
if len(users) == 1:
return last_user
last_stamp = int(users[last_user]["Timestamp"])
for user in users:
stamp = int(users[user]["Timestamp"])
if stamp > last_stamp:
last_stamp = stamp
last_user = user
return last_user
except Exception as e:
logger.debug(e)
return None
def find_user_id_32(path: Path) -> int:
uid = find_user_id(path)
if uid is None:
raise ValueError("Failed to parse a valid Steam32 ID")
return int(uid) & 0xFFFFFFFF
class SteamAPIKeyError(Exception):
def __init__(self, msg: str | None = None):
super().__init__(msg or api_validation_error)
class SteamWorkshopEndpointError(Exception):
def __init__(self, msg: str | None = None):
super().__init__(msg or workshop_endpoint_error)
def update_workshop(key: str, mod: int, endpoint: str) -> None:
payload: dict[str, Union[int, str]] = {
"publishedfileid": mod,
"appid": APPID_DAYZ,
"key": key,
"list_type": 1,
"notify_client": 1,
}
try:
res = requests.post(endpoint, params=payload, timeout=REQUEST_TIMEOUT)
res.raise_for_status()
except HTTPError as e:
logger.critical(e)
match res.status_code:
case 403:
raise SteamAPIKeyError()
case 404:
raise SteamWorkshopEndpointError()
case _:
# TODO: apply redaction filter
raise e
except Exception as e:
logger.critical(e)
raise e
def subscribe(key: str, mod: int) -> None:
update_workshop(key, mod, SUB_ENDPOINT)
def unsubscribe(key: str, mod: int) -> None:
update_workshop(key, mod, UNSUB_ENDPOINT)
@deprecated("Use subscribe()")
def enqueue_mod(client: str, mod: str, appid: int) -> None:
client_args = concat_bash_args(client)
subprocess.Popen([*client_args, "+workshop_download_item", str(appid), mod])
@deprecated("Cf. https://github.com/ValveSoftware/steam-for-linux/issues/9672")
def get_registry() -> Any | None:
home = os.getenv("HOME")
try:
with open(f"{home}/.steam/registry.vdf") as f:
registry = vdf.load(f)
return registry
except Exception as e:
logger.critical(e)
return None
def _is_dayz_running() -> bool:
registry = get_registry()
if registry is None:
return False
apps = registry["Registry"]["HKCU"]["Software"]["Valve"]["Steam"]["apps"].items()
for app in apps:
k, v = app
if k in (APPID_DAYZ, APPID_DAYZ_EXP):
try:
state = v["Running"]
# NOTE: 0 denotes False
return bool(int(state))
except Exception as e:
logger.critical(e)
return False
return False
def _get_running_app() -> int | None:
registry = get_registry()
if registry is None:
return None
try:
return int(
registry["Registry"]["HKCU"]["Software"]["Valve"]["Steam"]["RunningAppID"]
)
except Exception:
return None
def get_running_app() -> int | None:
PROC_NAME = "steam"
SUBPROC_NAME = "reaper"
FLAG = "AppId"
# NOTE: may cause conflicts if multiple apps are running
try:
for proc in psutil.process_iter():
if proc.name() == PROC_NAME:
subprocs = proc.children()
filtered = (proc for proc in subprocs if proc.name() == SUBPROC_NAME)
try:
proc = next(filtered)
except StopIteration:
return None
args = proc.cmdline()
appid = (row for row in args if FLAG in row)
try:
return int(next(appid).split("=")[1])
except StopIteration:
return None
except Exception as e:
logger.debug(e)
return None
def get_app_allows_downloads(path: Path, appid: int) -> bool:
try:
root_path = get_app_path(path, appid)
acf = root_path.joinpath(f"steamapps/appmanifest_{appid}.acf")
flag = ACF(acf).get_allows_downloads()
except AppNotInstalledError:
flag = 0
match flag:
# NOTE: adheres to global client setting
case 0:
return get_client_allows_downloads(path)
# NOTE: always allow
case 1:
return True
# NOTE: never allow
case 2:
return False
# NOTE: no other known values at this time, fallback (assume permits)
case _:
return True
def get_config(path: Path) -> Path:
return path.joinpath("config/config.vdf")
def get_client_allows_downloads(path: Path) -> bool:
config = get_config(path)
try:
with open(config) as f:
settings = vdf.load(f)
# NOTE: "1" denotes "allow"
allow = bool(
int(
settings["InstallConfigStore"]["Software"]["Valve"]["Steam"][
"AllowDownloadsDuringGameplay"
]
)
)
return allow
except Exception as e:
logger.critical(e)
return True
def is_dayz_running() -> bool:
"""Subprocesses spawned from Steam will not show up in regular process tree"""
procs = []
substring = [DAYZ_BINARY, DAYZ_LAUNCHER]
for proc in psutil.process_iter():
try:
procs.append(proc.cmdline())
except Exception as e:
logger.warning(e)
continue
return any(s in item for sublist in procs for item in sublist for s in substring)
def get_app_path(folders_path: Path, appid: int) -> Path:
app_path = None
try:
with open(folders_path / LIBRARYFOLDERS_PATH) as f:
folders = vdf.load(f)
except Exception:
raise VDFLoadError("Failed to parse libraryfolders")
for obj in folders["libraryfolders"]:
if str(appid) in folders["libraryfolders"][obj]["apps"]:
app_path = folders["libraryfolders"][obj]["path"]
if Path(app_path).exists():
break
if app_path is None:
raise AppNotInstalledError(
f"Failed to find a libraryfolder for the appid {appid}"
)
if Path(app_path).exists() is False:
raise AppMovedError(
f"The location '{app_path}' pointed to by '{appid}' no longer exists and may have been changed on the disk."
)
return Path(app_path)
def get_app_name(appid: int) -> str | None:
payload = {"appids": [appid]}
res = requests.get(APP_DETAILS, params=payload)
if res.status_code != 200:
return None
try:
return str(res.json()[str(appid)]["data"]["name"])
except Exception as e:
logger.debug(e)
return None
-158
View File
@@ -1,158 +0,0 @@
import logging
import os
import shutil
from typing import TYPE_CHECKING
from dzgui.const.constants import APP_NAME
from dzgui.const.enum import Preferences
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.migrate import (
has_new_config,
copy_state_files,
migrate_cols_file,
)
from dzgui.init.flock import lock_acquire
from dzgui.init.prereqs import has_steam_client
from dzgui.strings import boot
from dzgui.util.deck import is_steam_deck, is_game_mode
from dzgui.util.dirs import make_parents
from dzgui.util.localize import set_locale
from dzgui.util.map_count import test_map_count
from dzgui.util.redact import RedactionFilter, REDACTION_PATTERNS
from dzgui.util.strings import init
from dzgui.views.base import App
from dzgui.views.dialogs.boot import BootWindow
from dzgui.views.dialogs.early_alert import EarlyAlertDialog
from dzgui.views.dialogs.wizard import SetupWizard
if TYPE_CHECKING:
from pathlib import Path
logger = logging.getLogger(APP_NAME)
# TODO: profile load time
def setup_logger(log_path: "Path") -> None:
# TODO: put in consts?
_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)
_filter = RedactionFilter(patterns=REDACTION_PATTERNS)
fh.addFilter(_filter)
logger.setLevel(logging.DEBUG)
logger.addHandler(fh)
def copy_bare_configs(config: "Path", resolution: "Path") -> tuple[bool, bool]:
# NOTE: temporary workaround for #375
conf = "config.json"
state = [
"dzg.history",
"dzg.versions",
"dzg.res.json",
"dzg.filters.json",
"dzg.columns.json",
"dzg.notes.json",
"ips.csv",
".month",
]
config_changed = False
state_changed = False
if config.parent.exists() is False:
new_file = config
old_file = config.parent.parent / conf
if old_file.is_file():
try:
make_parents(new_file)
shutil.copy(old_file, new_file)
config_changed = True
except Exception as e:
logger.critical(e)
if resolution.parent.exists() is False:
state_path = resolution.parent
for state_file in state:
old_file = state_path.parent / state_file
if old_file.is_file():
try:
new_file = state_path / state_file
make_parents(new_file)
shutil.copy(old_file, new_file)
state_changed = True
except Exception as e:
logger.critical(e)
return (config_changed, state_changed)
def load_gui(version: str, is_debug: bool) -> None:
lock = lock_acquire() # noqa
set_locale()
# NOTE: consider aborting this check if steam deck
xdg_paths = get_xdg_paths()
XDG = parse_filepaths(xdg_paths)
copy_bare_configs(XDG.config, XDG.resolution)
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:
test_map_count()
migrate_cols_file(XDG.columns)
copy_state_files(xdg_paths["XDG_STATE_HOME"])
# TODO: add logging inside wizard
wizard = SetupWizard(_is_steam_deck, XDG)
if not wizard.is_setup_complete():
return
setup_logger(XDG.debug)
with open(XDG.debug, "w") as f:
f.truncate(0)
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)
bootwin = BootWindow(XDG, version)
local_coords, latest_release = bootwin.get_results()
use_miles = lookup(XDG.config, Preferences.DIST)
prefs = UserPrefs(
is_steam_deck=_is_steam_deck,
is_game_mode=_is_game_mode,
is_debug=is_debug,
coords=local_coords,
version=version,
paths=XDG,
latest_release=latest_release,
use_miles=use_miles,
)
print(boot.all_ok)
app = App(prefs)
app.run(None)
View File
Whitespace-only changes.
-97
View File
@@ -1,97 +0,0 @@
import json
import shlex
from pathlib import Path
from typing import Any
from dzgui.const.boilerplate import config_boilerplate
"""
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 = [
"api_key",
"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 == "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
# NOTE: workaround for DZGUI 6 logic (see #375)
for key in config_boilerplate.keys():
if key not in keys:
keys[key] = config_boilerplate[key]
return json.dumps(keys, indent=2)
-43
View File
@@ -1,43 +0,0 @@
import stat
import textwrap
from pathlib import Path
from dzgui.util.dirs import copy_dzgui_to_xdg_data, find_icon_resource, make_parents
def get_share_path(exe_path: Path) -> Path:
return exe_path.parent.parent
def write_desktop_file(exe_path: Path) -> Path:
icon = find_icon_resource()
template = f"""\
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec={exe_path}
Name=DZGUI
Comment=DayZ server browser and mod manager
Icon={icon}
Categories=Game"""
copy_dzgui_to_xdg_data(exe_path)
share_path = get_share_path(exe_path)
desktop_file = share_path.joinpath("applications/dzgui.desktop")
make_parents(desktop_file)
desktop_file.write_text(textwrap.dedent(template))
desktop_file.chmod(desktop_file.stat().st_mode | stat.S_IEXEC)
return desktop_file
def write_desktop_shortcut(desktop_file: Path) -> None:
# NOTE: necessarily depends on the above (UI blocks creation without XDG entry first)
link = Path.home().joinpath("Desktop/dzgui.desktop")
make_parents(link)
if link.exists():
link.unlink()
link.symlink_to(desktop_file)
-110
View File
@@ -1,110 +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:
try:
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}")
tmp = serialize(url)
logger.info(f"Extracting {tmp}")
unzip(tmp, ips_path)
logger.info("Stripping IPv6 records")
strip_ipv6(ips_path)
with open(month_file, "w") as f:
f.write(date)
logger.info(f"Wrote {date} to {month_file}")
except Exception as e:
# NOTE: in the event of failure, geolocation calc is simply not performed
logger.critical(e)
return
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
def strip_ipv6(path: Path) -> None:
"""Can be IO intensive and cause visual lag on UI frames
running in the main thread even when run in its own thread;
lines are batched into memory-manageable chunks to reduce
disk writes. Raw file can be 8M+ records long, so it is
not read into memory at once.
Relative size is reduced by ~100MB by pruning unwanted columns
"""
# NOTE: "^::," is the boundary line between IPv4 and IPv6
# NOTE: deprecated regex matching (slower by 5s)
# reg = r"^\d{1,3}\..*"
alt_path = path.parent.joinpath("ips_stripped.csv")
merged = ""
its = 0
with open(path, "r") as f, open(alt_path, "w") as out:
for line in f:
els = line.split(",")
if "." not in els[0]:
break
final = ",".join([els[0], els[1], els[-2], els[-1]])
merged += final
its += 1
if its == 500:
out.write(merged)
its = 0
merged = ""
if its > 0:
out.write(merged)
path.unlink()
alt_path.rename(path)
-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
-100
View File
@@ -1,100 +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
filters: Path
shortcut: 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)
path.unlink()
except OSError:
return False
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:
real_path = os.environ.get(path)
if real_path is not None and is_writeable(real_path):
new_path = Path(real_path)
else:
new_path = xdg_paths[path]
resolved_paths[path] = new_path / APP_NAME_LOWER
return resolved_paths
def parse_filepaths(xdg: dict) -> Xdg:
config = xdg["XDG_CONFIG_HOME"]
state = xdg["XDG_STATE_HOME"]
share = xdg["XDG_DATA_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"
filters = state / "dzg.filters.json"
shortcut = share / APP_NAME_LOWER
return Xdg(
config,
columns,
notes,
resolution,
history,
versions,
system,
debug,
ips,
filters,
shortcut,
)
-15
View File
@@ -1,15 +0,0 @@
"""
Generic defaults used when initializing a config file from scratch
"""
config_boilerplate = {
"fav_server": "",
"fav_label": "",
"name": "",
"fullscreen": False,
"steam_api": "",
"default_steam_path": "",
"client": "",
"ip_list": [],
"use_miles": False,
"start_tab": 0,
}
-102
View File
@@ -1,102 +0,0 @@
APPID_DAYZ = 221100
APPID_DAYZ_EXP = 1024020
UDP_PORT = 27016
VM_FILE = "/proc/sys/vm/max_map_count"
MIN_COUNT = 1048576
API_RATE_LIMIT = 1
CLIENT_RATE_LIMIT = 3
REQUEST_TIMEOUT = 10
APPNAME_DAYZ = "DayZ"
APPNAME_DAYZ_EXP = "DayZ Exp"
APPNAME_DAYZ_EXP_HUMAN = "DayZ Experimental"
DAYZ_BINARY = "DayZ_x64.exe"
DAYZ_LAUNCHER = "DayZLauncher.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"
GTK_APP_ID = "io.github.aclist.dzgui"
HEX_GREEN = "#32CD32"
HEX_RED = "#FF0000"
HEX_ORANGE = "#FFAC1C"
# TODO: normalize icon names
CALCULATOR = "accessories-calculator-symbolic"
CARET_DOWN = "go-down-symbolic"
CARET_UP = "go-up-symbolic"
CLIPBOARD = "edit-copy-symbolic"
CLOSE = "window-close-symbolic"
FOLDER = "folder-symbolic"
EDIT_DELETE = "edit-delete-symbolic"
ERROR = "dialog-error-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"
WARNING = "dialog-warning-symbolic"
WEB_BROWSER = "web-browser-symbolic"
DAY_ICON = "weather-clear-symbolic"
NIGHT_ICON = "weather-clear-night-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"
IMAGES_PATH = "data/images"
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/dzgui"
DAYZ_COMMUNITY_ROOT = "Missions"
GIO_SETTINGS_INTERFACE = "org.gnome.desktop.interface"
GIO_SETTINGS_PROP = "color-scheme"
GIO_SETTINGS_KEY = "gtk-application-prefer-dark-theme"
GIO_SETTINGS_VAL = "prefer-dark"
-28
View File
@@ -1,28 +0,0 @@
# internal
STEAM_PUBLISHED_FILES = (
"https://api.steampowered.com/ISteamRemoteStorage/GetPublishedFileDetails/v1"
)
STEAM_SERVERS = "https://api.steampowered.com/IGameServersService/GetServerList/v1"
SUB_ENDPOINT = "https://api.steampowered.com/IPublishedFileService/Subscribe/v1"
UNSUB_ENDPOINT = "https://api.steampowered.com/IPublishedFileService/Unsubscribe/v1"
APP_DETAILS = "https://store.steampowered.com/api/appdetails?"
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"
-291
View File
@@ -1,291 +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",
}
CLIENT = {
"key": "client",
}
WINDOW = {
"key": "fullscreen",
}
DIST = {
"key": "use_miles",
}
NAME = {
"key": "name",
}
DEFAULT = {
"key": "default_steam_path",
}
FAV_LBL = {
"key": "fav_label",
}
FAV_SRV = {
"key": "fav_server",
}
IP_LIST = {
"key": "ip_list",
}
START_TAB = {
"key": "start_tab",
}
class NotebookPage(EnumWithAttrs):
OFFLINE = {"crumbs": strings.crumbs.offline, "statusbar": True}
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}
UNSUB_MOD = {"label": strings.unsub_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.UNSUB_MOD)
MOD_OFFLINE = (None,)
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,
}
UNSUB_SELECTED = {
"label": strings.mod_panel.unsub_selected,
"tooltip": strings.mod_panel.unsub_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
-182
View File
@@ -1,182 +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
from dzgui.model.model_factory import FastInsertListStore
from dzgui.views.pages.offline import FolderHBox
# 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, int))
def mod_page_toggled(self, state: bool, mods: int) -> 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 api_change_successful(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
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def lan_page_initialized(self) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(object, str))
def custom_mods_loaded(self, store: "FastInsertListStore", folder: str) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(object,))
def custom_mods_unloaded(self, widget: "FolderHBox") -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=(str, bool))
def custom_mission_loaded(self, folder: str, is_valid: bool) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def invalid_custom_mods(self) -> None:
pass
@GObject.Signal(flags=GObject.SignalFlags.RUN_LAST, arg_types=())
def all_mods_synched(self) -> None:
pass
-562
View File
@@ -1,562 +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 (
ButtonType,
ContextMenu,
FilterMode,
NotebookPage,
Preferences,
ServerTab,
)
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.notes import NoteManager
from dzgui.model.servers import ServerModelManager
from dzgui.util.diag import write_diagnostic
from dzgui.util.format import format_exception, 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.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.offline import OfflineLoader
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, OfflineModTreeView
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"
offline_loader: "OfflineLoader"
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)
# NOTE: suppress requests until entire UI is loaded
self.loaded = False
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 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 as e:
msg = format_exception(e)
logger.critical(msg)
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.mediator.modtreeview.load_mods()
def uncolorize_mods(self) -> None:
mod_man = self.mediator.modtreeview.get_mod_man()
mod_man.uncolorize_mods()
def highlight_stale(self) -> None:
mod_man = self.mediator.modtreeview.get_mod_man()
mod_man.highlight_stale()
def toggle_mod_selection(self, state: bool) -> None:
mod_man = self.mediator.modtreeview.get_mod_man()
mod_man.toggle_mod_selection(state)
def unsub_mods(
self, treeview: Union["ModTreeView", "OfflineModTreeView", None] = None
) -> None:
if treeview is None:
view = self.mediator.modtreeview
else:
view = treeview
mod_man = view.get_mod_man()
mod_man.unsub_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.show_all()
dialog.run()
def select_colorized(self) -> None:
mod_man = self.mediator.modtreeview.get_mod_man()
mod_man.select_colorized()
def get_all_tree_filters(self) -> dict[str, dict[str, bool]]:
servers = self.get_servers()
all_filters: dict[str, dict[str, bool]] = {}
trees = (
servers.get_browser(),
servers.get_saved(),
servers.get_recent(),
servers.get_lan(),
)
for tree in trees:
enum = str(tree.get_enum())
filters = tree.get_filter_man().get_filters()
all_filters[enum] = filters
return all_filters
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.show_all()
dialog.run()
def update_steam_api_key(self, text: str) -> None:
self.config_man.update_steam_api_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(), "")
self.mediator.filters.button_grid.block_toggles(True)
self.populate_filter_prefs()
self.mediator.filters.button_grid.block_toggles(False)
self.emitter.emit("lan_page_initialized")
ServerModelManager(self, tv).load()
def populate_filter_prefs(self) -> None:
tv = self.get_active_treeview()
filters = self.config_man.get_filters(tv)
if filters is None:
return
filter_man = self.get_filter_man()
for filt, state in filters.items():
filter_man.set_filter(filt, state)
self.mediator.filters.set_filters(filters)
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()
# FIXME: wipe maps store when changing tabs if model is none
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 unset_fav(self) -> None:
self.config_man.unset_fav()
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_ip(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, row: dict[str, Any], record: "Record") -> None:
tv = self.get_servers().get_recent()
ServerModelManager(self, tv).add_to_history((row, record))
# def append_to_history(self, record: "Record") -> None:
# self.config_man.append_to_history_file(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:
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:
# TODO: get record string, store in memory
# get note by record, get is in favs, etc. store as a block
# this is only used by context mixin
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:
# TODO: record should be cached upon creation of dialog
tv = self.get_active_treeview()
record = tv.get_record_string()
self.notes_man.add_note(record, note)
def delete_note(self) -> None:
# TODO: record should be cached upon creation of dialog
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)
ServerModelManager(self, self.get_active_treeview()).refilter(
FilterMode.TOGGLE_ON
)
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()
logger.info(f"Setting start tab to index {ind}")
self.get_servers().notebook.set_current_page(ind)
def get_debug_args(self) -> str:
return self.connection_man.get_debug_args()
def update_and_load_to_menu(self) -> None:
self.connection_man.update_and_connect(menu_only=True)
def update_and_connect(self) -> None:
self.connection_man.update_and_connect()
def update_status(self) -> None:
self.mediator.preconnect.mark_finished()
def get_steam_client_name(self, cmd: str) -> str:
return self.mediator.options.get_client_name(cmd)
def present_window(self) -> None:
self.mediator.window.present_with_time(Gdk.CURRENT_TIME)
def is_cancel_pending(self) -> bool:
if self.get_exit_event().is_set():
return True
if self.get_cancel_event().is_set():
self.clear_cancel_event()
return True
return False
def open_offline(self) -> None:
self.open_page(NotebookPage.OFFLINE)
mod_man = self.mediator.modtreeview.get_mod_man()
store = mod_man.store
self.mediator.offline_loader.populate(store)
-884
View File
@@ -1,884 +0,0 @@
# Changelog
## [7.0.0] Unreleased
### Added
- Setup wizard
- Uninstall wizard
- Descriptive details panel to certain error dialogs
- 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
- Unset favorite server button
- 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
- Save filters per server context between sessions
- Preboot progress dialog
- Choose to jump into splash screen instead of server
- Collapsible connection panel
- Play offline (load mods directly)
- Generate Steam shortcuts and cover art
- Warn user if background downloads are disabled
- Dynamic copy button
- Update map count (-u flag)
- Filter button tooltips
- Expand/collapse changelog versions
- Support local light/dark mode changes on system theme
- Server time calculator
### Changed
- Conform to PEP 440 versioning for beta versions
- Enforce fullscreen mode on Steam Deck
- Reduce padding on keys button
- Boldface breadcrumbs
- Changed some dialog error messages from popups to popovers
- Changed how filter buttons are packed in sidebar
- 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
- Reduce size of geolocation DB on disk (~100MB)
- Enable LAN page Empty/Full filters on first run of app
- Propagate subscribed mods to Steam client
- Make j/k keys in context menus follow same wraparound logic as down arrow/up arrow
### Dropped
- Battlemetrics API support
- Unused metadata from system log files
- 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
- In-game time field missing certain ranges of time at night
- Wrap long entries in changelog
- Certain server descriptions with special characters not rendering correctly
- Center server title text on server dialogs
- Rare segfaults when changing maps (threading)
- Moved dialogs out of threads
- History table not being in lock-step with state file
- Current keyword filter not being applied when refreshing table
### Unreleased
- Load offline mods
- Local documentation
- Raw debug command in context menu
### Developer-facing
- Add pyproject.toml file
- Show deprecation warnings
- Options -> Dev page
## [6.0.5] 2026-05-17
### Changed
- Update symlink hash logic to align with DZGUI 7 beta
- Update A2S helper to latest commit
## [6.0.4] 2026-04-13
### Fixed
- Update A2S module checksums to support servers with missing description field
## [6.0.3] 2026-04-12
### Fixed
- Use GLibUnix namespace where available when setting up SIGINT callback
## [6.0.2] 2026-01-26
### Fixed
- Explicitly use Python 3.13 when calling subprocesses
- Raise error correctly from module
- Do not spawn dialogs from inside of thread when fetching prereqs
### Changed
- Optimize time complexity of startup checks
- Optimize coordinate calculation by using local records first
- Rename some internal functions
- Wrap entire startup process in dialog
## [6.0.1] 2026-01-16
### Fixed
- Explicitly use Python 3.13 when calling subprocesses
## [6.0.0] 2026-01-14
### Added
- Support DayZ Experimental
- Ping display on server tables
- Save descriptive text notes on a per-server basis
- Speed up load time and navigation of server tables
- More robust threading and cache system when filtering servers
- Show additional DayZ client information in Options menu
- Warn user of DayZ client version mismatches
- Support clickable hyperlinks in dialogs
- Rich server metadata details dialog (right-click on server table)
- Filter by modded servers
- Breadcrumbs showing current menu context
- Dedicated changelog page
- Dedicated keybindings page
- Dedicated settings page ("Options")
- Support sandboxed version of Flatpak
- Vim-style navigation keybindings
- Added "Return to main menu" button to dialog windows when failing to load server table
- Dynamic context menus for modded servers
- Additional keybindings for new filter toggles
- If a server is locked, prompt user when connecting
- Internal flag to allow distro-packaged releases to disable in-app updates
- Pre-boot checks to test whether script was invoked directly
- Commandline usage help text (GaryBlackbourne)
- More descriptive help dialogs when initial dependencies are missing
### Fixed
- Script failing to start when remote endpoints are unavailable (GaryBlackbourne)
- Key stickiness when quickly navigating through entries in tables
- Servers returning malformed A2S_INFO blocking server browser from loading
- Normalized buttons in dialogs and restored proper padding
- GTK errors being emitted to stdout when inserting debug table
- Entry dialog sensitivity when validating API keys
- Additional validation on entry dialogs to prevent submitting empty text
- Suppress errors during pre-boot checks when mods are not installed
- Centered filter checkboxes within panel
- Do not pop unhighlight/select stale buttons if no stale mods exist
- Improved keybinding interaction with side panels
- Suppress typeahead search in mod dialogs
- Do not trigger global API cooldown if no LAN/favorite servers are found
- Fix table column expansion in server mod dialogs
- Missing parameters when closing application via window decorations
- Statusbar contents not updating on certain pages
- Prevent debug button from activating when in certain input fields
- Window size not updating correctly when unmaximizing window after changing "fullscreen at boot" setting
- Branch toggle signal being emitted when entering Options menu from other contexts
- Mods rarely not appearing in local mod list if download completed too quickly
- Statusbar not updating when clicking a row after spamming keyboard input
- Extraneous logs being generated when subscribing to mods
- Narrow width of columns in modlist dialogs occluding text
- Newline terminators in history file
- Floating point number calculation
- Window resizing too small if no prior resolution was set
- ESC key destroying wait dialogs while a thread is pending
- Tooltip signals being erroneously emitted on main menu
- UI not being constructed correctly if CHANGELOG.md was missing
- Config file erroneously getting updated when populating settings menu
- Leaky variable name in dialog titles
- Prevent extraneous signals from propagating when column width is adjusted
- Server filter panel not being hidden when entering other page contexts
- Path to remote changelog being constructed incorrectly
- Dialogs with newlines breaking output in log table
- Path discovery during first-time setup when parsing filepaths with whitespaces
- First-time setup dialog continuously triggering when DayZ install path had whitespaces in it
### Changed
- Require Python 3.13
- Reduced global API cooldown from 60s to 30s
- Clarify dialog messages when DayZ path could not be found
- Auto-focus first item when opening context menus
- Opacity setting on side buttons when in a different context
- Refactored BM API key validation to account for new key format
- State file serialization methods
- Optimize time complexity of pre-boot checks (GaryBlackbourne)
- Rewrote distance calculation module (GaryBlackbourne)
- Changed preferred client setting from radio toggle to combobox
### Dropped
- Ping readout in statusbar
- Extraneous information from right statusbar
## [5.8.3] 2026-01-04
### Fixed
- Normalize checksum numbers and dates
## [5.8.2] 2026-01-04
### Fixed
- Fix regression in symlink routine introduced by previous hotfix
## [5.8.1] 2025-12-27
### Fixed
- Path discovery during first-time setup when parsing filepaths with whitespaces
- First-time setup dialog continuously triggering when DayZ install path had whitespaces in it
## [5.8.0] 2025-07-06
### Added
- Filter servers by official/unofficial status
- Automatically fetch geolocation records
### Changed
- Updated internal versioning of helper files
### Fixed
- Corrected erroneous 2024 date in prior changelog entries
## [5.7.0] 2025-04-17
### Added
- Save application dimensions when quitting and restore on subsequent boot
### Fixed
- Issues with the window exceeding the bounds of the screen when displaying some table contexts
### Changed
- More direct server ping query method that should return marginally more accurate times
## [5.6.7] 2025-04-04
### Dropped
- Removed extraneous pre-boot API checks that could cause error messages to be printed if the user had not set up an API key yet
## [5.6.6] 2025-03-16
### Changed
- Update IP database records for 2025-03
## [5.6.5] 2025-03-04
### Fixed
- Livonia server results being dropped from batch queries
## [5.6.4] 2025-02-10
### Changed
- Drop launch flag and check for invocation through Steam automatically
## [5.6.3] 2025-02-09
### Changed
- Update IP database records for 2025-02
## [5.6.2] 2025-01-22
### Fixed
- Resolve regression introduced with IP resolution feature in 5.6.0 (restores functionality of right-click action: Add to My Servers)
## [5.6.1] 2025-01-10
### Fixed
- Add fallback support for jq 1.6
## [5.6.0] 2025-01-06
### Added
- Application header bar and controls
- Menu context subtitle in header bar
- Bulk delete mods (via 'List installed mods' list). Not compatible with Manual Mod install mode
- Highlight stale mods in mods list
- Added --steam launch parameter
- Open Steam workshop subscriptions dialog when switching from Manual to Auto mode
- Hover tooltips to most buttons
- Add in-app documentation link to Codeberg mirror
- Additional logging
### Fixed
- Avoid sudo escalation if system map count is sufficient (jiriks74)
- Duplicate dialog title on Steam Deck
- Resolve remote IP when saving records for game servers with multiple hosts
- More performant symlink traversal when checking for legacy links
- Only iterate on missing symlinks at boot (400% performance uplift)
- Fix for server list truncation causing some servers to not appear in results
- Empty dialog popups if user manually deletes local mods while application is running
- Update statusbar when removing servers from list/repopulating
- Abort DayZ path discovery if Steam files are not synched
- Race condition when checking for installed mods
- Favorite server message not updating correctly
- Improved handling for cases where there are no locally installed mods
- Set up mod symlinks at boot, rather than only on server connect
- Prevent context menus from opening when table is empty
- When reloading table in-place, prevent duplicate panel elements from being added if already present
- Clean up local mod signatures from versions file when deleting mods
- Focus first row when opening mods list
### Changed
- Redact usernames in log files
- Prevent ArrowUp/ArrowDown input when inside keyword field
- Admonish user to restart Steam in error dialog if DayZ path could not be found
- Refactor control flow for more robust contextual parsing
- Stop sending modal dialog hints to outer window
- Clean up signal emission
- Clarify some error messages and normalize text formatting
- Update forum URL
- Update README.md
- Update IP database to 2025-01
- Reduce IP database size by 50%
- Update documentation to 5.6.x standard
### Dropped
- Hall of Fame section from button links, to be moved inside documentation
- Unused imports
## [5.5.3] 2024-12-13
### Fixed
- Add remote resource health checks before downloading updates
### Added
- Add fallback repository
## [5.5.1] 2024-12-03
### Fixed
- Support localized decimal separators when parsing installed mod sizes
## [5.5.0] 2024-11-10
### Added
- Support servers running DLC content (fixes Frostline servers)
- Expose a toggle setting for whether to launch the application in fullscreen
- Text autocompletion in maps search field (partial search)
- Add disk space warning to popup dialog when downloading mods
### Fixed
- Servers in saved servers list would populate context menu with same option when right-clicking in server browser
- Enable adding/removing servers to/from My Saved Servers when in Recent Servers context
- Prevent maps combobox from duplicating contents
- Restore keyboard input to keyword entry field
### Changed
- Abort fallback query method if DLC is required
## [5.4.2] 2024-10-05
### Fixed
- Sanitize third-party API IDs to remove UGC collisions
## [5.4.1] 2024-09-25
### Added
- Pre-boot validation check for users with self-compiled version of jq
### Fixed
- Use fallback logic for modlist queries when user traverses networks
- Fix signal handling control flow for checkbox toggles
- When reloading the server browser, the map combobox selection would revert to the last selected map instead of All Maps
- Server filter toggle signals were accessible from the main menu when switching between menu contexts
- Global cooldown dialog could sometimes block filter toggles after cooldown reset
- Normalized minor version number due to a previous clerical error
## [5.4.0] 2024-08-27
### Added
- Scan local area network for DayZ servers
- Freedesktop application icons for system taskbar, tray, and other dialogs
- Emit CPU model name when exporting system debug log
### Fixed
- Errors being printed to the console when Exit button was explicitly clicked
- Detect Steam Deck OLED APU variant during initial setup
- Encapsulate player names correctly so that names with whitespace in them are supported
- Test if DayZ directory is empty at startup, implying that the game was moved to a new library collection
- Report WM_CLASS name to the window manager
## [5.3.2] 2024-07-02
### Fixed
- Server list would sometimes be missing some expected servers due to truncation being caused when a server erroneously set an incomplete gametype
## [5.3.1] 2024-06-15
### Added
- Uninstall routine: invoke via dzgui.sh -u or dzgui.sh --uninstall and choose from full or partial uninstall
## [5.3.0] 2024-06-15
### Added
- Server browser tables now display the number of players in queue (for full servers)
- Warning dialog if the user's API key returned no servers, and a global API cooldown dialog (60 seconds)
### Fixed
- Removing servers from My Servers via the right-click context menu was not actually removing the server and drawing an empty dialog
- Resolved an issue where, when Steam was not installed in a standard location and the user was prompted to let DZGUI auto-discover the correct path, this information was not retained correctly
## [5.2.4] 2024-05-29
### Fixed
- Resolved an issue that could cause an old path to a prior DayZ installation to be reinserted in the config file if the Steam client did not synch the new path internally. DZGUI would try to ask the user to re-run first-time setup and update the path, but the old path would still be used.
## [5.2.3] 2024-04-19
### Added
- Added Debug Mode button to main menu
### Changed
- Reworded debug mode notification dialog
- Updated geolocation records
### Dropped
- Dropped seen_news key from configs
## [5.2.2] 2024-04-18
### Added
- Cover artwork/icons for Steam "Recent Games" and tree view
### Changed
- Updated documentation to the v5.0.0 spec
## [5.2.1] 2024-04-01
### Fixed
- Fixed a regression where where the first-time setup dialog would not trigger auto-path discovery
### Changed
- Reworded some menus and dialogs for clarity
## [5.2.0] 2024-03-21
### Added
- Refresh player count for active row: invoke via right-click context meu or directly with the Ctrl-r hotkey. This feature has a 30 second global cooldown to prevent throttling.
### Fixed
- Improve case-insensitive keyword search to be portable across awk versions (previous version required gawk)
- Fixed a dialog string from being shown twice when adding a server to favorites via context menus
### Changed
- Use a more robust method for downloading mods when auto mod install is enabled
## [5.1.1] 2024-03-18
### Fixed
- Hotfix for remote helper files not being fetched correctly
## [5.1.0] 2024-03-18
### Added
- Make columns in the server browser user-resizable (affects Server Browser, My Servers, and Recent Servers)
- Save dragged position of user-resized columns
- Display ping to server in statusbar: by popular request, added the ability to visualize both distance to server and round-trip latency (ping), at the cost of a small calculation delay. Please leave feedback regarding whether this feature feels fast/responsive enough.
### Fixed
- Fixed a rare scenario in Auto Mod Install Mode where defunct mods (mods no longer available on Steam) would try to be downloaded if the user had previously downloaded the mod
## [5.0.0] 2024-01-31
### Added
- Context switching: navigate to different pages using side buttons
- Dynamic statusbar: updates metadata and server distance when selecting rows
- Show server-side modlist and allow jumping to Steam Workshop pages to browse, and list whether mod is currently installed
- Print debug logs in-app (Help > Show debug log)
- Functionality to change API keys in-app (used when revoking old API keys)
- Print atomic mod sizes when listing installed mods
- Dialogs show direct links to API key management URLs when changing API keys
- Toggle dry-run mode directly from server browser
- Extensive keybindings for fully controlling the application without the mouse
- Extensive pre-boot sanity checks
- Keybinding help dialog in main menu
- Right-click context menus in server browsers/mod list: add/remove from favorites, show server-side mods, delete mod, copy server IP to clipboard
### Changed
- Utilize GTK bindings and MVC paradigm for UI creation and data flow
- Filter servers dynamically from within server browser
- Performance and security improvements to DZGUI helper files
### Fixed
- First-time setup dialogs respawning repeatedly in certain scenarios
- Issues with Steam client switching to the wrong page when using auto-mod install
- Set text input module correctly when launching on Steam Deck
- Separate current/total player count and use proper integer sort method in table
## [4.1.1] 2023-12-18
### Fixed
- News marquee not showing
## [4.1.0] 2023-12-17
This update adds support for DayZ servers running on a local area network. To connect or add to your server list, supply the server IP and query port in the format IP:PORT.
Support for Steam Deck Game Mode has also been restored, with a new dialog format that allows for virtual keyboard input. This should allow you to enter text in form fields by activating the Steam button + X. In addition, you can unlock the mouse and keyboard input when launching DZGUI through Steam by using an internal binding provided by Steam Deck: long-press the three dots button on the right of the device for three seconds to toggle the input state. This allows you to use mouse and keyboard-style bindings on Game Mode and vice versa.
### Added
- Virtual keyboard support for text entry fields on Steam Deck Game Mode
- Validate and connect to LAN server IPs
## [4.0.4] 2023-12-23
### Fixed
- Enforce version check for Python versions before 3.10
## [4.0.3] 2023-11-22
### Fixed
- Query helper: backwards compatibility for pre-2021 versions of Python 3
## [4.0.2] 2023-11-22
### Fixed
- Query helper not loading: fixed a remote link pointing to the wrong destination and added a checksum verification to ensure file is present
## [4.0.1] 2023-11-22
### Fixed
- Emergency hotfix to remove build artifacts leaking into main script: if you updated DZGUI from 3.3.18 to 4.0.0 between 2023-11-22 15:00:02 and 2023-11-22 15:03:37 GMT, there is a small chance it will be unable to launch correctly. If so, please follow the instructions on the manual to reinstall.
## [4.0.0] 2023-11-22
Hello players, this is a major version update which overhauls many of DZGUI's underlying systems to improve responsiveness of the application and make menus more intuitive to interact with. It should be considerably more difficult, if not impossible, to inadvertently crash a dialog, and nested dialogs should behave in a more expected fashion, such as when going back and forth between menus or changing options dynamically within a given menu.
In addition, with this update we are querying servers directly. The net benefit of this is that results will returned faster, bootup is faster, and it also paves the way for future features like connecting to servers on a LAN. The Battlemetrics API is now entirely optional and can be skipped during the setup process. However, if you have already set up a BM API key, you can continue using it if you want to query or add servers by ID instead of IP.
As part of this change, version 4.0.0 introduces the ability to connect to or add servers to your list based on either ID or IP. Previously, you could only connect by IP and add by IP, but now you can connect by IP/ID or add by IP/ID. If you choose the ID method, this will be translated into an IP seamlessly in the background. Similarly, favorite servers are now stored using the full IP rather than the ID. Due to the variety of systems and methods for connecting to servers, the application was carrying around and converting server IPs, IDs, and other formats back and forth, creating unnecessary complexity. By normalizing everything to an IP basis, maintainability should be more consistent. When upgrading to this version, your old favorites lists will be updated automatically to the new IP method. Note that as a result of this change, we must purge old history lists ("Recent Servers"), but everything else should carry over as before.
If you encounter any problems with this new release or with the migration of configs, please do not hesitate to submit a bug report.
Attention Fedora 38 users: problems with upstream GNOME packages causing crashes have been reported to GNOME development and a fix has been issued. You have the choice of compiling the zenity package
from source or waiting until the latest version is merged into Fedora's package manager.
### Added
- Change in game name: dynamically change your profile name via the Advanced Options menu
- Connect by ID: supply a Battlemetrics ID to connect to a server; this can be used in lieu of the IP
- Add by IP: supply a standard IP to add a server to your list; this can be used as a more direct way of saving servers
- Filter by 1PP and 3PP in the server browser
- Save connected server to favorites: prior to connecting, asks the user if they want to save this server for future use
- Generate additional output when generating system logs
### Fixed
- Rare cases where the keyword filter would not filter server results correctly
- Handling of dialog exit signals: made it much more difficult to crash the application in rare cases when spamming input or returning from menus
- Update menus in place: when toggling options in the Advanced Options menu, displays the current state/mode of the option for better readability into what option is currently enabled
- More intuitive menu navigation: dialog setup and teardown is more responsive and follows expected flows when inside of nested menus
- Message formatting: fold long messages inside of popup dialogs for proper word wrapping regardless of screen type
- Fixed a rare case where dialogs would spawn twice during first-time setup
- Properly remain inside of menus when looping where it would make sense to do so : e.g., Delete Servers list, Advanced Options
### Changed
- Query servers directly to reduce API hops: initial bootup and subsequent server queries should be considerably faster
- Store complete IP:Port instead of server IDs
- Make Battlemetrics API key optional: this is only used for the 'Connect by ID' and 'Add server by ID' methods and is not required. If you prefer, you can simply connect/add by IP.
- Prevent the application from launching in Game Mode on Steam Deck: Steam Deck's kiosk mode has problems sending keyboard input to third party applications. To prevent unintended usage, DZGUI now warns the user to launch the app in Desktop Mode if they attempt to use it from Game Mode. Adding DZGUI as a Non-Steam Game does work on desktop PCs, but is not recommended due to the way Steam handles subshells. For best results, launch DZGUI directly via the script/applications menu (PC) or via the desktop icon (Steam Deck).
- Omit null servers from list: servers that time out or send an empty response are now omitted entirely from the My Servers list, as they will not return meaningful metadata unless they are online.
The My Servers list thus shows online and accessible servers
## [3.3.0] 2023-05-16
### Added
- Fetch more inclusive global "players in-game" count
- List mod directory on installed mods list
- Detect default Flatpak Steam path
- Dark mode/light mode theme to help file
- Alpha-sort My Servers list
- Add description of how to enable hidden folders on GTK2/3
- Initial logging framework
### Changed
- Test for wmctrl when enabling full auto mod installation
- Steam Deck: block toggling full auto mod installation due to extra dependencies needed
- First-time setup: sudo escalation when checking system map count for the first time
### Fixed
- Steam Deck: non-ASCII delimiter causing setup menu to despawn on some devices
- Don't add items in My Servers multiple times to array when the list of favorites is paginated
- Trigger progress dialogs sooner and in sequence to reduce appearance of visual lag
- First-time setup: break out of dialogs correctly when user backs out
- First-time setup: break out of automatic path discovery when user specifies a path manually
- More portable interpreter invocation
- Properly size down window resolution when returning from server browser
## [3.2.10] 2023-05-11
### Fixed
- Return from lockfile function if first-time setup has not been run
- Sanitize inputs when using file picker
- Require both wmctrl and xdotool
## [3.2.9] 2023-05-10
### Changed
- Reword button to "Choose path manually" instead of "Retry"
## [3.2.7] 2023-05-10
### Changed
- Better sudo escalation within zenity dialogs if vm map count is too small
## [3.2.6] 2023-05-10
### Fixed
- Don't parse Flatpak symlinks when setting up default Steam path
## [3.2.5] 2023-05-07
### Fixed
- Require sudo when checking vm map count
## [3.2.4] 2023-03-01
### Fixed
- BM API returning stale query port and preventing fetching modlist
## [3.2.3] 2023-02-17
### Fixed
- sysctl map count value not being loaded immediately after setting
- Application terminating when user declines to update map count value
- Erroneous stderror output when flatpak is not installed
## [3.2.0] 2023-01-19
### Added
- Support Flatpak version of Steam
## [3.1.8] 2023-01-18
### Fixed
- Progress window blocking rest of window stack
- Bug when updating old mods if automod set to ON
## [3.1.7] 2023-01-06
### Fixed
- Hotfix for xdotool repeating input
## [3.1.6] 2023-01-01
### Changed
- Tick low pop servers by default
## [3.1.5] 2023-01-01
### Fixed
- Validate BM key on initial setup
- Fix history menu not parsing query ports correctly
### Changed
- More permissive Steam client discovery for tiling WMs
## [3.1.4] 2022-12-10
### Fixed
- Issue #43: Hotfix for workspace-driven WMs
## [3.1.3] 2022-12-06
### Fixed
- Explicitly require Python 3
## [3.1.1-2] 2022-12-03
### Fixed
- Fix lockfile path
## [3.1.0] 2022-12-03
### Added
- Recent connect history
- Simple, OS-agnostic automod installation
- Track local mod versions
- Force update local mods option
- Added python to dependencies
- File-picker driven path discovery on initial setup
### Dropped
- Headless mod installation
- Drop server ID field requirement on initial setup
### Changed
- Clean up main menu options
- Enforce Steam API key on initial setup
- More accurate path discovery on initial setup
- Add thousands separator to player counts in server browser
### Fixed
- Initial setup dialog causing early crash
- Improved error handling on initial setup to avoid malformed config files
- Delete server menu not clearing when returning to main menu
- Handle whitelist deletion when only one entry present
- Include path to drives under /run in path discovery
- Use Steam-safe local zenity version
## [3.0.7] 2022-11-25
### Fixed
- Hotfix for server reporting multiple versions of same mod
## [3.0.6] 2022-11-09
### Changed
- More verbose logs
## [3.0.5] 2022-10-27
### Fixed
- Properly create .desktop file on desktop PCs
## [3.0.3-4] 2022-10-16
### Fixed
- Steam Deck path discovery on first-time setup
## [3.0.2] 2022-10-12
### Fixed
- Size of certain popups on Steam Deck
## [3.0.1] 2022-10-12
### Fixed
- Initial popup size on Steam Deck
## [3.0.0] 2022-10-12
### Added
- Foreground progress of manual mod subscriptions
- Automatic mod helper through steamcmd
- Forum link
- Enforce Steam API
### Dropped
- Stop retrieving extra metadata from BM
### Changed
- Reorder main menu
- More verbose error messages
- Better abstraction of URLs
### Fixed
- Width and text of some popups on Steam Deck
## [2.7.2] 2022-10-07
### Fixed
- Fix internal URL
## [2.7.1] 2022-10-05
### Fixed
- Game launch not kicking off after symlink creation
## [2.7.0] 2022-10-04
### Added
- Server browser and geolocation algorithm
- More verbose error codes
- Additional progress bar setup and destruction throughout the application
- Additional API response validation
### Fixed
- Encapsulate title strings to prevent leaky arguments in title bars
- Remove erroneous slow boot process if first-time setup was already complete
- Delete server list not emptying when returning to main menu
### Changed
- Group main menu entries in advance of future functionality
- Better abstraction of paths
- Clarification of certain options and errors
## [2.6.3] 2022-10-02
### Fixed
- Hotfix for connect-to-fav not getting modlist
## [2.6.2] 2022-10-02
### Fixed
- Hotfix for BM API returning malformed publishedfileids
## [2.6.1] 2022-09-25
### Fixed
- Freedesktop shortcut errors
## [2.6.0] 2022-09-05
### Added
- Connect by IP method
## [2.5.1] 2022-08-17
### Fixed
- Hotfix for malformed paths during first-time setup
## [2.5.0] 2022-08-16
### Added
- Lockfile: prevent concurrent instances of DZGUI from being opened
### Changed
- Faster path discovery on first-time setup
### Fixed
- Symlink collision on servers with many mods
- API response pagination for large server lists
## [2.4.1] 2022-08-09
### Fixed
- Hotfix for progress bar breaking table when >9 servers in list
## [2.4.0] 2022-08-07
### Added
- Delete server command added to main menu
- Write log to file for bug reports
- Prompt to permanently increase map count size
- Dependency check for Steam
- Cover artwork
- News backend for OTA updates
- Clean up stale symlinks when checking mods
### Fixed
- Minify long mod launch params for servers with launch params breaking the upper limit
- Port DZTUI method of handling legacy symlinks
- Prevent user from entering invalid data on first-time setup
- Prompt to re-run first-time setup if config is malformed
- Better handling of field output from table
- Better Steam Deck detection and handling
- Prevent garbage in error messages
- Miscellaneous backend improvements
### Changed
- Enforce download when switching branches
## [2.3.2] 2022-08-04
### Fixed
Set branch flag to 'stable' if no config file present
## [2.3.1] 2022-08-04
### Fixed
- Improved error handling of first-time setup fields
- Interpolate config file values for debug, branch when writing file
### Changed
- Prompt user to restart first-time setup if broken config is found
## [2.3.0] 2022-07-18
### Added
- Numbered mod links in browser
- Admonition to upgrade versions for bug fixes
- Toggle branch between stable/testing
### Fixed
- Hotfix for fav server select on main menu
## [2.2.1] 2022-07-17
### Fixed
- Hotfix for upstream API returning malformed modlists
- Handle servers with no mods
- Fix dialog window depending on browser exit
- Remove stray newlines in config file
## [2.2.0] 2022-06-22
### Added
- Toggle debug mode in-app
## [2.1.0] 2022-06-19
### Changed
- Updated link to new documentation
## [2.0.3] 2022-06-17
### Fixed
- Safer expansion of originating script path
## [2.0.2] 2022-06-16
### Fixed
- Remove enforced runtime check of workshop path
## [2.0.2] 2022-06-16
### Fixed
- Expansion of Steam path prefix when default path was found
## [2.0.1] 2022-06-16
### Fixed
- Regenerate mod links file in browser when clicking dialog
- Reset whitelist when canceling one-shot (fav) mode
## [2.0.0] 2022-06-15
### Added
- Attempt to find DayZ path and write to config on first launch
- Merge existing config values into new config format when upgrading version
- Dynamically detect Steam Deck and set launch parameters
- Add "gametime" column to server list
- One-shot mode to open mod links in browser if using desktop
- Add favorite server from main menu
- Update favorite server changes in real time
- Add link to help pages from main menu
- Add link to changelog from main menu
### Changed
- Don't require duplication of fav server in whitelist
- More permissive truncation of long server names (50 char limit)
- Render mod list as a scrollable menu
- Reword errors for greater verbosity
- Initial support of granular error handling for API response codes
- Move extended path variables out of user config
### Fixed
- Check if mod dir is sane before listing mods
- Prevent favorite server launch if none set
- Reset server list to entire whitelist if canceling out of fav connect
- Do not load table on empty API response and warn user
- Suppress stderr cruft in logs and use logger instead
## [1.2.1] 2022-06-12
### Fixed
- Print the entire changelog
- Add confirmation dialog before run
## [1.2.0] 2022-06-12
### Changed
- Mod validation process now uses faster, single-pass API query
- Improved logger output when setting fav server
### Added
- In-app changelog
## [1.1.2] 2022-06-08
### Fixed
- Fix array used for mod concatenation; fetch post-sanitized list of mods
## [1.1.1] 2022-06-05
### Fixed
- Stricter regex to parse upstream version number
## [1.1.0] 2022-06-05
### Added
- Main menu: fav server label on header
- Main menu: add servers by ID directly into config file
- Main menu: link to report a bug
- Main menu: quick connect to fav server
- Connect: mod compatibility check
- Connect: mod download prompt
- Connect: mod auto symlinks
- New version download prompt
- Additional visualization of progress/menus
### Fixed
- Menu recursion when navigating backwards
### Changed
- Reduced ping timeout interval
-44
View File
@@ -1,44 +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;
}
.server-subheading {
font-size: 1.1rem;
font-weight: 700;
}
.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;
}
-19
View File
@@ -1,19 +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()
return get_coords(path, my_ip)
except Exception as e:
logger.warn(e)
return None
-27
View File
@@ -1,27 +0,0 @@
import logging
from pathlib import Path
from dzgui.api.steam import get_app_path
from dzgui.config.query import lookup
from dzgui.const.constants import APPID_DAYZ, APP_NAME, APPNAME_DAYZ
from dzgui.const.enum import Preferences
from dzgui.strings.preconnect import resync
logger = logging.getLogger(APP_NAME)
class VDFSyncError(Exception):
pass
def is_dayz_installed(config: Path) -> None:
try:
path = lookup(config, Preferences.DEFAULT)
get_app_path(Path(path), APPID_DAYZ)
except Exception as e:
logger.critical(e)
msg = resync.format(APPNAME_DAYZ)
raise VDFSyncError(msg)
-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
-50
View File
@@ -1,50 +0,0 @@
import platform
import sys
from ctypes.util import find_library
from warnings import deprecated
LIB = "libgirepository-2.0"
@deprecated("currently unused")
def is_debian() -> bool:
"""
cf.
NAME="Debian GNU/Linux"
ID=debian
NAME="Ubuntu"
ID=ubuntu
ID_LIKE=debian
NAME="Linux Mint"
ID=linuxmint
ID_LIKE="ubuntu debian"
NAME="Pop!_OS"
ID=pop
ID_LIKE="ubuntu debian"
"""
release = platform.freedesktop_os_release()
strings = ["ubuntu debian", "debian"]
try:
self_id = release["ID"]
if self_id == "debian":
return True
id_like = release["ID_LIKE"]
return id_like in strings
except Exception:
return False
def has_libgi() -> bool:
return bool(find_library("girepository-2.0"))
def test_libgi_missing() -> None:
msg = f"System is missing the required library '{LIB}'. Install it via your system package manager."
if has_libgi() is False:
print(msg)
sys.exit(1)
-72
View File
@@ -1,72 +0,0 @@
import json
import shutil
from pathlib import Path
from typing import Any
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) -> Any:
old_conf = Path.home() / LEGACY_CONFIG_PATH
j = rc2json(old_conf)
return json.loads(j)
def has_new_config(config: Path) -> bool:
return config.exists()
def convert_cols_file(res: Path) -> Any | None:
j = read_json(res)
cols = j["cols"]
# NOTE: implies prior conversion
if "View" in cols:
return None
# NOTE: user may not have changed these widths in API 6
try:
cols["View"] = cols.pop("Perspective")
cols["Max"] = cols.pop("Maximum")
except Exception:
pass
return j
def migrate_cols_file(res: Path) -> None:
# NOTE: filename "dzg.columns.json" is API 7 spec
old_res = Path.home() / LEGACY_COLS_PATH
if old_res.is_file():
j = convert_cols_file(old_res)
if j is not None:
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
-56
View File
@@ -1,56 +0,0 @@
import psutil
import subprocess
import shutil
import logging
from dzgui.const.constants import (
APP_NAME,
STEAM_CMD,
FLATPAK_APPID,
FLATPAK_CMD,
FLATPAK_RUN_CMD,
FLATPAK_SANDBOX,
)
logger = logging.getLogger(APP_NAME)
def is_steam_running(cmd: str) -> bool:
is_flatpak_running = is_flatpak_steam_running()
if cmd in (FLATPAK_RUN_CMD, FLATPAK_SANDBOX):
return is_flatpak_running
elif cmd == STEAM_CMD:
if is_flatpak_running:
return False
if has_cmd(STEAM_CMD) is False:
return False
return is_running(STEAM_CMD)
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", "--columns=application"], 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
-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.
-47
View File
@@ -1,47 +0,0 @@
import argparse
import sys
import warnings
from dzgui.const.constants import APP_NAME
from dzgui.init.libgi import test_libgi_missing
from dzgui.init.prefix import get_version
from dzgui.util.deck import is_steam_deck
from dzgui.util.map_count import set_map_count
from dzgui.util.strings import flags
from dzgui.views.dialogs.uninstall import UninstallWizard
from dzgui.config.xdg import get_xdg_paths
parser = argparse.ArgumentParser(description=flags.description)
group = parser.add_mutually_exclusive_group()
group.add_argument("-d", "--debug", action="store_true", help=flags.debug)
group.add_argument("-m", "--map", action="store_true", help=flags.map_count)
group.add_argument("-u", "--uninstall", action="store_true", help=flags.uninstall)
group.add_argument("-v", "--version", action="store_true", help=flags.version)
args = parser.parse_args()
def main() -> None:
if args.version is True:
print(get_version())
sys.exit(0)
if args.uninstall is True:
paths = get_xdg_paths()
_is_steam_deck = is_steam_deck()
UninstallWizard(_is_steam_deck, paths)
sys.exit(0)
if args.debug is True:
warnings.filterwarnings("default", category=DeprecationWarning)
if args.map is True:
set_map_count()
sys.exit(0)
version = get_version()
print(f"{APP_NAME} {version}")
test_libgi_missing()
# NOTE: only import ligbirepository modules after the above check
from dzgui.app_init import load_gui
load_gui(version, args.debug)
-256
View File
@@ -1,256 +0,0 @@
import logging
import traceback
from collections import deque
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
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.strings import dialogs
from dzgui.util._json import read_json, write_json
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, fqip: str) -> None:
try:
with open(self.prefs.paths.history, "r") as f:
ips = [line.rstrip() for line in f.readlines()]
except FileNotFoundError:
ips = []
seen = set()
ips.append(fqip)
# NOTE: Preserve linear order of records while deduplicating
unique = deque(maxlen=10) # type: ignore
for i in range(len(ips) - 1, -1, -1):
if ips[i] not in seen:
seen.add(ips[i])
unique.appendleft(ips[i])
# NOTE: appendleft will push 11th item off right edge
if len(unique) == 10:
break
with open(self.prefs.paths.history, "w") as f:
for record in unique:
f.write(f"{record}\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
@call_on_thread(dialogs.checking_api, show_dialog=False)
def update_steam_api_key(self, text: str) -> None:
res = test_steam_api(text)
if res is True:
self.update_config(Preferences.STEAM, text)
func = StoredFunc(lambda: self.emitter.emit("api_change_successful"))
self.thread_man.set_cleanup_func(func)
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 unset_fav(self) -> None:
try:
self.write_config(Preferences.FAV_LBL, "")
self.write_config(Preferences.FAV_SRV, "")
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.show_all()
dialog.run()
def save_res_and_quit(self, tv: "ServerTreeView", window: "OuterWindow") -> None:
columns = tv.get_columns()
filters = self.controller.get_all_tree_filters()
filters_file = self.prefs.paths.filters
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)
write_json(filters, filters_file)
except Exception as e:
logger.critical(e)
logger.info("Normal user exit")
if window.props.is_maximized:
app = window.get_application()
if app is None:
return
app.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)
app = window.get_application()
if app is None:
return
app.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)
def get_filters(self, tv: "ServerTreeView") -> Any | None:
filters = self.prefs.paths.filters
try:
enum = tv.get_enum()
filters = read_json(filters)
return filters[str(enum)]
except Exception:
return None
-399
View File
@@ -1,399 +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.shortcuts import Shortcuts
from dzgui.api.steam import (
connect,
connect_debug,
get_app_allows_downloads,
get_app_name,
get_needs_update,
get_remote_signatures,
get_running_app,
load_to_menu,
subscribe,
)
from dzgui.api.mods import (
get_mod_dir_size,
get_local_mod_ids,
get_local_mod_path,
update_signatures,
)
from dzgui.const.constants import (
API_RATE_LIMIT,
APP_NAME,
APPID_DAYZ,
APPID_DAYZ_EXP,
APPNAME_DAYZ,
APPNAME_DAYZ_EXP_HUMAN,
)
from dzgui.api.steam import is_dayz_running
from dzgui.const.enum import NotebookPage, Preferences
from dzgui.init.proc import is_steam_running
from dzgui.managers.threading import call_on_thread, StoredFunc, ThreadingManager
from dzgui.strings.dialogs import (
waiting_for_launch,
waiting_for_mods,
waiting_for_directories,
)
from dzgui.strings import kb
from dzgui.strings.server_mods import checkmark, resync
from dzgui.util.format import format_exception, 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
is_last_server: bool
invalid_mods: list[tuple[str, str]]
allows_downloads: tuple[bool, str]
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.client: str
self.remote_mod_ids: list[str] = []
self.missing_mods: list[tuple[str, str, int, int]] = []
@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, missing_mods = self._query_modlist(record)
self.missing_mods = missing_mods
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
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(free)
dayz_running = is_dayz_running()
running_app = get_running_app()
if running_app is not None:
allows_dl = get_app_allows_downloads(steam_path, running_app)
running_app_name = get_app_name(running_app)
# NOTE: for out-of-range appid, assume NSG.
# dzgui.api.steam.get_app_name() will return None
if running_app_name is None:
s = Shortcuts(steam_path)
# NOTE: returns "Unknown" if unparseable
running_app_name = s.find_appname_by_unsigned_id(running_app)
allows_downloads = (allows_dl, running_app_name)
else:
allows_downloads = (True, "")
client = self.controller.query_config(Preferences.CLIENT)
client_name = self.controller.get_steam_client_name(client)
running = is_steam_running(client)
steam_proc = SteamProcess(client_name, running)
self.client = client
game_mode = prefs.is_game_mode
is_last = self.is_last_server()
# TODO: strings
invalid_mods = [
(mod[0], mod[1]) for mod in remote_mods if mod[2] == "Invalid mod"
]
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,
is_last_server=is_last,
invalid_mods=invalid_mods,
allows_downloads=allows_downloads,
)
func = StoredFunc(self.controller.open_connection_assistant, prereqs)
self.thread_man.set_cleanup_func(func, destroy_first=True)
def is_last_server(self) -> bool:
prefs = self.controller.get_prefs()
history = prefs.paths.history
try:
lines = history.read_text().splitlines()
last = lines[-1]
current = Servers.record_to_fqip(self.record)
return last == current
except Exception:
return False
@call_on_thread(dialog.querying)
def query_details(self, record: Servers.Record) -> None:
details = Servers.get_details(record)
if details is None:
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
) -> tuple[list[list[str]], list[tuple[str, str, int, int]]]:
mods = Servers.get_rules(record)
steam_path = self.controller.query_config(Preferences.DEFAULT)
local = get_local_mod_ids(Path(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])
prefs = self.controller.get_prefs()
version_file = prefs.paths.version
remote_mod_ids = [mod[1] for mod in alpha_mods]
hashes = get_remote_signatures(remote_mod_ids)
missing_mods = get_needs_update(version_file, hashes)
for mod in alpha_mods:
if any(mod[1] in tuple for tuple in missing_mods):
mod[2] = resync
for mod in alpha_mods:
# NOTE: if the mod is neither synched or out of date, it is a malformed mod
if mod[2] == "":
# TODO: strings
mod[2] = "Invalid mod"
return alpha_mods, missing_mods
@call_on_thread(dialog.querying)
def query_modlist_and_present(self, record: Servers.Record) -> None:
try:
mods, missing_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 _workshop_timeout(self, msg: str) -> None:
dialog = ExceptionDialog(self.controller, msg)
dialog.show_all()
dialog.run()
def _server_timeout(self) -> None:
dialog = ExceptionDialog(self.controller, server_timeout)
dialog.set_details_buffer(kb.DZG_006)
dialog.show_all()
dialog.run()
def get_debug_args(self) -> str:
addr = f"{self.record.ip}:{self.record.gameport}"
playername = self.controller.query_config(Preferences.NAME)
return connect_debug(
self.client, addr, self.appid, playername, self.remote_mod_ids
)
def _connect_steam(self, menu_only: bool) -> None:
addr = f"{self.record.ip}:{self.record.gameport}"
playername = self.controller.query_config(Preferences.NAME)
if menu_only:
rc = load_to_menu(self.client, self.appid, playername, self.remote_mod_ids)
else:
rc = connect(self.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.update_dialog(waiting_for_launch)
while True:
# FIXME: cancel should not be visible here per setting above
if self.controller.is_cancel_pending():
# 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.record)
self.controller.open_page(NotebookPage.SERVERS)
def _update_mods(self, menu_only: bool = False) -> None:
prefs = self.controller.get_prefs()
config_man = self.controller.get_config_man()
key = config_man.lookup(Preferences.STEAM)
for title, mod, stamp, size in self.missing_mods:
if self.controller.is_cancel_pending():
return
try:
subscribe(key, int(mod))
time.sleep(API_RATE_LIMIT)
except Exception as e:
msg = format_exception(e)
func = StoredFunc(self._workshop_timeout, msg)
self.thread_man.set_cleanup_func(func, destroy_first=True)
return
self.thread_man.update_dialog(waiting_for_directories)
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:
if self.controller.is_cancel_pending():
return
time.sleep(1)
while True:
if self.controller.is_cancel_pending():
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)
rebuild_symlinks(prefs.paths.config)
# NOTE: update table status in main loop
self.thread_man.update_emitter("all_mods_synched")
# TODO: just push steam path directly
self._connect_steam(menu_only)
@call_on_thread(waiting_for_mods, show_cancel=True)
def update_and_connect(self, menu_only: bool = False) -> None:
if len(self.missing_mods) > 0:
self._update_mods(menu_only)
else:
self._connect_steam(menu_only)
-118
View File
@@ -1,118 +0,0 @@
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, OfflineModTreeView
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
logger = logging.getLogger(APP_NAME)
if TYPE_CHECKING:
from dzgui.controllers.mc import Controller
class ContextMenuManager:
def __init__(
self,
treeview: (
LogTreeView
| ModTreeView
| ServerTreeView
| ServerModTreeView
| OfflineModTreeView
),
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, OfflineModTreeView)):
match action:
case ContextMenu.UNSUB_MOD:
self.controller.unsub_mods(self.treeview)
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)
-127
View File
@@ -1,127 +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, show_empty: bool = False, show_full: bool = False) -> 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: show_empty,
strings.filter_3pp: True,
strings.filter_night: True,
strings.filter_full: show_full,
strings.filter_official: True,
strings.filter_nonascii: False,
strings.filter_lowpop: True,
strings.filter_unofficial: True,
strings.filter_duplicate: False,
strings.filter_modded: True,
}
# TODO: strings
self.tooltips = {
strings.filter_1pp: "First-person perspective",
strings.filter_day: "In-game time between 0600 and 1759",
strings.filter_empty: "Servers with no players",
strings.filter_3pp: "Third-person perspective",
strings.filter_night: "In-game time between 1800 and 0559",
strings.filter_full: "Servers with no open slots",
strings.filter_official: "Bohemia official servers",
strings.filter_nonascii: "Server names using non-standard, complex glyphs",
strings.filter_lowpop: "Current population is under 30% of total",
strings.filter_unofficial: "Third-party servers",
strings.filter_duplicate: "Duplicates of existing servers (usually spoofed)",
strings.filter_modded: "Servers with one or more mods",
}
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 get_tooltips(self) -> dict[str, str]:
return self.tooltips
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:
self.reinit_map_store()
return
self.reinit_map_store()
maps.sort()
for m in maps:
# TODO: strings
if m == "All maps":
continue
self.append_map([m])
# TODO: currently unused
def get_unique_maps(self) -> list[str]:
return [row[0] for row in self.map_store if row[0] != "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)
-227
View File
@@ -1,227 +0,0 @@
import logging
import time
from pathlib import Path
from typing import TYPE_CHECKING
from dzgui.api.steam import unsubscribe
from dzgui.api.mods import (
get_delimited_mods,
find_stale_mods,
_hash,
remove_stale_signatures,
)
from dzgui.const.constants import (
API_RATE_LIMIT,
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.strings import dialogs
from dzgui.util.format import format_mods
from dzgui.util.symlink import rebuild_symlinks
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, tree: Gtk.TreeView, controller: "Controller") -> None:
self.treeview = tree
self.controller = controller
self.emitter = controller.get_emitter()
self.prefs = controller.get_prefs()
self.path = controller.query_config(Preferences.DEFAULT)
self.store: FastInsertListStore | None = None
self.thread_man = ThreadingManager(controller)
@call_on_thread(dialogs.fetching_mods)
def load_mods(self) -> None:
mods = get_delimited_mods(Path(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
prefs = self.controller.get_prefs()
rebuild_symlinks(prefs.paths.config)
self.store = ModelFactory().make_mod_store()
self.store.extend(mods)
func = StoredFunc(self._on_mods_loaded)
self.thread_man.set_cleanup_func(func)
def set_store(self, store: "FastInsertListStore") -> None:
self.store = store
def _on_mods_loaded(self) -> None:
self.treeview.set_model(self.store)
if self.store is None:
return
msg = self.format_mod_statusbar()
total_mods = len(self.store)
self.emitter.emit("mods_updated", msg, total_mods)
def unsub_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.thread_man.set_job_count(len(mods))
self.unsub_all_mods(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
@call_on_thread(dialogs.deleting_mods)
def unsub_all_mods(self, mods: list[tuple[str, Gtk.TreeIter]]) -> None:
for mod, _iter in mods:
self.unsub_atomic_mod(mod)
self.thread_man.increment_dialog()
time.sleep(API_RATE_LIMIT)
func = StoredFunc(self._on_mods_unsubbed, mods)
self.thread_man.set_cleanup_func(func)
def unsub_atomic_mod(self, mod: str) -> None:
config_man = self.controller.get_config_man()
key = config_man.lookup(Preferences.STEAM)
try:
unsubscribe(key, int(mod))
except Exception as e:
logger.critical(e)
return
steam_path = Path(self.path)
app_path = PeFile.get_nested_app_path(steam_path, APPID_DAYZ)
try:
md5 = _hash(mod)
symlink = app_path / md5
symlink.unlink()
except Exception as e:
logger.warning(e)
# 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 Exception:
pass
time.sleep(API_RATE_LIMIT)
def _on_mods_unsubbed(self, mod_iter: list[tuple[str, Gtk.TreeIter]]) -> None:
mods = [int(mod) for mod, _iter in mod_iter]
iters = [_iter for mod, _iter in mod_iter]
if self.store is None:
return
for _iter in iters:
self.store.remove(_iter)
# TODO: process config path in called function
remove_stale_signatures(self.prefs.paths.config, self.prefs.paths.version, mods)
model = self.treeview.get_model()
if model is None:
return
total_mods = len(model)
msg = self.format_mod_statusbar()
self.emitter.emit("mods_updated", msg, total_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")
@call_on_thread(dialogs.scanning_mods)
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 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)
-45
View File
@@ -1,45 +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
try:
self.cache: dict[str, str] = read_json(self.notes_path)
except Exception:
self.cache = {}
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)
-133
View File
@@ -1,133 +0,0 @@
import logging
import time
from pathlib import Path
from typing import Callable, TYPE_CHECKING, Union
import dzgui.api.pefile as PeFile
from dzgui.api.mods import is_mission, get_custom_mods
from dzgui.api.steam import is_dayz_running, launch_offline
from dzgui.const.constants import APP_NAME, 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 ModelFactory
from dzgui.strings import dialogs
from dzgui.util.symlink import create_custom_symlinks, rebuild_symlinks, symlink_mission
from dzgui.views.dialogs.filepicker import FolderPicker
if TYPE_CHECKING:
from dzgui.controllers.mc import Controller
from dzgui.model.model_factory import FastInsertListStore
logger = logging.getLogger(APP_NAME)
class OfflineManager:
def __init__(
self,
controller: "Controller",
) -> None:
super().__init__()
self.controller = controller
self.emitter = controller.get_emitter()
self.thread_man = ThreadingManager(controller)
self.appid: int
self.local_mods: list[str] | None
self.custom_mods: list[str] | None
# TODO: more robust test
def is_custom_folder_valid(self, folder: str) -> bool:
return Path(folder).exists()
# TODO: set properties as members of offline manager on demand and check them here
# rather than passing strings again
def is_mission_valid(self, folder: str) -> bool:
return is_mission(Path(folder))
def get_mission(self) -> None:
folder = self.open_folderpicker(dialogs.mission_dialog)
if folder is None:
return
is_valid = is_mission(folder)
self.emitter.emit("custom_mission_loaded", str(folder), is_valid)
def find_custom_mods(self, callback: Callable) -> None:
folder = self.open_folderpicker(dialogs.custom_mod_dialog)
window = self.controller.get_window()
window.set_sensitive(False)
if folder is None:
window.set_sensitive(True)
return
# NOTE: starts spinner in calling UI
callback()
self.parse_custom_mods(folder)
@call_on_thread(dialogs.parsing_mods, show_dialog=False)
def parse_custom_mods(self, folder: str) -> None:
mods = get_custom_mods(Path(folder))
store = ModelFactory().make_mod_store()
store.extend(mods)
func = StoredFunc(self.post_mod_loading, store, folder)
self.thread_man.set_cleanup_func(func)
def post_mod_loading(self, store: "FastInsertListStore", folder: str) -> None:
window = self.controller.get_window()
window.set_sensitive(True)
self.emitter.emit("custom_mods_loaded", store, folder)
@call_on_thread(dialogs.waiting_for_launch, show_cancel=True)
def launch(
self,
appid: int,
mission: str,
local_mods: list[str],
custom_folder: str,
custom_mods: list[str],
) -> None:
# NOTE: local_mods and custom_mods are lists of symlinks
client = self.controller.query_config(Preferences.CLIENT)
name = self.controller.query_config(Preferences.NAME)
steam_path = self.controller.query_config(Preferences.DEFAULT)
combined_mods: list[str] = []
if len(local_mods) > 0:
combined_mods.extend(local_mods)
config = self.controller.get_prefs().paths.config
rebuild_symlinks(config)
if len(custom_mods) > 0:
new_symlinks = create_custom_symlinks(
Path(steam_path), Path(custom_folder), custom_mods
)
combined_mods.extend(new_symlinks)
relative_link = ""
if len(mission) > 0:
relative_link = symlink_mission(Path(steam_path), mission)
launch_offline(client, appid, name, combined_mods, relative_link)
while True:
if is_dayz_running():
break
time.sleep(1)
def open_folderpicker(self, title: str) -> Union["Path", None]:
picker = FolderPicker(self.controller.get_window(), title)
folder = picker.pick_folder()
picker.destroy()
return folder
def has_dayz_exp(self) -> bool:
try:
default_steam_path = self.controller.query_config(Preferences.DEFAULT)
steam_path = Path(default_steam_path)
dayz_exp = PeFile.get_pretty_version(steam_path, APPID_DAYZ_EXP)
if dayz_exp is None:
return False
return True
except Exception as e:
logger.warning(e)
return False
-132
View File
@@ -1,132 +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) -> Any:
return 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_emitter(self, signal: str) -> None:
if self.controller:
emitter = self.controller.get_emitter()
GLib.idle_add(lambda: emitter.emit(signal))
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:
self.set_cleanup_func(None)
func.call()
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)
-68
View File
@@ -1,68 +0,0 @@
import logging
import requests
import shutil
import subprocess
import tarfile
from typing import TYPE_CHECKING
from dzgui.const.constants import (
APP_NAME,
TMP_EXE,
TMP_PATH,
TMP_TARBALL,
)
from dzgui.strings import dialogs
from dzgui.managers.threading import call_on_thread, StoredFunc, ThreadingManager
from dzgui.views.dialogs.generic import ExceptionDialog, QuitDialog
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GLib # noqa E402
if TYPE_CHECKING:
from dzgui.controllers.mc import Controller
logger = logging.getLogger(APP_NAME)
class UpdateManager:
def __init__(self, controller: "Controller") -> None:
self.thread_man = ThreadingManager(controller)
self.controller = controller
@call_on_thread(dialogs.fetching_update)
def update_version(self, exe_path: str, url: str) -> None:
try:
res = requests.get(url)
if res.status_code == 200:
with open(TMP_TARBALL, "wb") as file:
file.write(res.content)
with tarfile.open(TMP_TARBALL) as tar:
tar.extractall(TMP_PATH)
shutil.copy(TMP_EXE, exe_path)
proc = subprocess.run([exe_path, "self", "restore"])
if proc.returncode == 0:
func = StoredFunc(self._on_update_success)
self.thread_man.set_cleanup_func(func, destroy_first=True)
else:
msg = dialogs.failed_to_update
func = StoredFunc(self._on_update_failure, msg)
self.thread_man.set_cleanup_func(func, destroy_first=True)
except Exception as e:
func = StoredFunc(self._on_update_failure, str(e))
self.thread_man.set_cleanup_func(func, destroy_first=True)
logger.warning(e)
def _on_update_success(self) -> None:
msg = dialogs.update_success
dialog = QuitDialog(self.controller, msg)
dialog.run()
def _on_update_failure(self, msg: str) -> None:
dialog = ExceptionDialog(self.controller, msg)
dialog.show_all()
dialog.run()
-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.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:
store.append(record)
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)
# def convert_model_to_list(self, model: "FastInsertListStore") -> list:
# return [[el for el in row] for row in model]
-299
View File
@@ -1,299 +0,0 @@
import re
from typing import Any, TYPE_CHECKING, Union
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
DAY_REG = r"([0][6-9]|[1][0-7])"
NIGHT_REG = r"([0][0-5]|[1][8-9]|[2][0-3])"
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:
rows = [row for row in rows if not re.match(DAY_REG, row[3])]
case strings.filter_night:
rows = [row for row in rows if not re.match(NIGHT_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
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)
cur_keyword = self.filter_man.get_active_keyword()
mode = FilterMode.TOGGLE_ON if len(cur_keyword) > 0 else FilterMode.INITIAL
self.filter(mode)
-454
View File
@@ -1,454 +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.strings import dialogs, kb
from dzgui.util.strings import server_timeout, dialog
from dzgui.views.dialogs.generic import ExceptionDialog
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
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
self.emitter.emit("lan_page_initialized")
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, show_cancel=True)
def dump_lan(self, port: int, early_abort: bool) -> None:
self.first_iteration = True
servers = []
ports = range(1, 256)
failure_func = StoredFunc(self._cleanup_on_lan_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.is_cancel_pending():
event.set()
return
res = future.result(timeout=LAN_TIMEOUT)
if res is None:
continue
servers.append(res)
if early_abort is True:
# NOTE: on first non-empty hit, flag pending threads to close
event.set()
break
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
self.thread_man.increment_dialog()
"""
Collects futures in linear order after completion
for lock-step representation of the state file
"""
for future in futures:
res = future.result(timeout=API_TIMEOUT)
# NOTE: failing entries are culled
if res is None:
# TODO: log which servers failed
# query_direct() currently does not return enough information
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_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()
if rows is not None:
records = rows
else:
control_model = proxy_man.get_control()
records = control_model
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)
store = filter_man.get_map_store()
self.first_iteration = False
self.emitter.emit("load_maps", store)
# TODO: dataclass for record rows; check for other dict annotations
def add_to_history(self, data: tuple[dict[str, Any], "Record"]) -> None:
row, record = data
proxy_man = self._get_proxy_man()
rows = Servers.parse_json([row])
try:
proxy_man.append_row_to_history(rows[0])
self.update_history()
except Exception:
self.update_history(rows)
fqip = Servers.record_to_fqip(record)
config_man = self.controller.get_config_man()
config_man.update_history_file(fqip)
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()
@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)
if self.controller.get_active_treeview().get_enum() == ServerTab.SAVED:
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)
store = filter_man.get_map_store()
self.emitter.emit("load_maps", store)
self.first_iteration = False
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())
store = filter_man.get_map_store()
self.emitter.emit("load_maps", store)
self.first_iteration = False
def _cleanup_on_success(self) -> None:
proxy = self.proxy_man.get_proxy_model()
self.tv.set_model(proxy)
if self.tv.enum == ServerTab.BROWSER:
GLib.idle_add(self.tv.wipe_cache)
if self.preserve_on_fail is True:
self.proxy_man.wipe_cache()
self.emitter.emit("servers_loaded", self.enum)
if self.first_iteration:
self._update_maps()
def _cleanup_on_lan_failure(self, show_dialog: bool = True) -> None:
if self.preserve_on_fail is False:
self.tv.set_model(None)
filter_man = self.tv.get_filter_man()
filter_man.set_unique_maps([])
if show_dialog:
dialog = ExceptionDialog(self.controller, dialogs.load_error_lan)
dialog.show_all()
dialog.run()
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, server_timeout)
dialog.set_details_buffer(kb.DZG_006)
dialog.show_all()
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"
-7
View File
@@ -1,7 +0,0 @@
heading_local_time = "Local time"
heading_server_time = "In-game time"
heading_target_time = "Target time"
heading_remainder_time = "Remainder until target"
heading_adjusted_time = "Adjusted local time"
calculate = "Calculate"
disclaimer = "Times shown are approximations.\nServer time may differ based on time of year in game."
-2
View File
@@ -1,2 +0,0 @@
collapse_all = "Collapse all"
expand_all = "Expand all"
Loaded 100 of 275 files, more files were not shown because too many files have changed in this diff. Show more