From d4ce3b0a3381d258ae72be53f6d3eef4eadff6fd Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 30 Apr 2025 11:12:03 -0700 Subject: [PATCH] fix(steam): Remove broken .desktop file flags (#4567) (#4573) (cherry picked from commit 8d75eecabee0aced92d4ec1f85f898322901ac89) Signed-off-by: Gilver Co-authored-by: Gilver --- anda/games/steam/steam.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/anda/games/steam/steam.spec b/anda/games/steam/steam.spec index 95ffa20dde..66ed1964fe 100644 --- a/anda/games/steam/steam.spec +++ b/anda/games/steam/steam.spec @@ -5,7 +5,7 @@ Name: steam Version: 1.0.0.82 -Release: 3%?dist +Release: 4%?dist Summary: Installer for the Steam software distribution service # Redistribution and repackaging for Linux is allowed, see license file. udev rules are MIT. License: Steam License Agreement and MIT @@ -179,6 +179,10 @@ install -m 644 -p %{SOURCE7} %{buildroot}%{_prefix}/lib/systemd/system.conf.d/ install -m 644 -p %{SOURCE7} %{buildroot}%{_prefix}/lib/systemd/user.conf.d/ install -m 775 -p %{SOURCE9} %{buildroot}%{_bindir}/steamrestart +# https://github.com/ValveSoftware/steam-for-linux/issues/9940 +desktop-file-edit --remove-key=PrefersNonDefaultGPU %{buildroot}%{_datadir}/applications/%{name}.desktop +desktop-file-edit --remove-key=X-KDE-RunOnDiscreteGpu %{buildroot}%{_datadir}/applications/%{name}.desktop + %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{appstream_id}.metainfo.xml