Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to start if all of xdg-config is made available #1315

Open
MithicSpirit opened this issue Jun 28, 2024 · 0 comments
Open

Fails to start if all of xdg-config is made available #1315

MithicSpirit opened this issue Jun 28, 2024 · 0 comments

Comments

@MithicSpirit
Copy link

If xdg-config is shared with steam, then the flatpak fails to start with the
error below. The issue seems to be that _get_host_xdg_mounts splits the path
into their components and, if the first component is xdg-config (or -data or
-cache), then it re-joins all subsequent components, since this only has one
component, there are no other components, to join, which is an error since
os.path.join expects at least one component.

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/mithic/.var/app/com.valvesoftware.Steam
Traceback (most recent call last):
  File "/app/bin/steam", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/app/lib/python3.11/site-packages/steam_wrapper.py", line 486, in main
    should_restart = migrate_config(current_info, xdg_dirs_prefix)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/steam_wrapper.py", line 316, in migrate_config
    ignore = _get_host_xdg_mounts("xdg-config", flatpak_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/steam_wrapper.py", line 305, in _get_host_xdg_mounts
    dirs.add(os.path.join(*path_seq[1:]))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: join() missing 1 required positional argument: 'a'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant