protonscr

Slow startup when not running NetworkManager and "Remember password" is checked.

steamopen Steam client
ValveSoftware/steam-for-linux#4979 · opened 2017-05-18 by jazztickets · updated 2023-04-25 · 6 comments · github
Jjazztickets 2017-05-18 github

Your system information

  • Steam client version (build number or date):
    Apr 25 2017, at 22:46:35

  • Distribution (e.g. Ubuntu):
    Archlinux

  • Opted into Steam client beta?: [Yes/No]
    No

  • Have you checked for system updates?: [Yes/No]
    Yes

Please describe your issue in as much detail as possible:

Steam hangs on startup for 8-10 seconds when networkmanager is not running AND steam login credentials are saved.

Steps for reproducing this issue:

  1. Disable NetworkManager and install alternative network manager (dhcpd, netctl, etc..)
  2. Startup steam with credentials already saved

Steam seems to hang on this message for about 8 seconds:
** (steam:18084): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: The name org.freedesktop.NetworkManager was not provided by any .service files

If you type in your password manually, it doesn't seem to hang there. It only happens when login is automatic. If NetworkManager is running, there is no hang.

Ssysms 2017-05-19 github

Also confirmed on Debian 8.

I'm seeing this behaviour for a long time (also in the beta), but I have to admit, I thought, the long startup is "normal", because I never used NetworkManager on my system...

Qqsniyg 2020-04-10 github

Likewise, this happens to me when using dhcpcd without NetworkManager running. It can take ~5 minutes (or more) for steam to start up on my computer.

Kkisak-valve maintainer 2020-04-11 github

Hello @qsniyg, I've seen similar delays with my test boxes when the primary dns is offline or misconfigured, otherwise it's a 10 second delay mentioned above.

Nnanonyme 2021-06-20 github

@kisak-valve was the root cause for the delay when no NetworkManager found out?

Kkparal 2023-04-25 github

This problem seems now to prevent some people from starting Steam at all, because it gets killed due to the extra delay:
https://github.com/flathub/com.valvesoftware.Steam/issues/1040

Wwsldankers 2023-04-25 github

I wrote this small script to fake the presence of NetworkManager, it seems enough to fool Steam into starting without delay:

#! /usr/bin/python3 -B

import dbus.service
import dbus.mainloop.glib
from gi.repository import GLib

if __name__ == '__main__':
	dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)

	system_bus = dbus.SystemBus()
	name = dbus.service.BusName("org.freedesktop.NetworkManager", system_bus)
	object = dbus.service.FallbackObject(system_bus, '/')

	GLib.MainLoop().run()

Requires the python3-dbus and python3-gi debian packages to run.

Nothing extracted yet.