So, you want to spawn a terminal window when you click on the .sh script?
So, you want to spawn a terminal window when you click on the .sh script?

konsole -e function_namekonsole -e "bash -c $(comfyinit)" should work?$() is only used to get whatever something in bash prints to stdin#!/bin/bash
# activate the venv
source venv/bin/activate
# start comfyui
python3 main.pykonsole -e function_namefuction_namekonsole -e "bash -c $(comfyinit)"$()sudo firewall-cmd --list-all
FedoraWorkstation (active)
target: default
icmp-block-inversion: no
interfaces: wlp2s0
sources:
services: dhcpv6-client samba-client ssh
ports: 1025-65535/udp 1025-65535/tcp
protocols:
forward: yes
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules: #!/bin/bash
exec konsole -e /path/to/script #!/bin/bash
comfyinit () {
# activate the venv
source venv/bin/activate
# start comfyui
python3 main.py
}
exec konsole -e $(comfyinit)konsole -e 'bash -c "source venv/bin/activate && python main.py"'