You should have only one or the other. The .xinitrc script [indirectly] checks .desktop for "wm=something", and uses "something" as the window manager if it is listed under "case $DESKTOP in".

Then again, this has nothing to do with the extension being unmounted. That would probably be the result of putting mydsl-load commands in .xinitrc. UCI packages mount the first time mydsl-load is run on them, and unmount if it runs a second time. The .xinitrc script runs every time you start x. If a UCI listed in that script is already mounted, it will be unmounted when the script is run. If you need to put mydsl-load commands somewhere, bootlocal.sh is probably the least troublesome. That script runs only once.

The problem is not the uci, it is mounted, the problem is the call of the wm

Quote

Now i put the mydsl-load-commands too to bootlocal.sh, because when i restart fluxbox, then the ucis are unmounted.

These two sentences seem to contradict each other. When you restart fluxbox using anything other than the built-in restart in fluxbox, X is restarted and therefore the mydsl-load commands are run again. This includes switching desktops or restarting using the DSL switch application.

Ok, maybe it would help if you understood exactly what's happening in .xinitrc with respect to the window manager.

Near the beginning of the script, the variable "DESKTOP" is set by reading the file .desktop and grabbing what is listed after "wm=".

At the end of the script, the case command checks the value of DESKTOP against 3 possibilites: fluxbox, jwm, and anything else. If "fluxbox" is found, the commands between "fluxbox)" and the nearest ";;" are run. The same goes for jwm. If anything other than fluxbox or jwm is found in the DESKTOP variable (including nothing), the commands following "*)" are run.

It appears as though your script should work if the file is mounted.

Since you have adjusted your PATH variable to include /opt/fluxbox_0.9.14/bin at the beginning, you don't really even need to specify a path when running fluxbox 0.9.14. It should be chosen as *the* fluxbox to run from the "fluxbox)" case.

I would do as ^thehatsrule^ suggested. Remove the "2>/dev/null" from the fluxbox command and see if you get any errors.