|
|
@ -1,8 +1,28 @@ |
|
|
|
REM Configuration de Gajim au premier lancement |
|
|
|
REM Configuration de Gajim au premier lancement |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not exist "%PROGRAMFILES%\Gajim\bin\gajim.exe" ( |
|
|
|
|
|
|
|
if not exist "%PROGRAMFILES(x86)%\Gajim\bin\gajim.exe" goto :EOF |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
if not exist "%APPDATA%\Gajim\Config" ( |
|
|
|
if not exist "%APPDATA%\Gajim\Config" ( |
|
|
|
mkdir "%APPDATA%\Gajim\" |
|
|
|
mkdir "%APPDATA%\Gajim\" |
|
|
|
echo one_message_window = always_with_roster>> "%APPDATA%\Gajim\Config" |
|
|
|
GOTO :CONF |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
else ( |
|
|
|
|
|
|
|
type "%APPDATA%\Gajim\Config" | find /I "accounts." | find /V /I ".local." >NUL 2>NUL |
|
|
|
|
|
|
|
if %errorlevel% NEQ 0 ( |
|
|
|
|
|
|
|
taskkill /F /IM gajim.exe |
|
|
|
|
|
|
|
GOTO :CONF |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
else ( |
|
|
|
|
|
|
|
echo "Gajim est configure" |
|
|
|
|
|
|
|
goto :EOF |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:CONF |
|
|
|
|
|
|
|
echo one_message_window = always_with_roster> "%APPDATA%\Gajim\Config" |
|
|
|
|
|
|
|
echo show_roster_on_startup = never>> "%APPDATA%\Gajim\Config" |
|
|
|
echo accounts.%IPASSERELLE_DOMAIN%.autoauth = True>> "%APPDATA%\Gajim\Config" |
|
|
|
echo accounts.%IPASSERELLE_DOMAIN%.autoauth = True>> "%APPDATA%\Gajim\Config" |
|
|
|
echo accounts.%IPASSERELLE_DOMAIN%.name = %USERNAME%>> "%APPDATA%\Gajim\Config" |
|
|
|
echo accounts.%IPASSERELLE_DOMAIN%.name = %USERNAME%>> "%APPDATA%\Gajim\Config" |
|
|
|
echo accounts.%IPASSERELLE_DOMAIN%.hostname = %IPASSERELLE_DOMAIN%>> "%APPDATA%\Gajim\Config" |
|
|
|
echo accounts.%IPASSERELLE_DOMAIN%.hostname = %IPASSERELLE_DOMAIN%>> "%APPDATA%\Gajim\Config" |
|
|
@ -13,7 +33,4 @@ echo accounts.%IPASSERELLE_DOMAIN%.autoconnect_as = online>> "%APPDATA%\Gajim\Co |
|
|
|
echo accounts.%IPASSERELLE_DOMAIN%.custom_host = %IPASSERELLE_NAME%.%IPASSERELLE_DOMAIN%>> "%APPDATA%\Gajim\Config" |
|
|
|
echo accounts.%IPASSERELLE_DOMAIN%.custom_host = %IPASSERELLE_NAME%.%IPASSERELLE_DOMAIN%>> "%APPDATA%\Gajim\Config" |
|
|
|
echo accounts.%IPASSERELLE_DOMAIN%.send_os_info = False>> "%APPDATA%\Gajim\Config" |
|
|
|
echo accounts.%IPASSERELLE_DOMAIN%.send_os_info = False>> "%APPDATA%\Gajim\Config" |
|
|
|
echo accounts.%IPASSERELLE_DOMAIN%.enable_message_carbons = True>> "%APPDATA%\Gajim\Config" |
|
|
|
echo accounts.%IPASSERELLE_DOMAIN%.enable_message_carbons = True>> "%APPDATA%\Gajim\Config" |
|
|
|
) |
|
|
|
|
|
|
|
else ( |
|
|
|
|
|
|
|
echo "Gajim est configure" |
|
|
|
|
|
|
|
) |
|
|
|
|