hykilpikonna / hyfetch

🏳️‍🌈 🏳️‍⚧️ Neofetch with LGBTQ+ pride flags!
MIT License
1.3k stars 96 forks source link

HyFetch issue #223

Closed muffinV136 closed 3 months ago

muffinV136 commented 9 months ago

Describe the bug

A clear and concise description of what the bug is. When attempting to use another configuration, it spits out

  File "/usr/local/bin/hyfetch", line 8, in <module>
    sys.exit(run())
             ^^^^^
  File "/usr/local/lib/python3.12/site-packages/hyfetch/main.py", line 375, in run
    config = create_config() if args.config else check_config(args.config_file)
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/hyfetch/main.py", line 30, in check_config
    return Config.from_dict(json.loads(path.read_text('utf-8')))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/python@3.12/3.12.1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/python@3.12/3.12.1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/python@3.12/3.12.1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Command used: hyfetch --config-file ~/.config/neofetch/small.conf

Expected behavior

A clear and concise description of what you expected to happen. to be able to run this config file

{
    "preset": "pansexual",
    "mode": "rgb",
    "light_dark": "dark",
    "lightness": 0.65,
    "color_align": {
        "mode": "horizontal",
        "custom_colors": [],
        "fore_back": null
    },
    "backend": "neofetch",
    "args": null,
    "distro": null,
    "pride_month_shown": [],
    "pride_month_disable": false
}

Additional context

This is on macOS, using homebrew as my package manager.

hykilpikonna commented 9 months ago

Can you show me the content of ~/.config/neofetch/small.conf?

The --config-file argument can only be used to specify the HyFetch config JSON file, not the neofetch config file.

muffinV136 commented 3 months ago

tbf it was just a config life the normal one but using the small logo with less lines. i personally ignore this now as i prefer to use neofetch, using hyfetch was just a little off-route thing i used for a bit.