Commit graph

8013 commits

Author SHA1 Message Date
Fedi Takeli 363e5cba8e init - extract_icon 2022-09-26 20:16:42 -07:00
Mathieu Comandon 8e97640ede Cleanup 2022-09-26 20:16:10 -07:00
classabbyamp c693fa356e Prevent crash on systems without locale
Some systems, like those that use musl libc, do not have the `locale` program. This change fixes a crash in that case.

Methodology:
1. try to run `locale -a`, if success, use that output
2. if that fails, check the environment variable `LANG`
3. if `LANG` is empty or unset, return an empty locale list
2022-09-26 19:59:47 -07:00
Cameron Dehning c81e638663 Fixed running flatpaks when in flatpak 2022-09-26 19:58:50 -07:00
SwimmingTiger 4ace296020 (i18n) update Simplified Chinese translation 2022-09-26 19:58:06 -07:00
SwimmingTiger dfd498cfb2 (i18n) Update POTFILES 2022-09-26 19:58:06 -07:00
SwimmingTiger 9c8344b68b (i18n) Add a separate subsection to explain how to update POTFILES 2022-09-26 19:58:06 -07:00
SwimmingTiger 58db6cea1e Fix typo in flatpak.py: "Steam" should be "Flatpak" 2022-09-26 19:58:06 -07:00
avalonwilliams 87b3fe916a Added fullscreen option for yuzu runner 2022-09-26 19:57:34 -07:00
Daniel Johnson 7e873a0621 Correct merge errors. This is getting real messy! 2022-09-26 19:57:03 -07:00
Daniel Johnson d43630fbf6 Add tool-tips for the image buttons
Since the old thing that distinguishes them is their size, and the
cover-art is smaller than life size, this should make things clearer.
2022-09-26 19:57:03 -07:00
Daniel Johnson 99c6fc6abe Image reset buttons should redownload the Lutris.net media
Just deleting the media will result in a redownload, but in 24 hours.
Who has time for that?

This change explicitly downloads the media after deleting it.

It does not redownload media that are present,
so other customized media will not be reset.

This does turn the reset button into a super secret
'download the media now' button.

Don't worry, no-one will ever know. They couldn't possibly find out.
2022-09-26 19:57:03 -07:00
Daniel Johnson 061e79ae8f Add a has_custom_coverart_big DB field
For completeness.

We do not have a way to customized the medium size separately,
so no flag for that.
2022-09-26 19:57:03 -07:00
Daniel Johnson 6ffc40bdad Support cover-art customization via a new image button
The button displays cover art at 1/4 scale. I think that looks good.
2022-09-26 19:57:03 -07:00
Daniel Johnson ead216cb43 Remove unused compatibility code
I'm passing the button to update in all cases, so the lookup can go.
2022-09-26 19:57:03 -07:00
Daniel Johnson 87a4385f66 Use a virtual method to update_desktop_icons
Just removing one last image_type check.
2022-09-26 19:57:03 -07:00
Daniel Johnson 938faf5f12 Rework the 'has_custom_foo' code
Using a set instead of two booleans simplifies the code that uses it, and I've added code to actually save these flags.

They are not being saved anywhere, but I think they could be useful to
prevent automatic updates of user-selected artwork. I think this would only
matter if we want to remember that the user selected no artwork though.
2022-09-26 19:57:03 -07:00
Daniel Johnson 8782c251fb Add file_format to the ServiceMedia subclasses.
Delegate more to the service media classes in the custom-image UI code.
2022-09-26 19:57:03 -07:00
Daniel Johnson 0cfa264e02 Consolidate duplicate code for configuration custom images. 2022-09-26 19:57:03 -07:00
Daniel Johnson d1c4fcefdd Download media when changing identifiers in the configuration dialog
The media will be download by the 'sync_media' stuff eventually anyway;
better to get it right away.

This makes the "Apply" button slower, but I think with an
explicit button it's not too bad like this.

Resolves #4523
2022-09-25 08:14:49 -04:00
Daniel Johnson 4346c4e915 Update media images in configuration when the identifier changes
We will use the new slug to load the images, so that's what we should
display and edit in the configuration dialog.
2022-09-25 08:07:56 -04:00
Daniel Johnson c28dc26b4d Store custom icons at 128, 128
Downloaded icons are 128x128 png files, so custom icons should be too.

