Skip to content

Cannot use watch to update the ui constantly #10

@chicco-carone

Description

@chicco-carone

I was trying to use watch to refresh the command automatically so I could keep a look at it but after trying to use the watch command i get the following error:

Traceback (most recent call last):
  File "/usr/bin/songfetch", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/lib/python3.13/site-packages/songfetch/main.py", line 98, in main
    columns = os.get_terminal_size().columns
              ~~~~~~~~~~~~~~~~~~~~^^
OSError: [Errno 25] Inappropriate ioctl for device

when using it normally it works fine, I'm not sure if this is intended (I don't think so) but a way to update it automatically would be great, maybe it could be implemented as a parameter directly in the code or just by using the watch command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions