From 4bd1ef77e17f2ffc9eaaaa84c9be98600e6bf403 Mon Sep 17 00:00:00 2001 From: juakoknife <162052088+inlutec@users.noreply.github.com> Date: Thu, 20 Nov 2025 20:59:38 +0100 Subject: [PATCH] Update JNC-Scan_Launcher.sh --- JNC-Scan_Launcher.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/JNC-Scan_Launcher.sh b/JNC-Scan_Launcher.sh index ed8f97b..313a3ae 100644 --- a/JNC-Scan_Launcher.sh +++ b/JNC-Scan_Launcher.sh @@ -1,16 +1,9 @@ -#!/bin/bash - -# Obtener el directorio donde está el script DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "$DIR" - -# Comprobar si se está ejecutando en una terminal if [ -t 0 ]; then - # Estamos en una terminal, pedir sudo directamente echo "Iniciando JNC-Scan..." sudo ./venv/bin/python3 main.py else - # No estamos en una terminal (doble clic), intentar abrir una if command -v gnome-terminal &> /dev/null; then gnome-terminal -- bash -c "sudo $DIR/venv/bin/python3 main.py; exec bash" elif command -v x-terminal-emulator &> /dev/null; then @@ -18,7 +11,6 @@ else elif command -v xterm &> /dev/null; then xterm -e "sudo $DIR/venv/bin/python3 main.py" else - # Fallback gráfico si no hay terminal detectada (usando pkexec si existe) if command -v pkexec &> /dev/null; then pkexec $DIR/venv/bin/python3 main.py else