Feature #1931
RCP: X.X, TXM post-installation when user.home is pointing a wrong directory
Status: | New | Start date: | 11/18/2016 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | - | % Done: | 0% |
|
Category: | Setup | Spent time: | - | |
Target version: | TXM X.X |
Description
During TXM post-installation, System.getProperty("user.home") may point to a wrong directory (can't read, write, does not exist)
Solution 1¶
- First build the user home directory to use in TXM.bat :
- call TXM launcher with the "-Duser.home=<user home>" option or with "set _JAVA_OPTIONS=-Duser.home=%HOMEDRIVE%%HOMEPATH%"
user home
Notre hypothèse courante est la suivante (see https://groupes.renater.fr/wiki/txm-info/public/documentation/documentation_c#file_utilities) :- USERPROFILE = HOMEDRIVE + HOMEPATH (local profile)
- HOMESHARE = HOMEDRIVE + HOMEPATH (roaming profile)
So we'll use HOMEDRIVE + HOMEPATH as user home directory.
Solution 2¶
II) add a test at the beginning of the post-installation, if it is not possible to create the TXM user directory then ask the user a directory with write access where the TXM user directory will be created.
Dialog:
title: TXM user directory installation
content: TXM can't create the TXM user directory in "C:/Users/stud". Please select another directory.
[ ] [...] -> open DirectoryDialog
[Cancel] -> abort post-installation and quit TXM?
[OK] -> Continue the installation, ask again if the new directory is not ok
Solution 3¶
If the user unplug the network (cable/wifi) or if the roaming profile is not reachable, the HOMESHARE=HOMEDRIVE+HOMEPATH path point to nothing and TXM can't start.
A solution is to add an existing directory test in the TXM.bat script and use the local profile instead.
If the local profile is also not usable (read&write rights), abort TXM launch.
Related issues
History
#1 Updated by Serge Heiden over 6 years ago
- Description updated (diff)
- Priority changed from Normal to High
#2 Updated by Serge Heiden over 6 years ago
- Description updated (diff)
#3 Updated by Matthieu Decorde over 6 years ago
- Description updated (diff)
- Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.7.8
#4 Updated by Matthieu Decorde over 6 years ago
- Description updated (diff)
#5 Updated by Matthieu Decorde over 6 years ago
- Description updated (diff)
- Target version changed from TXM 0.7.8 to TXM 0.8.0a (split/restructuration)
#6 Updated by Matthieu Decorde about 6 years ago
- Description updated (diff)
#7 Updated by Matthieu Decorde about 6 years ago
- Description updated (diff)
#8 Updated by Sebastien Jacquot about 5 years ago
- Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0
#9 Updated by Matthieu Decorde over 4 years ago
- Target version changed from TXM 0.8.0 to TXM X.X