#!/bin/bash

# Set localization environment variables for translations
export TEXTDOMAINDIR="/usr/share/locale"
export TEXTDOMAIN=biglinux-noise-reduction-pipewire

# Define the title of the application window
TITLE="Reduzir ruídos do microfone"

# Navigate to the application's directory
cd /usr/share/bigbashview/bcc/apps/biglinux-noise-reduction-pipewire/

# Set various environment variables and launch the application with specific settings
QTWEBENGINE_CHROMIUM_FLAGS="--autoplay-policy=no-user-gesture-required" \
QT_QPA_PLATFORM=xcb \
SDL_VIDEODRIVER=x11 \
WINIT_UNIX_BACKEND=x11 \
GDK_BACKEND=x11 \
bigbashview -n "$TITLE" -s 720x400 -c transparent index.sh.htm -i /usr/share/bigbashview/bcc/apps/biglinux-noise-reduction-pipewire/icon/biglinux-noise-reduction-pipewire.svg
