Commit graph

8013 commits

Author SHA1 Message Date
Daniel Johnson b015b6c223 Update .flake8 to be compatible with flake8 v6, which has strange rules about where comments can go.
https://github.com/pycqa/flake8/issues/1689
2022-12-23 13:33:54 -05:00
Daniel Johnson 8fcb6d71e3 Whoops, must use pop not del when the dict key might be missing already. 2022-12-20 19:43:24 -05:00
Daniel Johnson eb25d0df12 Add myself to AUTHORS 2022-12-20 16:02:17 -08:00
Daniel Johnson 01320ba940 Clean up the prefered-launch-config wrangliing. Use local functions to organize this.
Also, the terminology is "config" not "command" for this.
2022-12-20 16:02:17 -08:00
Daniel Johnson d32b45c7c1 Remember the selected launch-config's index too
We need the index because the names are not always unique!
2022-12-20 16:02:17 -08:00
Daniel Johnson 41ef454fbb Factor the launch config dialog into a separate method, 2022-12-20 16:02:17 -08:00
Daniel Johnson 2fb0b41251 Fix bugged config index selection 2022-12-20 16:02:17 -08:00
Daniel Johnson e6b667bb99 Add 'Reset' Button for launch config selection in the configuration dialog 2022-12-20 16:02:17 -08:00
Daniel Johnson 9ed0f3cb53 Add a 'don't ask again' checkbox to the launch config select dialog 2022-12-20 16:02:17 -08:00
Daniel Johnson d6ee7d03eb Fix for GOG auto-installer generation with launch configs
This change makes the auto-installer generate absolute paths for the working_dir, just as it does for the "exe".

In my testing they are both relative to the gog_game_path, so this causes a correct config to be generated.

My previous hackjob remains so that existing configurations woth bad working directories can still work.
2022-12-20 17:47:54 -05:00
Daniel Johnson ffdc7f1f8e Fix get_launch_config_working_dir to actually check for the working_dir's existance, like it says. 2022-12-20 17:34:52 -05:00
Daniel Johnson 6e26f47b6f Repair launch_config paths, especially for WINE games.
We're getting bogus paths in the launch_config options from GOG auto-generated
installers. They have backslashes (boo!) and the "exe" entry is a partial path
that is relative to the *games* working directory, but launch_config may have
its own. Use both together and it all falls apart.

This PR adds logic to fix Windows paths for the WINE runner only, replacing
\ with / and fixing casing.

It also detects when the "exe" is present relative to the game's directory but
not the configs, and generates a new "exe" relative to the config's working
directory if it can.

Resolves #4662
2022-12-17 09:05:50 -05:00
Daniel Johnson e6efe2366d Credit to the artist 'hazelnot' for the welcome graphics 2022-12-15 16:49:39 -05:00
Amy Gauna b37661911c Initial commit of publish PPA GitHub workflow.
- Adds a new GitHub workflow that triggers on published releases.
- Adds a supporting Bash script to facilitate the building and signing process.
- Adds a new directive to the Makefile for passing a GPG key id to the make process through environment variables.
2022-12-12 20:34:51 -08:00
Daniel Johnson 9825d27cef
Merge pull request #4650 from GoGoOtaku/patch-1
Fix playtime no recording
2022-12-12 19:04:33 -05:00
GoGo de Sica d57d50c36f
Fix playtime no recording
After closing a game a TypeError `can only concatenate str (not "float") to str` was raised on uninitialized playtime.
This fix just forces playtime to be loaded as float instead of string.
2022-12-12 23:11:58 +01:00
Daniel Johnson 1fd2ff7292 Double migration!
Do migration early if any command line options are present, but do it in the
init dialog if that is shown.

This may result in migration being run twice, but the second time does nothing.

The advantage is that in normal startup (non CLI) scenarios, migration (whcih can take some time) runs while the init dialog is up

Resolves #4646
2022-12-11 16:36:39 -05:00
Daniel Johnson cf95fe7d99 Smarter launch-config command building
This way the linux runner can apply it's 'exe' setting without any prefixing
command like WINE has. This makes launch-configs work for the linux runner.

Also, launch_configs can now outright specify a command key to override
the normal command building stuff.

