pop-os / launcher

Modular IPC-based desktop launcher service
Mozilla Public License 2.0
232 stars 48 forks source link

Handle shebang more thoroughly in scripts plugin #160

Closed canadaduane closed 1 year ago

canadaduane commented 1 year ago

This PR allows the shebang line in a script file to have more flexibility:

  1. Whitespace is accepted after the #! characters, so #! /bin/bash is now ok.
  2. Any args passed to the command in the shebang are honored, so #!/usr/bin/env nu will work (for example)

Fixes #142 (except for stderr and non-# metadata comment lines)