Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Multiple configuration files with TheIDE
Multiple configuration files with TheIDE [message #40443] |
Thu, 01 August 2013 20:48  |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
It would be useful to allow TheIDE to serialize settings into different files. That would allow one to use TheIDE installed on laptop with different sets of monitors.
Path to the current configuration file can be set up via GUI or command line.
I think a lot of laptop users would benefit from this feature.
TIA
Regards,
Novo
|
|
|
Re: Multiple configuration files with TheIDE [message #40444 is a reply to message #40443] |
Thu, 01 August 2013 22:12   |
|
Hi Novo,
If you're on Linux, you can simply achieve this with zero lines of code All you need to do is to create a symlink to theide binary with different name, e.g.ln -s /usr/bin/theide /usr/bin/theide-laptop This way, theide started through the symlink will think the application name is theide-laptop and will store configuration to ~/.upp/theide-laptop/ instead of the usual path. So you get two completely separate sets of configuration.
The downside could be that buildmethods, assemblies and other configuration would be split too, but that can be fixed by hardlinking one to the other if desired (I think symlink wouldn't work in this case, as theide overwrites the file, but I might be wrong).
I successfully use this trick to keep a clean configuration for testing purposes...
On windows, similar thing can probably be done, but I never tried and I don't really remember the perks of windows filesystems anymore 
Best regards,
Honza
|
|
|
Re: Multiple configuration files with TheIDE [message #40445 is a reply to message #40444] |
Thu, 01 August 2013 22:26  |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
Hi Honza,
Thanks for the idea with links! I my case I need to make a link for ~/.upp/theide/theide.cfg (or for ~/.upp/ide/ide.cfg because I always use TheIDE built from source code).
AFAIK, there should be a way to create links in Windows.
Thanks again!
Regards,
Novo
|
|
|
Goto Forum:
Current Time: Tue May 13 08:08:55 CEST 2025
Total time taken to generate the page: 0.00450 seconds
|