Skip to content

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

@jan-rex

Description

@jan-rex

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?

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