Home » Developing U++ » U++ Developers corner » umk static version
Re: umk static version [message #53402 is a reply to message #53398] |
Wed, 01 April 2020 16:20   |
 |
amrein
Messages: 278 Registered: August 2008 Location: France
|
Experienced Member |
|
|
mirek wrote on Wed, 01 April 2020 10:26Quote:
amrein wrote on Wed, 01 April 2020 10:05
I would like to change these defaults here. My current idea, maybe wrong, is that U++ will scan folders from the one where binary is up to root and tries to find ".config" (or .upp, not quite decided yet). Only if it does not find one, it would use ~/.upp/umk or ~/.config/umk.
Alternatively (or additionally), I can imagine that umk can easily run without configuration files...
It's better to use default config folder on Windows, Linux or Mac and have the opportunity to define your own config folder for package sandboxing.
Not sure about Linux/Mac, but after 15 years of trying various things, current approach used in Windows is far the best. That is: everything is stored in the same folder you get after unpacking the archive.
Using default config folder (like ~/.config) has various disadvantages compared to this simplistic approach. E.g. you cannot have two isolated U++ variants at the same time. If you delete U++ folder, you still have remnants in ~/.config. Etc...
So yes, my personal preference for improvement here is to sandbox it.
Now the suggested mechanism is not quite elegant. It is just the first approach that came to my mind to solve the problem in a way to keep things sanboxed while allowing normal ~/.config too (developed application would be normally produced to upp/out, so would pick upp/.config as well; when installed elsewhere, these would default to standard ~/.config).
Let says we do just this. So we will have two user cases:
1. Source package
* We extract and compile theide and umk
* We create our own projects in the same directory (in $HOME/upp-1234/MyApps for example)
* theide uses the current $HOME/upp-1234/uppsrc and $HOME/upp-1234/config/upp/theide directories when it starts from $HOME/upp-1234/
* theide uses spellers from $HOME/upp-1234/config/theide/speller/
* We can checkout upp svn sources there (in $HOME/upp-1234/svn) or elsewhere using theide (if needed)
* theide and umk use $HOME/upp-1234/build.out as shared cache directory
2. Binary package (in /usr or /opt)
* theide and umk are in a read only directory ($bindir)
* We create our own projects somewhere else, in $HOME/upp-src/MyApps for example
* theide checkout upp svn sources in $HOME/upp-src/svn/ and uses it configs from $USER/.config/upp/theide directories
* theide uses spellers from $USER/.config/upp/theide/speller/
* theide and umk use something like $HOME/upp-src/build.out as cache directory (or /var/tmp/upp/build.out/ or /tmp/upp/build.out/)
Is that correct?
|
|
|
 |
|
umk static version
By: mirek on Sun, 29 March 2020 16:12
|
 |
|
Re: umk static version
By: koldo on Sun, 29 March 2020 17:01
|
 |
|
Re: umk static version
By: mirek on Sun, 29 March 2020 17:13
|
 |
|
Re: umk static version
|
 |
|
Re: umk static version
By: mirek on Mon, 30 March 2020 10:24
|
 |
|
Re: umk static version
By: mirek on Mon, 30 March 2020 10:25
|
 |
|
Re: umk static version
|
 |
|
Re: umk static version
By: mr_ped on Mon, 30 March 2020 12:38
|
 |
|
Re: umk static version
By: amrein on Mon, 30 March 2020 13:24
|
 |
|
Re: umk static version
By: mirek on Mon, 30 March 2020 14:55
|
 |
|
Re: umk static version
|
 |
|
Re: umk static version
|
 |
|
Re: umk static version
By: mirek on Mon, 30 March 2020 16:30
|
 |
|
Re: umk static version
By: koldo on Mon, 30 March 2020 20:43
|
 |
|
Re: umk static version
|
 |
|
Re: umk static version
By: amrein on Mon, 30 March 2020 22:33
|
 |
|
Re: umk static version
By: mirek on Tue, 31 March 2020 11:58
|
 |
|
Re: umk static version
By: amrein on Tue, 31 March 2020 12:52
|
 |
|
Re: umk static version
By: mirek on Mon, 30 March 2020 23:28
|
 |
|
Re: umk static version
|
 |
|
Re: umk static version
By: Novo on Tue, 31 March 2020 22:20
|
 |
|
Re: umk static version
By: amrein on Wed, 01 April 2020 08:53
|
 |
|
Re: umk static version
By: mirek on Wed, 01 April 2020 09:36
|
 |
|
Re: umk static version
By: mirek on Wed, 01 April 2020 09:25
|
 |
|
Re: umk static version
By: amrein on Wed, 01 April 2020 09:44
|
 |
|
Re: umk static version
|
 |
|
Re: umk static version
By: amrein on Tue, 31 March 2020 22:34
|
 |
|
Re: umk static version
By: amrein on Wed, 01 April 2020 10:05
|
 |
|
Re: umk static version
By: mirek on Wed, 01 April 2020 10:26
|
 |
|
Re: umk static version
By: amrein on Wed, 01 April 2020 16:20
|
 |
|
Re: umk static version
By: amrein on Wed, 01 April 2020 16:27
|
 |
|
Re: umk static version
By: mirek on Wed, 01 April 2020 16:54
|
 |
|
Re: umk static version
By: mirek on Wed, 01 April 2020 16:55
|
 |
|
Re: umk static version
By: Novo on Wed, 01 April 2020 17:59
|
 |
|
Re: umk static version
By: mirek on Wed, 01 April 2020 20:39
|
 |
|
Re: umk static version
By: Novo on Wed, 01 April 2020 21:08
|
 |
|
Re: umk static version
By: Novo on Wed, 01 April 2020 21:15
|
 |
|
Re: umk static version
By: amrein on Wed, 01 April 2020 21:47
|
 |
|
Re: umk static version
By: mirek on Wed, 01 April 2020 23:35
|
 |
|
Re: umk static version
By: mirek on Thu, 02 April 2020 09:22
|
 |
|
Re: umk static version
By: mirek on Thu, 02 April 2020 16:36
|
 |
|
Re: umk static version
By: mirek on Thu, 02 April 2020 17:35
|
 |
|
Re: umk static version
|
 |
|
Re: umk static version
By: Novo on Wed, 01 April 2020 15:38
|
Goto Forum:
Current Time: Fri Jul 18 17:27:10 CEST 2025
Total time taken to generate the page: 0.03930 seconds
|