We still display at 32x32, even in High-DPI modes,
but this should open the door for improvement in the future.
2022-09-25 06:00:20 -04:00
Daniel Johnson b73e7e006a Use a quality of 100 when re-encoding media
The default makes some banners look quite poor,
like banners with large solid colored areas and some hard lines.

This won't affect PNGs (icons), those just ignores the quality option.
2022-09-24 12:27:59 -04:00
Daniel Johnson 237b0bf1da Provide an error handling callback for the login cmmand 2022-09-24 05:37:15 -04:00
Daniel Johnson 2d829e37a0 Provide missing string conversions, parents for ErrorDialogs. 2022-09-24 05:32:49 -04:00
Daniel Johnson d9ac2c3755 Provide missing parent for an ErrorDialog 2022-09-24 05:25:34 -04:00
Mathieu Comandon cfe45f806d Remove type hints 2022-09-22 15:43:51 -07:00
Aleksandr Oleinikov 1810f71ac6
Add tabtip.exe, conhost.exe to process exclusion
These new wine components are monitored when they shouldn't be and thus prevent installers from finishing properly.
2022-09-18 19:28:14 +03:00
Daniel Johnson f2d9ccb155 Placate flake8!
Break up a very long long.

I think this is the pythonic way to write this.
2022-09-17 04:11:42 -04:00
Daniel Johnson 31803ed04f
Merge pull request #4492 from Relms12345/fix/egs
fix: egs unable to login (fixes #4472)
2022-09-17 04:00:18 -04:00
Daniel Johnson 745407abfc Slightly improve the 'Cache Configuration' UI
Disable the 'Cache' button once the downloading begins,
and make the dialog properly modal.

This does not ensure that you can't change the cache path during
download or installation, but it discourages it- you'd need to open
a second installer window to do it.

Resolves #4509
2022-09-15 19:20:31 -04:00
Daniel Johnson 9961fc3c1a Use POST instead of GET for some Lutris API queries
These are not working via GET at the moment, though the should.

But POST supports are longer query, so it is better even if both work.

So lets use that.

Resolves #4500
2022-09-14 18:46:13 -04:00
Daryl Ronningen d350cd7d29
fix: dont rely on legendary uri 2022-09-09 12:47:51 -07:00
Daryl Ronningen aa1ac320ce
fix: fix egs unable to login 2022-09-08 17:57:08 -07:00
rayrapetyan 5de8f1aeaf fix: a-z deps 2022-09-04 11:54:43 -07:00
rayrapetyan c85e219fd5 fix: bypass conflict with master 2022-09-04 11:41:36 -07:00
rayrapetyan d29acf9367 fix: SSL CERTIFICATE_VERIFY_FAILED issue 2022-09-04 09:20:59 -07:00
Daniel Johnson e8ea081fb8 Placate flake8!
Also some pylint fixes around logging, but that doesn't sound as cool.
2022-09-04 05:46:42 -04:00
Daniel Johnson 235a3bc54a
Merge pull request #4480 from gucci-on-fleek/gucci-on-fleek/origin-openssl
Fix authentication with EA Origin and OpenSSL v3.
2022-09-04 05:34:29 -04:00
gascarcella 5d8612f478 Adding missing discord package 2022-09-03 23:51:15 -07:00
gascarcella ace2011ebd Including new migration for discord ids 2022-09-03 23:51:15 -07:00
gascarcella 0030cbf7f4 Migration to retrieve discord ids 2022-09-03 23:51:15 -07:00
gascarcella 29fa2bb44e Removed unused files 2022-09-03 23:51:15 -07:00
gascarcella 8acda9d5dd Adding Discord ID to Installer 2022-09-03 23:51:15 -07:00
gascarcella 4e66df9dab Adding Discord ID to Installer 2022-09-03 23:51:15 -07:00
gascarcella 7b9ec2fc4a Adding Discord ID to Game Schema 2022-09-03 23:51:15 -07:00
gascarcella 70f727aca9 Reworking to work with Lutris API 2022-09-03 23:51:15 -07:00
gascarcella 31e3cc4788 Adding Discord Rich Presence Setting 2022-09-03 23:51:15 -07:00
gascarcella 4fb7939cf9 Remove unused setting for Old Discord RPC 2022-09-03 23:51:15 -07:00
gascarcella 4ff781448f Adding PyPresence to requirements 2022-09-03 23:51:15 -07:00