X-Git-Url: http://git.scottworley.com/srec/blobdiff_plain/bde510f000f49fd4dd0265e201d1e765a2c44db6..8972b99db6d440df3adbf756cb1ed20e5584d0bd:/srec.py diff --git a/srec.py b/srec.py index bacc1df..35efcaf 100644 --- a/srec.py +++ b/srec.py @@ -20,7 +20,6 @@ from gi.repository import GLib # nopep8 pylint: disable=wrong-import-position @dataclass class Recording: - filename: str process: subprocess.Popen[bytes] @@ -77,7 +76,6 @@ def on_start_recording(_: Gtk.Button, stack: Gtk.Stack) -> None: ['-f', 'pulse', '-ac', '2', '-i', 'default', filename]) # pylint: disable=consider-using-with recording = Recording( - filename=filename, process=subprocess.Popen(command, stdin=subprocess.PIPE)) stack.set_visible_child_name("recording") @@ -106,7 +104,7 @@ def make_button(label: str, action: Callable[[ def make_share_control() -> Gtk.CheckButton: - can_share = os.path.exists('/sys/module/v4l2looback') + can_share = os.path.exists('/sys/module/v4l2loopback') control = Gtk.CheckButton( label='Share Webcam', sensitive=can_share, active=can_share) control.set_margin_start(20)