EXEC_SHELL_PATH=$(command -v bash) export QT_XCB_GL_INTEGRATION=none export QTWEBENGINE_CHROMIUM_FLAGS="--disable-seccomp-filter-sandbox" export DISABLE_QT5_COMPAT=1 # Run Anki with nohup, redirecting output to a log file nohup /nix/var/nix/profiles/default/bin/anki-bin > anki.log 2>&1 & # Disown the process to remove it from the shell's job table disown # Close the terminal exit