flathub / com.valvesoftware.Steam

https://flathub.org/apps/details/com.valvesoftware.Steam
337 stars 70 forks source link

Steam Flatpak keeps old Nvidia runtimes, `uninstall --unused` doesn't work #1138

Closed sith-on-mars closed 10 months ago

sith-on-mars commented 10 months ago

I found Steam Flatpak would keep old Nvidia runtimes overtime. Using uninstall --unused doesn't clean up the old versions. I fix this by I uninstalling Steam and run uninstall --unused, then installing Steam again.

This is the output of flatpak list | grep -i nvidia before uninstall:

nvidia-535-98   org.freedesktop.Platform.GL.nvidia-535-98       1.4 flathub system
nvidia-530-41-03    org.freedesktop.Platform.GL32.nvidia-530-41-03      1.4 flathub system
nvidia-535-54-03    org.freedesktop.Platform.GL32.nvidia-535-54-03      1.4 flathub system
nvidia-535-86-05    org.freedesktop.Platform.GL32.nvidia-535-86-05      1.4 flathub system
nvidia-535-98   org.freedesktop.Platform.GL32.nvidia-535-98     1.4 flathub system

This is the output of flatpak remove --unused after uninstalling Steam:

These runtimes in installation 'system' are pinned and won't be removed; see flatpak-pin(1):
  runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/22.08
  runtime/org.gtk.Gtk3theme.adw-gtk3-dark/x86_64/3.22
  runtime/org.gtk.Gtk3theme.adw-gtk3/x86_64/3.22
  runtime/org.kde.KStyle.Kvantum/x86_64/5.15-22.08

        ID                                                         Branch                  Op
 1. [-] org.freedesktop.Platform.Compat.i386                       22.08                   r
 2. [-] org.freedesktop.Platform.GL32.default                      22.08                   r
 3. [-] org.freedesktop.Platform.GL32.default                      22.08-extra             r
 4. [-] org.freedesktop.Platform.GL32.nvidia-530-41-03             1.4                     r
 5. [-] org.freedesktop.Platform.GL32.nvidia-535-54-03             1.4                     r
 6. [-] org.freedesktop.Platform.GL32.nvidia-535-86-05             1.4                     r
 7. [-] org.freedesktop.Platform.GL32.nvidia-535-98                1.4                     r
 8. [-] org.freedesktop.Platform.VAAPI.Intel.i386                  22.08                   r
 9. [-] org.freedesktop.Platform.ffmpeg_full.i386                  22.08                   r

Uninstall complete.

This is the output of flatpak list | grep -i nvidia after installing Steam again:

nvidia-535-98   org.freedesktop.Platform.GL.nvidia-535-98       1.4 flathub system
nvidia-535-98   org.freedesktop.Platform.GL32.nvidia-535-98     1.4 flathub system
doraskayo commented 10 months ago

@sith-on-mars, can you check if https://github.com/flathub/com.valvesoftware.Steam/pull/1143 solves your issue?