Lyle-Tafoya / Steam-Categorizer

Automatically generate categories for games in your Steam library
GNU General Public License v3.0
25 stars 2 forks source link

Mismatched key name #22

Closed roosta closed 7 years ago

roosta commented 7 years ago

Wasn't sure if I should post a new issue or add a comment in this: https://github.com/Lyle-Tafoya/Steam-Categorizer/issues/21 since they are kinda related.

INFO  Steam::Categorizer::GameLibrary : Generating steam config...
/home/roosta/.gem/ruby/2.4.0/gems/steam-categorizer-0.5.8/lib/steam/categorizer.rb:137:in `generate_steam_config': undefined method `[]' for nil:NilClass (NoMethodError)
        from /home/roosta/.gem/ruby/2.4.0/gems/steam-categorizer-0.5.8/exe/steam-categorizer:29:in `<top (required)>'
        from /home/roosta/.gem/ruby/2.4.0/bin/steam-categorizer:22:in `load'
        from /home/roosta/.gem/ruby/2.4.0/bin/steam-categorizer:22:in `<main>'

This line here on line 137

steam = steam_config['UserRoamingConfigStore']['Software']['Valve']['Steam']

Had to change this to 'UserLocalConfigStore' and everthing ran fine.

Lyle-Tafoya commented 7 years ago

Thank you for taking the time to file a report. I just pushed a fix for this. Please feel free to reopen this ticket if the fix does not work for you.