View previous topic :: View next topic |
Author |
Message |
arcady Agent
Joined: Jun 11, 2005 Posts: 11 Location: San Francisco native
|
Posted: Fri Aug 19, 2005 10:41 am Post subject: Possible to launch Open Office (1.9) from the command line? |
|
What would the exact command be that I would type in to xterm?
I'm really looking to find this out so I can add it to the 'applications' pull down of xterm as a shortcut... :p _________________ http://arcady.deviantart.com
Color blindness is racism-you assume that I should be like you; color awareness is not-you respect that I am me. |
|
Back to top |
|
|
gpiroux Red Pill
Joined: Jul 01, 2005 Posts: 8
|
Posted: Fri Aug 19, 2005 12:35 pm Post subject: |
|
On my system, the following command works from a terminal
Code: | /Applications/openoffice.org1.9.121/program/soffice |
|
|
Back to top |
|
|
sardisson Town Crier
Joined: Feb 01, 2004 Posts: 4588
|
Posted: Fri Aug 19, 2005 4:01 pm Post subject: |
|
gpiroux wrote: | On my system, the following command works from a terminal
Code: | /Applications/openoffice.org1.9.121/program/soffice |
|
Also note that if you want it to launch into a particular module instead of the grey window, you can substitute the module for "soffice" (i.e., swriter for launching into Writer).
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki |
|
Back to top |
|
|
Guest
|
Posted: Sat Aug 20, 2005 11:23 am Post subject: |
|
I tried this and got
Code: | /Applications/openoffice.org1.9.107/program/soffice.bin X11 error: Can't open display:
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)
|
What do I do now?
Thanks
Al |
|
Back to top |
|
|
OPENSTEP The One
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
|
Posted: Sun Aug 21, 2005 11:18 pm Post subject: |
|
You probably will need to do the following command first:
Code: |
set DISPLAY=localhost:0.0 && export DISPLAY
|
or
Code: |
setenv DISPLAY localhost:0.0
|
immediately before trying to invoke soffice (or variant scripts) from the command line. The other option would be to run the command from an xterm spawned from within X11.app as that will have the DISPLAY environment variable set for you automatically.
The different "set" variants depend upon your shell. For 10.0-10.2, the default shell was "csh", but with 10.3 I believe it changed to "bash". "setenv" won't work with bash, at which point you'll need to do the first variant.
ed |
|
Back to top |
|
|
sardisson Town Crier
Joined: Feb 01, 2004 Posts: 4588
|
Posted: Mon Aug 22, 2005 1:01 am Post subject: |
|
OPENSTEP wrote: | The other option would be to run the command from an xterm spawned from within X11.app as that will have the DISPLAY environment variable set for you automatically. |
Ah, that explains why it works for me
The "set" commands also look very familiar, so I'm sure they're documented somewhere...probably in the readme for 1.1.2. Yep
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki |
|
Back to top |
|
|
|