Commit Graph

279 Commits

Author SHA1 Message Date
kramo
fc2932f7dd Cleanups 2023-03-24 22:56:12 +01:00
Bananaman
973ec01b38 Cleanup: Remove pointless calls to close()
Since "with open()" automatically closes the files anyway.
2023-03-24 22:37:01 +01:00
Bananaman
214687c9ce Cleanup: Remove backwards-compatible code
Since we aren't interested in backwards compatibility this early in development, let's remove those code chunks to keep the code shorter.
2023-03-24 22:35:55 +01:00
Bananaman
703c65395c Improved game executable launcher, and added argument validation
Now uses proper shell escaping and parsing for all executable arguments, for more robust game launching. All existing game JSON files with the old string values will automatically be converted to the new format on app launch. The executable parsing uses the "shlex" library, which guarantees accurate parsing.

We now also use direct process launching (without any intermediary shell) by default, but the old "shell"-based launch method still exists in the code via an alternative flag in `run_command.py` (if we ever need to restore it for some reason).

Furthermore, if the user attempts to manually write an improperly escaped argument into the game's details (such as missing closing quotation marks), the GUI will now alert the user that their executable argument is invalid, along with telling them the exact reason why it's invalid.
2023-03-24 22:03:39 +01:00
Bananaman
eda22c7ea7 Move game data JSON formatter to re-usable location 2023-03-24 22:03:39 +01:00
kramo
bbf3703229 Cleanups 2023-03-24 21:53:55 +01:00
kramo
06550c0138 Fix heroic image string 2023-03-24 21:17:07 +01:00
kramo
4401378ce3 Use fstrings consistently 2023-03-24 21:07:08 +01:00
kramo
a665241d76 Disable some pylint warnings 2023-03-24 20:29:36 +01:00
Domenico
053d5791a4 Refactory of the code (#19)
* Refactory of the code

* Autoformatting with black

---------

Co-authored-by: Domefemia <domefemia@hotmail.com>
2023-03-24 20:26:55 +01:00
kramo
8ddf609815 Use shlex for escaping quotes 2023-03-24 17:54:14 +01:00
kramo
51c500a7aa Proper escapes for Bottles executables 2023-03-24 17:31:08 +01:00
kramo
863a5e6eb5 Fix import from Heroic if no Epic games 2023-03-24 17:02:46 +01:00
kramo
d5a640bd0b Add progress bar + fix race condition 2023-03-24 14:07:16 +01:00
kramo
67c1b25429 v0.1.4 2023-03-22 17:35:56 +01:00
kramo
b281a4bd0d Cleanups 2023-03-22 08:36:37 +01:00
kramo
86dae1f972 Add support for multiple Steam library directories 2023-03-21 15:40:21 +01:00
kramo
2acd0025e5 Fix "removed" string 2023-03-20 19:55:03 +01:00
kramo
921968bec3 Properly launch games on Windows 2023-03-20 19:29:55 +01:00
kramo
fd6bb12e82 v0.1.3 2023-03-19 16:07:40 +01:00
kramo
57be95137c Update translations 2023-03-19 13:12:35 +01:00
kramo
a4cc224aa5 Update translations 2023-03-19 12:56:00 +01:00
kramo
ba944fdaab Revert to resolve Weblate conflict 2023-03-19 12:53:49 +01:00
kramo
224890261b Use ellipsis instead of ... 2023-03-19 12:43:59 +01:00
kramo
cad5c3fd36 Update translations 2023-03-19 12:42:00 +01:00
kramo
012959c57b Add tooltip for exxecutables 2023-03-19 12:04:15 +01:00
kramo
c5b263c71e Prepare for Windows builds 2023-03-19 01:07:11 +01:00
kramo
516c020cbc Allow building as a non-flatpak app 2023-03-16 17:24:03 +01:00
kramo
bb159f6503 Use TIFF for transparency 2023-03-16 01:32:56 +01:00
kramo
fd395dfa36 Cleanups 2023-03-16 01:09:56 +01:00
kramo
eb3f9a8b8e Use blacklist for non-game items 2023-03-15 23:46:34 +01:00
kramo
0b3beed6d8 Add timeout for Steam import 2023-03-15 23:06:04 +01:00
kramo
6ab17cfb1b Title style 2023-03-15 21:15:21 +01:00
kramo
dac518aabd Update translations 2023-03-15 21:13:29 +01:00
kramo
86f707694d Use Steam API as the local cache is not reliable 2023-03-15 21:08:37 +01:00
kramo
56f5d99b89 Remove non-games from Steam import 2023-03-15 13:27:48 +01:00
kramo
e2a2ea6da2 Add developer property 2023-03-15 13:12:48 +01:00
kramo
8a2ff2561b Cleanups 2023-03-15 02:22:11 +01:00
kramo
bd0cf7402a Code style 2023-03-15 01:57:43 +01:00
kramo
e4002fb786 Use JPEG for covers 2023-03-14 23:08:04 +01:00
kramo
f416155c2d Update code style 2023-03-14 23:05:47 +01:00
kramo
32d9f9a880 Cleanups 2023-03-14 21:20:59 +01:00
kramo
41762648b2 Update potfile 2023-03-14 18:52:06 +01:00
kramo
24eac24c33 Better image handling 2023-03-14 18:42:05 +01:00
kramo
094bfad10d Cleanups 2023-03-14 17:21:16 +01:00
kramo
a4b1b8efd9 Refactor 2023-03-14 16:48:00 +01:00
kramo
e208434711 Save deflated pixbuf data instead of .png 2023-03-14 14:32:51 +01:00
kramo
35185205e3 Async image saving 2023-03-13 23:09:51 +01:00
kramo
3af1e42548 Save covers compressed 2023-03-13 21:35:44 +01:00
kramo
f57f8d0d67 Update cover image size 2023-03-13 20:58:35 +01:00