Multi user problem

CodeLite installation/troubleshooting forum
kramera
CodeLite Curious
Posts: 5
Joined: Wed Aug 11, 2010 4:45 pm
Genuine User: Yes
IDE Question: c++
Contact:

Multi user problem

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Multi user problem

Post by eranif »

Try with revision 4273

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

Eran
Make sure you have read the HOW TO POST thread
kramera
CodeLite Curious
Posts: 5
Joined: Wed Aug 11, 2010 4:45 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Multi user problem

Post by kramera »

I found quick fix by myself. Edit bitmap_loader.cpp: replace GetTempDir() with GetUserDataDir().
kramera
CodeLite Curious
Posts: 5
Joined: Wed Aug 11, 2010 4:45 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Multi user problem

Post 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
kramera
CodeLite Curious
Posts: 5
Joined: Wed Aug 11, 2010 4:45 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Multi user problem

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Multi user problem

Post 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
Make sure you have read the HOW TO POST thread
kramera
CodeLite Curious
Posts: 5
Joined: Wed Aug 11, 2010 4:45 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Multi user problem

Post 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" ?
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Multi user problem

Post 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
Post Reply