Rafostar / clapper

Level up your video experience with a modern and user-friendly media player.
https://rafostar.github.io/clapper/
GNU General Public License v3.0
794 stars 37 forks source link

Add more command line arguments #294

Closed psydvl closed 6 months ago

psydvl commented 2 years ago

For now, if you launch clapper --help you'll see not very informative message:

$ clapper --help
Usage:
  com.github.rafostar.Clapper [OPTION…]

Help Options:
  -h, --help                 Show help options
  --help-all                 Show all help options
  --help-gapplication        Show GApplication options

$ clapper --help-all
Usage:
  com.github.rafostar.Clapper [OPTION…]

Help Options:
  -h, --help                 Show help options
  --help-all                 Show all help options
  --help-gapplication        Show GApplication options

GApplication options
  --gapplication-service     Enter GApplication service mode (use from D-Bus service files)

At least, I expect that [OPTION...] explain itself as video source or .claps file However, there are a list of options I wouldn't mind seeing:

Rafostar commented 2 years ago

Even through we mainly work as a GUI app (with preferences accessible from UI), I don't mind improving this part for basic open/test something. It would make debugging easier for people too. Although some of the options you proposed are window manager specific thus cannot be added.

This is something worth expanding further, but only after clapper API rewrite happens.

Rafostar commented 8 months ago

Note to self: We also need --enqueue option to allow adding media to the playback queue without opening it immediately

Rafostar commented 6 months ago

Added more command line options (at least important ones), so closing. For anything that is missing, separate/another issue(s) can be opened.

height, width, top, left for clapper window after start
pip enable after start
always-on-top mode
always on visible workspace mode

These options are impossible to add through, since they depend on display manager (Wayland does not allow this). And we do not hack that in rewritten Clapper code anyway.