Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-06

question and suggestion

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

FreeMan

Hello,
Question is, why lazarus profile folder is hidden? hide from whom? I'm talk about linux, I don't know other platform, not sure but osx same too, hidden folder. profile folder name start with "." I mean.

suggestion is lazarus app (exe) can in profile folder. why? if wanna use multi source (version) of lazarus you have, can make multi profile via ./lazbuild --pcp=~/.lazarus
I have one source (version) of lazarus, I need multi profile , for test and normal etc.

if lazarus application make in profile folder, can "lazarus source root path" add in application or better way can write in one setting file. similar fpc and fpc source folder.

if some one say yes useful this idea then open suggestion on bug tracker

thank you

Reply by email

Sven Barth
to FreeMan
"FreeMan" wrote
Hello, Question is, why lazarus profile folder is hidden? hide from whom? I'm

talk about linux, I don't know other platform, not sure but osx same too, hidden folder. profile folder name start with "." I mean.

Because it's good style. The user should not need to see all those configuration folders that clutter his home directory if he doesn't want to see them.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140620/f68b6f01/attachment.html>

Reply by email

Martin Frb
to FreeMan: Question is, why lazarus profile folder is hidden? hide from whom? I'm talk about linux,…
FreeMan wrote
suggestion is lazarus app (exe) can in profile folder. why?

Because installation dir may not be writeable to the user, depending on the kind of installation

if wanna use multi source (version) of lazarus you have, can make multi profile via ./lazbuild --pcp=~/.lazarus I have one source (version) of lazarus, I need multi profile , for test and normal etc.

then create little starter scripts, calling
lazarus --pcp=foo

if lazarus application make in profile folder, can "lazarus source root path" add in application or better way can write in one setting file. similar fpc and fpc source folder.

See
http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus

Should work on linux too, but not sure, if it works, if you use symlink to start....

But that is, if each install has its own source folder.

Reply by email

Reinier Olislagers
to FreeMan: Question is, why lazarus profile folder is hidden? hide from whom? I'm talk about linux,…
FreeMan wrote
if lazarus application make in profile folder, can "lazarus source root path" add in application or better way can write in one setting file. similar fpc and fpc source folder.

Do you want to have lazarus and the settings in the same directory? That probably is possible though probably not recommended.

You can adjust lazarus.cfg to point to your primary config folder, so starting startlazarus will start with the config you want.

I have one source (version) of lazarus, I need multi profile , for test and normal etc.

You can set up multiple profile folders wherever you want and use shortcuts/links to start up lazarus with whatever primary config path you want.
I don't really see what the hidden status of the default settings directory has to do with that?

http://wiki.lazarus.freepascal.org/Multiple_Lazarus

Reply by email

FreeMan
to Sven Barth: talk about linux, I don't know other platform, not sure but osx same too, hidden folder. …

20-06-2014 20:32 tarihinde, Sven Barth yazd?:

The user should not need to see

maybe should not, but have to now :)

20-06-2014 20:38 tarihinde, Martin Frb yazd?:

Show quoted text 12 lines
then create little starter scripts, calling lazarus --pcp=foo See http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus Should work on linux too, but not sure, if it works, if you use symlink to start.... But that is, if each install has its own source folder.

yes Martin, this is my shortcut for kubuntu "/opt/lazarus/startlazarus --pcp=~/.lazarus-freeman" this profile has 3rd party and my extra component added profile. I don't need much change this build. But I was thinking, for test make new profile and minimum file need, without 3rd parties etc. this is possible with --pcp, but when ? wanna turn or wanna use other profile I haveto build everything one more, so I asked if possible

20-06-2014 20:38 tarihinde, Reinier Olislagers yazd?:

Show quoted text 5 lines
Do you want to have lazarus and the settings in the same directory? That probably is possible though probably not recommended. You can adjust lazarus.cfg to point to your primary config folder, so starting startlazarus will start with the config you want.

yes you right , firefox and thunderbird use this, "firefox -ProfileManager"

why I asked this question, I was answer to Martin

Reply by email

