Page 1 of 1

Multi user problem

Posted: Wed Aug 11, 2010 4:52 pm
by kramera
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.

Re: Multi user problem

Posted: Wed Aug 11, 2010 5:17 pm
by eranif
Try with revision 4273

Make sure you run ./configure before you compile / install

Eran

Re: Multi user problem

Posted: Wed Aug 11, 2010 5:19 pm
by kramera
I found quick fix by myself. Edit bitmap_loader.cpp: replace GetTempDir() with GetUserDataDir().

Re: Multi user problem

Posted: Wed Aug 11, 2010 5:20 pm
by kramera
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

Re: Multi user problem

Posted: Wed Aug 11, 2010 5:26 pm
by kramera
eranif wrote:Try with revision 4273

Make sure you run ./configure before you compile / install

Eran
Thanx for quick response.

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?

Re: Multi user problem

Posted: Wed Aug 11, 2010 5:58 pm
by eranif
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

Re: Multi user problem

Posted: Wed Aug 11, 2010 6:37 pm
by kramera
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
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. :-).

Another question relating multi-user: is there a way to start/test new version of codelite for single user without doing "make install" ?

Re: Multi user problem

Posted: Thu Aug 12, 2010 1:55 pm
by DavidGH
Hi,
is there a way to start/test new version of codelite for single user without doing "make install"
Sure, 'install' it locally. I always do this anyway, within the CodeLite source dir (though more-or-less anywhere else should work too).

Code: Select all

./configure --enable-debug --prefix=$(pwd)/CL-install --plugins-dir=$(pwd)/CL-install/lib
make && make install
The CodeLite binary will be CL-install/bin/codelite.

Regards,

David