view scripts/startup/main-rcfile @ 17804:f3e25230b1f3

use QCoreApplication if starting with --no-gui * octave-gui.cc (octave_start_gui): Use QApplication when starting the GUI and QCoreApplication if not. (octave_cli_thread::run): Call QCoreApplication::exit instead of QApplication::exit.
author John W. Eaton <jwe@octave.org>
date Wed, 30 Oct 2013 02:08:41 -0400
parents cc3743a91652
children 501cb6a90f0f
line wrap: on
line source

## System-wide startup file for Octave.
##
## This file should contain any commands that should be executed each
## time Octave starts for every user at this site.

## Configure readline using the file inputrc in the Octave startup
## directory.

readline_read_init_file (sprintf ("%s%s%s",
				  octave_config_info ("startupfiledir"),
				  filesep, "inputrc"));

if (strcmp (PAGER (), "less") && isempty (getenv ("LESS")))
  PAGER_FLAGS ('-e -X -P"-- less ?pB(%pB\\%):--. (f)orward, (b)ack, (q)uit$"');
endif

## This appears here instead of in the pkg/PKG_ADD file so that --norc
## will also skip automatic loading of packages.

pkg ("load", "auto");

atexit ("__finish__");