Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: xstata user preferences, via ssh with X forwarding: any tips?


From   Pete Huckelba <[email protected]>
To   [email protected]
Subject   Re: st: xstata user preferences, via ssh with X forwarding: any tips?
Date   Thu, 20 May 2010 11:57:58 -0500

xstata for Linux checks for the environment variable STATA_PREF_DIR at launch for user preferences. If STATA_PREF_DIR is not set, it falls back to the DISPLAY environment variable, which as Dave noted, is login dependent. Simply defining that variable should solve the multiple preference issue.

-Pete
[email protected]

On 05/20/2010 04:35 AM, Dave Ewart wrote:
Hello,

When running xstata remotely over ssh using X forwarding, user
preferences may be stored in

   ~/.stata11/localhost:12.0

where 'localhost:12.0' is the value of the DISPLAY environment variable
for that session.

Next time one logs in, DISPLAY will probably be different, so xstata
looks for settings in, say,

   ~/.stata11/localhost:15.0

This means, in effect, that xstata does not reliably save settings from
one session to next which is rather annoying.

<snip>

What I'd really like is some means of doing one of the following two
things:

1. Ideally, change xstata's settings path to something I choose -
specifically so that it doesn't include the DISPLAY setting and is fixed
from session to session.  Is that possible?

2. Find a command-line equivalent of the 'Open/Save Preferences'
operations so that they could be included in a startup profile.do
command sequence.  Documentation suggests nothing like this exists, is
that true?

All suggestions welcome...

Cheers,

Dave.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index