Resolves #4637
2022-12-07 17:51:34 -05:00
Mathieu Comandon b90e349294 Lutris can use libwine package to satisfy dependencies 2022-12-03 14:35:13 -08:00
Mathieu Comandon f73603dc51 Revert "Remove remaining uses of libnotify"
This reverts commit 5c20dff48d.
2022-12-02 13:51:18 -08:00
Mathieu Comandon dcde7f5280 Revert "Bump Webkit2 dependency to 4.1"
This reverts commit 5c2cf7be51.
2022-12-02 13:51:03 -08:00
Mathieu Comandon 10933ba920 Add changelog note for xemu 2022-12-01 13:32:28 -08:00
Daniel Johnson ca442a7637
Merge pull request #4622 from pjolles/patch-1
Fixed de.po
2022-11-29 16:35:21 -05:00
Mathieu Comandon 027a55e2b7 Pylint fixes 2022-11-28 22:27:40 -08:00
Mathieu Comandon 65f2dbabd4 Fix request for Amazon Games 2022-11-28 18:46:16 -08:00
pjolles b8e05da346
Update de.po
Fixed de.po
2022-11-29 02:52:35 +01:00
Mathieu Comandon cb5916e500
Merge pull request #4579 from wbrtm/patch-1
New and improved translations
2022-11-28 15:23:40 -08:00
Mathieu Comandon c75f9f9779
Merge pull request #4598 from winegame/upstream
Adding an "unspecified" option to the Vulkan ICD Loader (#4540)
2022-11-28 15:21:33 -08:00
Daniel Johnson c8cef43808
Merge pull request #4580 from lutris/dj/zenity_in_winetricks
Adds logic to find a copy of zenity stashed in the winetricks runtime package
2022-11-28 17:09:04 -05:00
Mathieu Comandon dd189b537c Update Pylintrc for newer version 2022-11-28 13:39:18 -08:00
Mathieu Comandon cbe6451acd Handle PermissionError when reading /sys/class/drm 2022-11-28 12:44:05 -08:00
Daniel Johnson a69542c524 Adds logic to find a copy of zenity stashed in the winetricks runtime package, if it is there.
We have to update the PATH and set the working directory so we can find
zenity, and it can find its data file.

This will only work if winetricks has zenity in it; there's a separate PR for that.

Resolves #4231
2022-11-26 19:49:38 -05:00
Daniel Johnson 04c342b42a Prophylactic code- don't fails too hard if Steam .VDFs are corrupt
We should be able to use WINE without Proton even if Steam is b0rked.

This commit will cause Lutris to see no Proton locations at all if the Steam
config is unreadable.
2022-11-26 18:13:38 -05:00
Daniel Johnson b8620311d7 Pass the working_dir through from the launch config selection
Resolves #4611
2022-11-25 08:48:47 -05:00
Daniel Johnson f626ca8cec Actually apply the working_dir from the launch configuration that user selects. 2022-11-25 05:50:09 -05:00
Daniel Johnson 03f6833024 If VK_ICD_FILENAMES is set, the default ICD loader should be 'Auto' and will respect this setting.
Resolves #4610
2022-11-25 05:31:44 -05:00
Daniel Johnson 25b8cde0b2 Use a slightly fancier user agent for Origin
They seem to like it like that.
2022-11-15 19:02:21 -05:00
Daniel Johnson dfbfb2628a Re-introduce extractor format "bz2"
It's less logical than the new "tbz2" code, but existing installer scripts use it.

(Untreal Tournament 1999 CD installer is affected)

Resolves #4600
2022-11-15 18:52:26 -05:00
SwimmingTiger a95866d349 (i18n) update zh_CN translation for the new Vulkan ICD loader option 2022-11-13 14:53:50 +08:00
SwimmingTiger 86abf9c012 Adding an "unspecified" option to the Vulkan ICD Loader (#4540)
It would allow switching graphics cards in-game.

See https://github.com/lutris/lutris/issues/4540 for more details.
2022-11-13 14:49:57 +08:00
Daniel Johnson 2df5621565 Handle missing runner more gracefull for cache-managed check 2022-11-11 16:11:29 -05:00
Daniel Johnson 2f474ffedc Ooops, remove debugging code
I didn't mean to leave that in, it defeats the whole point of the except here!
2022-11-04 17:04:26 -04:00
Daniel Johnson 6a4150f628 Add defensive 'except' clauses for cases where the Steam VDF file is unreadable
Steam corruption shouldn't prevent Lutris from working outside of Steam support.

This PR logs the errors, but continues. Steam functionality
may not work, but everything else will.
2022-11-03 18:18:38 -04:00
Mathieu Comandon 30d1ee3e97 Add xemu runner 2022-11-01 20:43:44 -07:00
Daniel Johnson bcc69327cc Placate flake8!
These imports were using for tests that have been removed.
2022-10-30 15:00:25 -04:00
Daniel Johnson 4d57ddba5e Do not block waiting for xdg-open to exit
Resolves #4578
2022-10-27 18:22:35 -04:00
Tim f5bf835397
New and improved translations 2022-10-27 17:31:56 +02:00
Mathieu Comandon 7ed1b5fd69
Merge pull request #4568 from diegoptc/master
Changed link instructions to install wine
2022-10-26 11:32:49 -07:00
Mathieu Comandon e4e066aebc Remove sdl2_ttf on MAME 2022-10-25 16:27:13 -07:00
Mathieu Comandon e0dbe3b29f Mark SDL2_ttf as a requirement for MAME 2022-10-25 16:15:36 -07:00