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

HyFetch issue #223

Open
1 task
muffinV136 opened this issue Dec 25, 2023 · 1 comment
Open
1 task

HyFetch issue #223

muffinV136 opened this issue Dec 25, 2023 · 1 comment

Comments

@muffinV136
Copy link

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/[email protected]/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/[email protected]/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/[email protected]/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

  • Does this issue still occur in the master branch? (Required)
    nope, it doesn't

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
Copy link
Owner

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.

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

2 participants