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

[BUG] Module "users" has a small issue with format pararameters #1408

Closed
jan-rex opened this issue Nov 23, 2024 · 0 comments
Closed

[BUG] Module "users" has a small issue with format pararameters #1408

jan-rex opened this issue Nov 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jan-rex
Copy link

jan-rex commented Nov 23, 2024

Be sure to read the FAQ before submitting a new issue.

General description of bug:

  • What happened: When I use the “users” module and want to customize its output, the key {user-name} (how appear in users-format) does not work, so I have to use the key {1}, additional reading of code of "users.c" I found the key is {name}
  • What should happen: Display the name user
  • Fastfetch version used: 2.30.1
  • Did it work in an older version: Never
  • Where did you get the binary: brew
  • Does this issue still occur in the latest dev build?

Often helpful information:

Screenshot:

The content of the configuration file you use (if any):

// Paste here
    {
      "type": "users",
      "key": "Users:",
      "format": "{user-name}@{host-name}",
    },

Output of fastfetch -c ci.jsonc --format json:

// Paste here

Output of fastfetch --list-features:

// Paste here

If fastfatch crashed or froze

Paste the stacktrace here. You may get it with:

# You may need Ctrl+C to stop the process if it freezes
gdb -q -ex 'set confirm off' -ex run -ex 'bt full' -ex quit --args /path/to/fastfetch

If you are able to identify which module crashed, the strace can be helpful too

strace /path/to/fastfetch --multithreading false -s {MODULE} --pipe

If you cannot do the instructions above, please upload the core dump file:

If fastfetch is slow

Use time fastfetch --stat to show time usage for each module.

If an image or logo didn't show

  • The image protocol you used:
  • The terminal you used:
  • Upload the image file here, or paste the image URL:
  • Does it work with --logo-width {WIDTH} --logo-height {HEIGHT}?

If fastfetch behaves incorrectly on shell startup

  • The bug is reproducible with a clean shell configuration (i.e. fastfetch is the only line in .zshrc or ~/.config/fish/config.fish):
  • Does sleep 1 before running fastfetch work?
@jan-rex jan-rex added the bug Something isn't working label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant