def make_filename() -> str:
directory = os.environ.get(
'XDG_VIDEOS_DIR',
- os.path.expanduser('~/Videos'))
+ os.path.expanduser('~/Videos/SRec'))
os.makedirs(directory, exist_ok=True)
timestamp = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
return os.path.join(directory, f'srec {timestamp}.mkv')
def on_activate(app: Gtk.Application) -> None:
win = Gtk.ApplicationWindow(application=app)
win.set_title('SRec')
+ win.set_icon_name('srec')
+
stack = Gtk.Stack()
nr_box = Gtk.Box()