Skip to content

Remove os.system calls #3

Description

@hejops

Aside from file.convert and the following 2 commands,

  • clear (tag.fix)
  • mpv (play.pmp)

calls to os.system should be minimised:

  • cat
  • echo
  • find
  • ls / exa
  • ncdu (file.mover)
  • notify-send
  • rm
  • waitdie
  • xdg-open
  • xset (play.pmp)

Some of the above commands will be found in any typical Linux distribution, and
were used for QOL features (e.g. notifications, file cleanup) that I didn't
feel like implementing myself.

However, the following commands are unlikely to be universal, and should
be replaced:

  • ncdu
  • notify-send
  • waitdie -- a personal script of mine that is a wrapper for tail -f
  • xdg-open
  • xset

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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