This file is indexed.

/usr/share/psychtoolbox-3/PsychOneliners/IsGUI.m is in psychtoolbox-3-common 3.0.11.20131230.dfsg1-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
function rc = IsGUI
% IsGUI - Is the Matlab or Octave GUI enabled in this session?
%
% Returns 1 if GUI is enabled, 0 otherwise.
%
% Matlab's GUI is based on JAVA. Octave's GUI is based on the QT toolkit.
%

if IsOctave && exist('isguirunning', 'builtin')
    rc = eval('isguirunning');
else
    rc = psychusejava('desktop');
end

return;