[f40] fix(steam): Remove broken .desktop file flags (#4567) (#4574)

* fix(steam): Remove broken .desktop file flags (#4567)

Signed-off-by: Gilver <rockgrub@disroot.org>
(cherry picked from commit 8d75eecabe)
Signed-off-by: RockGrub <RockGrub@users.noreply.github.com>

* Update steam.spec

Signed-off-by: Gilver <rockgrub@disroot.org>

---------

Signed-off-by: Gilver <rockgrub@disroot.org>
Signed-off-by: RockGrub <RockGrub@users.noreply.github.com>
This commit is contained in:
Gilver
2025-05-01 00:21:31 -05:00
committed by GitHub
parent c14d82042b
commit 3ca15297fb
+5 -1
View File
@@ -5,7 +5,7 @@
Name: steam
Version: 1.0.0.82
Release: 7%?dist
Release: 8%?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
@@ -184,6 +184,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