I have downloaded Revision 4272 from sourceforge. Compiled with my account, then installed with root.
Upon startup codelite writes/reads several png files in /tmp directory.
Next user cannot start codelite, because of file permissions on this png files.
We use codelite for many users simultaneously (xvnc). This was not a problem for 2.6.
Multi user problem
-
- CodeLite Curious
- Posts: 5
- Joined: Wed Aug 11, 2010 4:45 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Multi user problem
Try with revision 4273
Make sure you run ./configure before you compile / install
Eran
Make sure you run ./configure before you compile / install
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Wed Aug 11, 2010 4:45 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: Multi user problem
I found quick fix by myself. Edit bitmap_loader.cpp: replace GetTempDir() with GetUserDataDir().
-
- CodeLite Curious
- Posts: 5
- Joined: Wed Aug 11, 2010 4:45 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: Multi user problem
#eranif wrote:Try with revision 4273
Make sure you run ./configure before you compile / install
Eran
I did with mentioned revision. I didn't try revision 4273 yet
-
- CodeLite Curious
- Posts: 5
- Joined: Wed Aug 11, 2010 4:45 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: Multi user problem
Thanx for quick response.eranif wrote:Try with revision 4273
Make sure you run ./configure before you compile / install
Eran
I suppose this will not help. The problem is not reading zip file. The problem is that extracted icons belongs to one user. Other user have read access to this anyway. But not write access. Why not copy all icons extracted to a shared folder?
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Multi user problem
Ok, I see the problem now.
There is another bug: codelite should remove the file once loaded
I have committed a fix for both (use UserDataDir && Remove the file once loaded into codelite)
Eran
There is another bug: codelite should remove the file once loaded
I have committed a fix for both (use UserDataDir && Remove the file once loaded into codelite)
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Wed Aug 11, 2010 4:45 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: Multi user problem
It's obviously better. There is always a risk of race conditions if using shared places for writing temporary files in multi-user environment. Nevertheless codelite is an outstanding IDE. .eranif wrote:Ok, I see the problem now.
There is another bug: codelite should remove the file once loaded
I have committed a fix for both (use UserDataDir && Remove the file once loaded into codelite)
Eran
Another question relating multi-user: is there a way to start/test new version of codelite for single user without doing "make install" ?
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: Multi user problem
Hi,
The CodeLite binary will be CL-install/bin/codelite.
Regards,
David
Sure, 'install' it locally. I always do this anyway, within the CodeLite source dir (though more-or-less anywhere else should work too).is there a way to start/test new version of codelite for single user without doing "make install"
Code: Select all
./configure --enable-debug --prefix=$(pwd)/CL-install --plugins-dir=$(pwd)/CL-install/lib
make && make install
Regards,
David