On 10/15/05, eric.bachard <[EMAIL PROTECTED]> wrote:
I disagree with what follows :
> test -r /sw/bin/init.sh && source /sw/bin/init.sh
This has nothing to do with soffice script, and has to be added
in/etc/profile or /etc/bach_profile or a file something like that,
*not* in soffice script.
ok, I looked more carefully into man pages of sh, bash etc...
I may be wrong, but it seems that when running bash or sh in Terminal.app, or from Applescript (i.e . the main.scpt), actually /etc/profile or ~/.profile are NOT used. (At least they are not run in my computer (OSX 10.4.2).
By default, Fink installs itself to ~/.profile and ~/.cshrc. So when opening Terminal with the default csh-shell things work fine. But when running sh (in main.scpt) the ~/.profile is NOT run.
There is a simple solution to this, however:
Change
theCmd variable in openSoffice() -function in main.scpt from "sh" to "sh -l"
When sh is run with -l parameter, it loads both /etc/profile and ~/.profile. Then everything works well.
If this change is made, then I think the good place for setting SAL_USE_VCLPLUGIN would be in ~/.profile. This would make it more flexible when there are many users in one computer using different toolkit (gen/gtk/kde). And also there would be no need to change soffice-script (which I think is too difficult place for normal users).
What do you think?
Mox
--
Mox on G
