On Monday October 22 2007 01:58 pm, Dotan Cohen wrote:
> On 22/10/2007, Dan Lewis <[EMAIL PROTECTED]> wrote:
> > On Sunday October 21 2007 01:34 pm, Dotan Cohen wrote:
> > > I'd like to open Open Office apps from scripts in ~/bin for several
> > > reasons. The most basic script, which simply opens Writer, is only
> > > giving me the OOo splash screen. The splash screen disappears and no
> > > Writer appears.
> > >
> > > [EMAIL PROTECTED]:~/bin$ cat owriter
> > > #!/bin/sh
> > > ooffice -writer "$*"
> > >
> > > This is on Ubuntu Gutsy running KDE. Any pointers would be
> > > appreciated (With the exception of 0x00000001 for the xkcd fans out
> > > there).
> > >
> > > Dotan Cohen
> > > A: Because it messes up the order in which people normally read
> > > text. Q: Why is top-posting such a bad thing?
> >
> > If you are using KDE, have you tried placing a link to swriter in
> > ~/.kde/Autostart/ ? That should open Writer each time you log in. If
> > you want OOo to start but not have an untitled document opened, use a
> > link to soffice instead. Open Konsole while in the ~/.kde/Autostart/
> > folder. ln -s /opt/openoffice.org/programs/swriter
> > This will create the link.
> >
> > Dan
>
> Thanks, Dan, but I'm not trying to open OOo on every login. Rather, I
> like to open programs via ALT-F2 dialog box. So I'm creating scripts
> in ~/bin with names that are easy to type. Additionally, sometimes I
> need OOo running in a different language. I can write a script to
> change the locale before opening Writer, for instance.
>
> Dotan Cohen

     Your problem is what is contained in your script. The two lines in it 
should be
#!/bin/sh
/opt/openoffice.org2.3/program/swriter
     --OR--
#!/bin/sh
/opt/bin/sh
/opt/openoffice.org2.3/program/soffice -swriter "$*"

     Unless you have already added /opt/openoffice.org2.3/program/ to PATH, 
you will need the complete path to the scripts in that folder. owriter has 
been replaced with swriter in that last few versions of OOo.
     I have created both of these scripts, make them executable, and run 
them using Alt+F2.

Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to