Martin Frb
to FreeMan
FreeMan wrote 25 lines
20-06-2014 20:32 tarihinde, Sven Barth yazd?: > The user should not need to see maybe should not, but have to now :) 20-06-2014 20:38 tarihinde, Martin Frb yazd?: > then create little starter scripts, calling > lazarus --pcp=foo > > See > http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus > > > Should work on linux too, but not sure, if it works, if you use > symlink to start.... > > But that is, if each install has its own source folder. > yes Martin, this is my shortcut for kubuntu "/opt/lazarus/startlazarus --pcp=~/.lazarus-freeman" this profile has 3rd party and my extra component added profile. I don't need much change this build. But I was thinking, for test make new profile and minimum file need, without 3rd parties etc. this is possible with --pcp, but when ? wanna turn or wanna use other profile I haveto build everything one more, so I asked if possible

Well *IF* I remember correctly (not sure):

1) If your lazarus install directory (with all the lazarus sources) is NOT writeable to the user (e.g. /usr/local/lazarus owned by root and you are NOT root) , then:
- all files (config, compiled ppu, compiled lazarus, ...) will be in pcp
- so you can call "startlazarus --pcp=xxx" and it will use the pcp, load the custom build lazarus from the pcp ....

2) If your lazarus install directory is writeable to the user (e.g. /home/user/laz_install ) , then:
- some files (ppu) go into that directory, and NOT into pcp. then you need one install for EACH config

Otherwise you can have as many config, from just minimum, to all packages you can find. They should not interfere with each other.

It does get a bit harder, if you want to mix and much fpc versions...

Reply by email

FreeMan
to Martin Frb

20-06-2014 23:28 tarihinde, Martin Frb yazd?:

Show quoted text 9 lines
2) If your lazarus install directory is writeable to the user (e.g. /home/user/laz_install ) , then: - some files (ppu) go into that directory, and NOT into pcp. then you need one install for EACH config Otherwise you can have as many config, from just minimum, to all packages you can find. They should not interfere with each other. It does get a bit harder, if you want to mix and much fpc versions...

Yes, I have write permissions to source folder.
example:
/opt/lazarus/... all source in this folder, write permission, and r1.3 version
~/.lazarus_main/ 3rd party and manay diffrent settings profile. lazarus size 150mb example.
~/.lazarus_TEST/ without anything standart min. installation 75mb example

now, I have 2 lazarus app. (exe) but only last builded can work --pcp=lazarus_main or --pcp=lazarus_TEST
last build ~/.lazarus_TEST/ then I wanna "startlazarus --pcp=~/.lazarus_main" is it work ? No I have to rebuild 150mb one more, I'm talk about this.

Reply by email

Martin Frb
to FreeMan
FreeMan wrote 24 lines
20-06-2014 23:28 tarihinde, Martin Frb yazd?: > 2) If your lazarus install directory is writeable to the user (e.g. > /home/user/laz_install ) , then: > - some files (ppu) go into that directory, and NOT into pcp. > then you need one install for EACH config > > Otherwise you can have as many config, from just minimum, to all > packages you can find. They should not interfere with each other. > > It does get a bit harder, if you want to mix and much fpc versions... Yes, I have write permissions to source folder. example: /opt/lazarus/... all source in this folder, write permission, and r1.3 version ~/.lazarus_main/ 3rd party and manay diffrent settings profile. lazarus size 150mb example. ~/.lazarus_TEST/ without anything standart min. installation 75mb example now, I have 2 lazarus app. (exe) but only last builded can work --pcp=lazarus_main or --pcp=lazarus_TEST last build ~/.lazarus_TEST/ then I wanna "startlazarus --pcp=~/.lazarus_main" is it work ? No I have to rebuild 150mb one more, I'm talk about this.

When you just call lazarus, you will start the exe that is in "path".

If you have more that one, then you need to specify the full path.

Maybe startlazarus will work....

*IF* your install directory are not writeable, then "lazarus" (the ide executable) is in PCP. And then startlavacus will work (side effect, the splash screen shows the version of startlazarus, and not the version of lazarus.

*IF* your "lazarus" (the ide executable) is in /opt/lazarus/... (because that is writeable) then only the last build exist. As I wrote, then you need to directories with each having a full install.

If you want to share the same laz-install folder, for more than one build, you must make it read-only.

Reply by email

FreeMan
to Martin Frb

21-06-2014 00:06 tarihinde, Martin Frb yazd?:

If you want to share the same laz-install folder, for more than one build, you must make it read-only.

I think this way will good for me, I'll try this, what has to be make param? this is my cmdline, lazarus folder is writable make PREFIX=/opt clean all OPT="-dUSE_QT_45 -dEnableCompInfoWnd" LCL_PLATFORM=qt bigide

for example OPT="-dpcp=~/mylazarus" ?

Reply by email