Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Possible to launch Open Office (1.9) from the command line?
Possible to launch Open Office (1.9) from the command line?
 
   NeoOffice Forum Index -> OpenOffice.org MacOS X X11 Support
View previous topic :: View next topic  
Author Message
arcady
Agent


Joined: Jun 11, 2005
Posts: 11
Location: San Francisco native

PostPosted: 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

PostPosted: 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
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: 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






PostPosted: 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
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: 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
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: 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 Smile

The "set" commands also look very familiar, so I'm sure they're documented somewhere...probably in the readme for 1.1.2. Yep Smile

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> OpenOffice.org MacOS X X11 Support All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.