[Tobias Pfeiffer <[EMAIL PROTECTED]> - 00:14AM Thursday Apr 21]:

> I know resolved this issue and hope that someone who is close to the
> source can change it appropriately. The thing is that my ~/.fluxbox/init
> file had 0600 permissions, i.e. only myself could read and write that
> file. After changing it to 0644, everything - including the fbrun thingy
> and menu transparency, works fine. I think that somewhere in fluxbox.cc
> there needs to be a change made. I'm not really familiar with C++ or X
> programming, but I found the following: (I took the source files from
> the fluxbox.org-devdocs.)
> - line 00493: setupConfigFiles() is called which checks the existence of
> init, menu and keys (I think) with a stat call and creates them if they
> are non-existing
> - line 00503: some weird thing with m_fluxbox_pid = XInternAtom(disp,
> "_BLACKBOX_PID", False) is done
> - line 00521: some more weird stuff happens ("weird" means that I don't
> understand it *grin*): pid_t bpid = getpid();
> - line 01614: XrmGetFileDatabase() is called to get some kind of
> database out of the init file
> I think the last thing is the critical point.
> http://static.cray-cyber.org/Documentation/NEC_SX_R10_1/G1AE02E/CHAP15.HTML
> says about XrmGetFileDatabase(): "If it cannot open the specified file,
> XrmGetFileDatabase returns NULL." So I don't exactly know what happens,
> but this function call seems to use a different user id than the user's
> one, which is quite a pity. I'd be happy to have that changed by someone :-)

( My re-phrasing of the above:

 - Config files werent getting read correctly when file mode 0600.
    - Worked when 0644

 - You suspect that somehow XrmGetFileDatabase() gets called as a
   different userid to the running user.

)

I must admit some suprise at this. I can't see any way that fluxbox
could run anything at all as anything other than the calling
user. (Except in the case where the calling user is 'root', but even
then, there isn't anything in the fluxbox code that will change
userids.

I suspect that your problem is related to the file
permissions/ownerships on the ~/.fluxbox directory, and the
~/.fluxbox/init file. 

Could you please check if the file/directory ownerships are the same
as the user who runs fluxbox?

Matt.


-- 
 >dopey!debian.org
 <http://www.debian.org/>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to