Skip to content

Commit

Permalink
Make '-d' option also work when jack-select is not already running
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
  • Loading branch information
SpotlightKid committed Oct 15, 2019
1 parent ef2d579 commit 73bd6fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jackselect/jackselect.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,11 @@ def main(args=None):
monitor_devices=not args.no_alsa_monitor,
ignore_default=args.ignore_default)

if args.preset:
# load preset when mainloop starts
if args.default:
# load default preset when mainloop starts
GObject.timeout_add(0, app.activate_default_preset)
elif args.preset:
# load given preset when mainloop starts
GObject.timeout_add(0, lambda: app.activate_preset(preset=args.preset))

try:
Expand Down

0 comments on commit 73bd6fe

Please sign in to comment.