flathub / com.valvesoftware.Steam

https://flathub.org/apps/details/com.valvesoftware.Steam
339 stars 69 forks source link

Allow Steam to open without D-Bus #1146

Closed apprehensions closed 1 year ago

apprehensions commented 1 year ago

Problem description

$ flatpak run com.valvesoftware.Steam
INFO:root:https://github.com/flathub/com.valvesoftware.Steam/wiki
ERROR:root:~/.steam/root isn't a symlink to an existing directory, cannot determine current prefix
INFO:root:Will set XDG dirs prefix to /home/meow/.var/app/com.valvesoftware.Steam
INFO:migration:Copying /home/meow/.var/app/com.valvesoftware.Steam/config to /home/meow/.var/app/com.valvesoftware.Steam/.config, ignoring set()
INFO:migration:Renaming /home/meow/.var/app/com.valvesoftware.Steam/config to /home/meow/.var/app/com.valvesoftware.Steam/config.old
INFO:migration:Symlinking /home/meow/.var/app/com.valvesoftware.Steam/config to .config
INFO:migration:Copying /home/meow/.var/app/com.valvesoftware.Steam/.local/share to /home/meow/.var/app/com.valvesoftware.Steam/.local/share.bak, ignoring {'Steam'}
INFO:migration:Copying /home/meow/.var/app/com.valvesoftware.Steam/data to /home/meow/.var/app/com.valvesoftware.Steam/.local/share, ignoring {'Steam'}
INFO:migration:Renaming /home/meow/.var/app/com.valvesoftware.Steam/data to /home/meow/.var/app/com.valvesoftware.Steam/data.old
INFO:migration:Symlinking /home/meow/.var/app/com.valvesoftware.Steam/data to .local/share
INFO:migration:Copying /home/meow/.var/app/com.valvesoftware.Steam/cache to /home/meow/.var/app/com.valvesoftware.Steam/.cache, ignoring set()
INFO:migration:Renaming /home/meow/.var/app/com.valvesoftware.Steam/cache to /home/meow/.var/app/com.valvesoftware.Steam/cache.old
INFO:migration:Symlinking /home/meow/.var/app/com.valvesoftware.Steam/cache to .cache
INFO:root:Restarting app due to finalize sandbox tuning
Can't find bus: Failed to execute child process “dbus-launch” (No such file or directory)

Does this issue reproduce with native Steam No:

~ $ flatpak run --command=steam com.valvesoftware.Steam
bin_steam.sh[2]: Setting up Steam content in /home/meow/.var/app/com.valvesoftware.Steam/data/Steam
steam.sh[2]: Running Steam on org.freedesktop.platform 22.08 64-bit
steam.sh[2]: STEAM_RUNTIME is enabled automatically
setup.sh[83]: Updating Steam runtime environment...
nanonyme commented 1 year ago

I don't think running flatpak without D-Bus is really supported.

apprehensions commented 1 year ago

Is it required...?

doraskayo commented 1 year ago

DBus access is required for a lot of basic functionality, including portals and subsandboxes. Very specific apps that need neither functionality and can function without DBus access may work, but I doubt it's considered to be a supported configuration.

apprehensions commented 1 year ago

Not for steam. I know that portals are required for few applications, but Steam has it's own file manager and such.

If steam wanted D-bus, it would have immediately exited and asked for it.

nanonyme commented 1 year ago

Anyway, looks like the app self restart after bootstrap failed for you. Have you tried running app again?

apprehensions commented 1 year ago

First run fails.

nanonyme commented 1 year ago

First run requires D-Bus. Does second run work?

apprehensions commented 1 year ago

Yes.

nanonyme commented 1 year ago

Okay. App is then working as expected. Closing.