Skip to content

[game-launcher][BUG] Steam games are not detected on NixOS #73

Description

@dinhokusanagi

Submission checklist

  • I have searched existing issues and confirmed this is not a duplicate.
  • I am using the latest available version of Noctalia and of the plugin.
  • This is a bug in a community plugin, not in Noctalia itself (those belong in the noctalia repo).

Plugin

game-launcher

Plugin version

v1.0.0

Bug description

The Game Launcher plugin does not detect Steam games installed through NixOS. My Steam library is located at:

/home/dinho/.local/share/Steam/steamapps

The plugin only searches the following Steam paths:

const char *steam_roots[] = {
"/Steam",
"/.steam/steam",
NULL
};

Steps to reproduce

Steps to reproduce

  1. Install Steam on NixOS.
  2. Install at least one game through Steam.
  3. Confirm that Steam game manifests exist in ~/.local/share/Steam/steamapps.
  4. Install and open the Noctalia Game Launcher community plugin.
  5. Trigger a library scan or refresh.
  6. Observe that no Steam games are detected or displayed.

Workaround

  1. Edit gamelauncher.c and add "/.local/share/Steam" to steam_roots[].
  2. Recompile the gamelauncher binary.
  3. Run the scanner again.
  4. Observe that Steam games are now detected correctly.

Expected behavior

The plugin should also detect Steam installations located at:

~/.local/share/Steam

Actual behavior

o games are shown in the Game Launcher, even though Steam game manifests exist in:

~/.local/share/Steam/steamapps

Logs / error output


Noctalia version

noctalia v5.0.0

Compositor

Niri

Environment information


Additional context

  • Steam is installed on NixOS using the native NixOS package, not Flatpak.
  • The Steam library is located at: /home/dinho/.local/share/Steam/steamapps.
  • Steam manifests such as appmanifest_570.acf are present in that directory.
  • The plugin source code only searches the following Steam roots by default:
const char *steam_roots[] = {
    "/Steam",
    "/.steam/steam",
    NULL
};
  • The path "/.local/share/Steam" is not included in steam_roots[].
  • After adding "/.local/share/Steam" to steam_roots[] and recompiling the gamelauncher binary, Steam games were detected successfully.
  • This appears to be a missing default Steam path for NixOS installations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions