Commit graph

7600 commits

Author SHA1 Message Date
Mathieu Comandon
58baae92a9 Update to 0.5.10.1 2022-04-18 19:16:52 -07:00
Mathieu Comandon
c0a6c0728e Improve logging for Steam games detection 2022-04-18 18:53:09 -07:00
Mathieu Comandon
a76d26b991 Add logging for Steam game matching 2022-04-18 18:46:03 -07:00
Daniel Johnson
d2e1715839 Check for DEBUG log level
So if the -d flag was not used, we don't re-execute xrandr even for an
error.
2022-04-16 16:47:20 -07:00
Daniel Johnson
f68c872669 If we can get no resolution from xrandr, substitute a fake one and log
If we can get no resolutions (or no current resolution) we fall back on
1280x720 so we have something.

if this happens, write the entire xrandr output to the (debug) log.

This is a bit crude, and re-runs xrandr to log the output. But that is only in the failure case.
2022-04-16 16:47:20 -07:00
Daniel Johnson
ec5f7d737a Sort and dedup the resolutions from LegacyDisplayManager
Also remove get_unique_resolutions(), which is not called
2022-04-16 16:47:20 -07:00
Mathieu Comandon
d08e283b12 Remove usage of ubuntu12_32/steam in flatpak 2022-04-16 16:46:31 -07:00
Mathieu Comandon
86798d9e8c Quit Lutris if launched from a shortcut but option to hide client on start is active 2022-04-16 16:33:47 -07:00
Mathieu Comandon
c49dc6e85e Update Fsync requirement 2022-04-16 15:24:37 -07:00
Daniel Johnson
69971a7a64 Fix download timeout measurement
Using .seconds can't return more than a days worth of seconds, so
downloads stop working if you don't get them after a day of inactivity.

So, total_seconds() for the win
2022-04-16 15:04:08 -07:00
Mathieu Comandon
0cba7b7327 Handle permission errors when deleting existing folders 2022-04-14 21:37:27 -07:00
Mathieu Comandon
4a174777a0 Move .steam/debian-installation as 1st candidate for STEAM_DATA_DIRS 2022-04-13 16:47:06 -07:00
Mathieu Comandon
de29aabd92 Simplify steam type runner test, winesteam is deprecated 2022-04-13 16:44:19 -07:00
Daniel Johnson
a518659349 Handle case where no versions of a WINE dll-manager thingy are installed
In this case the version is None, and it crashes. Avoid the crash,
and you get to the proper
handling- it can download things or give an error.
2022-04-12 01:04:55 -07:00
Mathieu Comandon
5780025266 Remove class attribute for Flatpak path 2022-04-11 17:29:31 -07:00
Mathieu Comandon
50cdc65e77 Simplify MangoHUD option 2022-04-11 17:26:47 -07:00
Mathieu Comandon
09371fe553 Reorder imports 2022-04-11 16:56:12 -07:00
Mathieu Comandon
7802c2b952 Create shortcuts compatible with Flatpak 2022-04-11 16:51:40 -07:00
Mathieu Comandon
f4a597a443 Disable XDG service in Flatpak, look for Steam exe in home folder 2022-04-11 16:46:19 -07:00
Mathieu Comandon
28433c6de7 Pull steam executable from home folder in Flatpak 2022-04-11 16:42:23 -07:00
Mathieu Comandon
c6ac845b79 Remove ability for Lutris to quit Steam 2022-04-11 16:28:07 -07:00
Daniel Johnson
8b659d7f38 Provide error handling when counting the Steam shortcuts
This way if a shortcuts.vdf file cannot be read or interpreted, we hide
relevant commands (but non-Steam commands should remain).

Added a comment to all_shortcuts_set() explaining what I think it is meant to
do. If I'm right, it's still slightly buggy.

I provide no error handling in has_steamtype_runner() or vdf_file_exists()
as I think these are not as likely to have errors (though anything can
raise exceptions of course).
2022-04-11 16:16:32 -07:00
Daniel Johnson
31b9e46e9f Raise errors from is_launchable() when possible
This apparently harmless method pops a lot of dialogs, but some are
warnings.

This removes the runner-not-installed error dialog, which appears after a
warning to the same effect. The user just said no to this, he knows about it.

This makes the launch method also signal game-error, without which these
exceptions are not reported at all.

Also, improves the game-error handling to handle an entire exception,
and logger.exception().
2022-04-11 15:43:27 -07:00
Yurin Doctrine
293ed419a5 update vulkan and esync hrefs 2022-04-11 14:14:59 -07:00
Miguel Barrio Orsikowsky
90d9fb3df9 Updated Spanish last translator 2022-04-11 14:14:35 -07:00
Miguel Barrio Orsikowsky
4181a265c6 Update Spanish translation 2022-04-11 14:14:35 -07:00
Miguel Barrio Orsikowsky
3043f5b99e Update Spanish translation 2022-04-11 14:14:35 -07:00
Heimen Stoffels
3f956028f5 Updated Dutch translation 2022-04-11 14:14:21 -07:00
Adel KARA SLIMANE
66dbcf8c0d Vulkan loaders: separate amdvlk and amdgpu-pro when possible
- Relax condition for finding an amd vulkan loader to the presence
  of the "amd" keyword
  - If "pro" is also contained in the same loader file, then recognise
    as proprietary amdgpu-pro driver
  - Otherwise cannot separate between them and offer the old naming scheme

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
2022-04-11 14:13:14 -07:00
Mathieu Comandon
7c0f4f0e83
Merge pull request #4192 from eli-schwartz/meson-minimum-version
meson: specify minimum required version
2022-04-11 14:10:22 -07:00
Mathieu Comandon
0eb39e830a
Merge branch 'master' into meson-minimum-version 2022-04-11 14:10:11 -07:00
Maximiliano Sandoval R
f52a7308bf meson: Add post install scrip
Makes sure the icons and desktop file are installed
2022-04-11 14:09:21 -07:00
Maximiliano Sandoval R
dc1be9c871 meson: Use glib preset for i18n.gettext
It takes into account multiple glibisms.
2022-04-11 14:09:21 -07:00
Maximiliano Sandoval R
1a8a98aff1 meson: Validate metainfo and desktop file 2022-04-11 14:09:21 -07:00
Daniel Johnson
cc5e77f252 Fix comment type-o 2022-04-11 14:06:52 -07:00
Daniel Johnson
8446815440 Try make take steam shortcuts more tolerant
I think that sometimes the appname is listed as 'appname', in
lower-case.

This checks for that, and also avoids the crash if there is no app name
anyway.
2022-04-11 14:06:52 -07:00
Maximiliano Sandoval R
77c978ae53 Remove keyring dependency
The file util/keyring.py is not imported anywhere and the keyring
dependency has a big chain of dependencies.
2022-04-11 13:59:56 -07:00
Mathieu Comandon
a3405e71a8
Merge pull request #4209 from danieljohnson2/dj/fsync_default_subtlety
Default fsync to on only if supported
2022-04-11 13:57:35 -07:00
Mathieu Comandon
409fbfa86d
Merge pull request #4203 from danieljohnson2/dj/platform_what_platform
Remove strange 'platform' lookup in print_steam_folders
2022-04-11 13:57:05 -07:00
Mathieu Comandon
e39dd467ac
Merge pull request #4212 from riQQ/fix-lint-import-order
Fix lint error about order of imports
2022-04-11 13:54:36 -07:00
riQQ
6e5743e357
Fix lint error about order of imports 2022-04-11 12:37:05 +02:00
Mathieu Comandon
0f4d5bd68b
Merge pull request #4205 from danieljohnson2/dj/error_256_no_more
WINE should use 'baseenv' not 'wineenv' when blocking
2022-04-10 18:19:31 -07:00
Daniel Johnson
2a3803deda Default fsync to on only if supported
Just have the default depend on weather fsync is supported at all.
2022-04-10 07:37:33 -04:00
Daniel Johnson
0076056c05 Use 'baseenv' not 'wineenv' when blocking
It needs to be consistent, I think.

This change allows 'Osu!' to install, probably other things too.
2022-04-09 18:30:45 -04:00
Mathieu Comandon
c8fef40b4f Separate banner and cover handlers 2022-04-08 17:55:15 -07:00
Mathieu Comandon
54310f70a1 Remove quotes around launch options 2022-04-08 17:50:12 -07:00
Mathieu Comandon
87e14d6228 Change executable name on Steam shortcuts when run from Flatpak 2022-04-08 17:28:35 -07:00
Daniel Johnson
6a513a37c1 Remove strange 'platform' lookup in print_steam_folders
I don't understand what this code was ever meant to do, but the list of
paths is not a dict and does not support lookups like this.

It seems to me that listing all the steam paths is probably reasonable.
2022-04-08 16:53:56 -04:00
Eli Schwartz
08831fbe66
meson: specify minimum required version
The minimum version in practice used to be 0.50.0, however that can be
lowered by removing unneeded kwargs from a couple of functions.

- i18n.gettext() `install_dir` defaults to the localedir option, and
  doesn't need to be manually overridden to that location

- configure_file() `install` defaults to true if `install_dir` is set,
  and before 0.50 that was also the *only* way to mark it as installed

Removing both these kwargs means that there is more leeway with the minimum
required version.
2022-04-03 19:28:00 -04:00
Mathieu Comandon
d4f77d6b25 Complete changelog 2022-04-01 13:56:09 -07:00