allwpilib
allwpilib copied to clipboard
WPILib Install Directory in non-home directory path [Linux]
~Currently, WPILib is installed to ~/wpilib/<year>
and this is not easily changeable. I find this location rather annoying as it clutters up ~/
~
~However, if it were possible to change the directory using an environment variable such as WPILIB_HOME this would allow team members to easily configure the location of the install to somewhere like ~/.wpilib
.~
~Furthermore, it would likely to be possible to install WPILib system wide if it were installed to somewhere like /opt/wpilib (although it would likely need to be writeable?).~ EDIT: 19/11
The current location, ~/wpilib
is rather annoying as it clutters my home directory. I would appreciate if it were possible to have this directory in another place, such as ~/.local/share/wpilib
as this keeps it out of the home directory.
A change like this has massive reaching affects throughout the entire WPILib ecosystem.
To start with, this requires updating multiple WPILib projects to support this, including the installer, along with figuring out what to do on updates, or if the environment variable is not set.
Afterwards, vendors need to do the same thing, which makes both their installers and documentation more complicated.
Finally, and the largest reason, is debuggability. Currently, the location might be different per platform, but the location is fixed once you know your platform. This makes finding an issue much more difficult. We know from experience that users like to change things, and then forget they changed those things when asking for help when something doesn't work. So we go through hours of debugging, because we are assuming a fixed location. Debugging teams is already hard enough, and adding another variable exponentially raises cost for very little gain.
Would a push for a default install directory other than in ~/ be allowed? This is the reason why I asked for this; I do not like having to clutter up my ~/ directory; and being able to use another hidden location (or even one in say /opt/wpilib) would be much preferable (IMO).
Is there a common unix path that is available to all users without sudo, on both linux and mac? That is one of the requirements we have, that everything can be installed without root access.
~/.local/share/frc2019
would be the right place per-user, but there is no globally accessible directory.
I would prefer ~/.local/share/wpilib/<year>
over the ~/wpilib
directory.
There is currently no globally accessible directory either so this isn't something that is a must, for a new location (I would think?)
It is definitely too late to change anything for 2020. I (and others) don't like .
folders because the hidden property is actually very difficult to address with debugging, especially nested like that. So we might be able to bring this up again next summer, but I'm not sure how far it would get.
Yeah, okay. Should I create another issue tracking this?
No. We can reopen this one, but it definitely will not be looked at until next summer. I doubt it even then though, because I don't want to change the location 3 times in 3 years. Its only 1 extra folder in the home directory, which is much better then the 1 per year we had.
Because of the cancellation of the 2020 season, and our goal to make things as painless as possible, there is 0 chance anything will happen for 2021. Just FYI.
More than two years later, do we have any intention of changing the install directory? If not, I suggest closing this issue as a wontfix.