diff --git a/electron-builder.json b/electron-builder.json index 218153e1..cfc9e100 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -67,7 +67,7 @@ ], "icon": "public/icon.png", "category": "Development", - "executableName": "termix", + "executableName": "run.sh", "maintainer": "Termix ", "desktop": { "entry": { diff --git a/electron/run.sh b/electron/run.sh new file mode 100644 index 00000000..6adb3d99 --- /dev/null +++ b/electron/run.sh @@ -0,0 +1,3 @@ +#!/bin/bash +DIR="$(dirname "$(readlink -f "$0")")" +"$DIR/termix" --no-sandbox "$@" diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 732fe4ee..3de6628c 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -1340,7 +1340,7 @@ "forbidden": "Access forbidden", "serverError": "Server error", "networkError": "Network error", - "databaseConnection": "Could not connect to the database.", + "databaseConnection": "Could not connect to the database", "unknownError": "Unknown error", "loginFailed": "Login failed", "failedPasswordReset": "Failed to initiate password reset", diff --git a/src/ui/main-axios.ts b/src/ui/main-axios.ts index d311874c..f27aa014 100644 --- a/src/ui/main-axios.ts +++ b/src/ui/main-axios.ts @@ -345,15 +345,7 @@ function createApiInstance( window.location.reload(); }); - const currentPath = window.location.pathname; - const isOnAuthPage = - currentPath === "/" || - currentPath === "/login" || - currentPath === "/auth"; - - if (!isOnAuthPage) { - setTimeout(() => window.location.reload(), 1000); - } + setTimeout(() => window.location.reload(), 1000); } }