File: LinuxPlatform.schelp

package info (click to toggle)
supercollider 1%3A3.13.0%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 80,292 kB
  • sloc: cpp: 476,363; lisp: 84,680; ansic: 77,685; sh: 25,509; python: 7,909; makefile: 3,440; perl: 1,964; javascript: 974; xml: 826; java: 677; yacc: 314; lex: 175; objc: 152; ruby: 136
file content (32 lines) | stat: -rw-r--r-- 1,834 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class:: LinuxPlatform
summary:: Linux platform-specific methods
categories:: Platform

description::
This class is available only on Linux, and implements Linux platform-specific methods.

subsection:: Environment variables for Jack
Among other things, this class makes it possible to set some environment variables in your Linux operating system to automate connecting the Jack Audio Server on startup.

See link::Reference/AudioDeviceSelection#Linux:: for more information on this.

classmethods::

subsection:: Setting or finding a terminal emulator
method:: runInTerminalCmd
get or set the preferred command to invoke a terminal emulator when performing link::Classes/String#-runInTerminal::.

If code::nil:: (which is the default), sclang will search for a supported terminal emulator installed on the system, the first time code::runInTerminal:: is called (see link::#*getTerminalEmulatorCmd::).
note:: this setting doesn't persist across sessions ::
argument:: value
a string, which has to necessarily include strong::two:: code::%::. For example:
code::
LinuxPlatform.runInTerminalCmd = "xterm -T % -e %"
::
The first code::"%":: is a placeholder for the window title, and the second is a placeholder for the actual command to be executed. Refer to your terminal emulator's documentation to find appropriate command line flags.

method:: getTerminalEmulatorCmd
scans the system for a supported terminal emulator. This method runs synchronously, and could block other scheduled operations while searching. If you rely on link::Classes/String#-runInTerminal::, it is recommended to run this method before you start scheduling Patterns or Routines, or to set link::#*runInTerminalCmd:: manually.
returns:: command to invoke a terminal emulator, to be used as link::Classes/LinuxPlatform#*runInTerminalCmd::

KEYWORD:: jack,linux