Feature #2246
Updated by Matthieu Decorde over 2 years ago
The TXM Windows launcher builds find out the TXM user directory path using the %HOMEDRIVE% HOMEDRIVE and %HOMEPATH% HOMEPATH environment variables. See #1931 ticket.
If the user unplugs unplug the network (cable/wifi) then or if the roaming profile is not reachable, the HOMESHARE=HOMEDRIVE+HOMEPATH directory does not exist (IF EXIST) path point to nothing and TXM can't start.
h3. Solution
A solution is to add an existing directory test the directory existence in the TXM.bat script and try use the %USERPROFILE% path local profile instead.
If the %USERPROFILE% path does local profile is also not exist also, usable (read&write rights), abort TXM launch.
<pre>
set USERHOME = %HOMEDRIVE%%HOMEPATH%
IF EXIST %USERHOME% GOTO USERHOMEOK
set USERHOME=%USERPROFILE%
IF EXIST %USERHOME% GOTO USERHOMEOK2
echo "HOMEDRIVE+HOMEPATH = %HOMEDRIVE%%HOMEPATH% and USERPROFILE = %USERPROFILE% do not exist. Unable to find TXM configuration, aborting TXM launch."
exit
:USERHOMEOK2
echo "HOMEDRIVE+HOMEPATH = %HOMEDRIVE%%HOMEPATH% does not exist, using USERPROFILE = %USERPROFILE% value instead."
:USERHOMEOK
</pre>
If the user unplugs unplug the network (cable/wifi) then or if the roaming profile is not reachable, the HOMESHARE=HOMEDRIVE+HOMEPATH directory does not exist (IF EXIST) path point to nothing and TXM can't start.
h3. Solution
A solution is to add an existing directory test the directory existence in the TXM.bat script and try use the %USERPROFILE% path local profile instead.
If the %USERPROFILE% path does local profile is also not exist also, usable (read&write rights), abort TXM launch.
<pre>
set USERHOME = %HOMEDRIVE%%HOMEPATH%
IF EXIST %USERHOME% GOTO USERHOMEOK
set USERHOME=%USERPROFILE%
IF EXIST %USERHOME% GOTO USERHOMEOK2
echo "HOMEDRIVE+HOMEPATH = %HOMEDRIVE%%HOMEPATH% and USERPROFILE = %USERPROFILE% do not exist. Unable to find TXM configuration, aborting TXM launch."
exit
:USERHOMEOK2
echo "HOMEDRIVE+HOMEPATH = %HOMEDRIVE%%HOMEPATH% does not exist, using USERPROFILE = %USERPROFILE% value instead."
:USERHOMEOK
</pre>