Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / SCClassLibrary / Platform / linux / LinuxPlatform.sc
blobc091e12c49a2f04918df1441240f6f914c613c22
1 LinuxPlatform : UnixPlatform
3         name { ^\linux }
4         startupFiles {
5                 var deprecated = #["~/.sclang.sc"];
6                 Platform.deprecatedStartupFiles(deprecated);
7                 ^(deprecated ++ super.startupFiles)
8         }
9         startup {
11                 helpDir = this.systemAppSupportDir++"/Help";
13                 // Server setup
14                 Server.program = "exec scsynth";
16                 // Score setup
17                 Score.program = Server.program;
19                 // default jack port hookup
20                 "SC_JACK_DEFAULT_INPUTS".setenv("system");
21                 "SC_JACK_DEFAULT_OUTPUTS".setenv("system");
23                 // automatically start jack when booting the server
24                 // can still be overridden with JACK_NO_START_SERVER
25                 "JACK_START_SERVER".setenv("true");
27                 // load user startup file
28                 this.loadStartupFiles;
29         }
30         defaultHIDScheme { ^\linux_hid }
32         initPlatform {
33                 super.initPlatform;
34                 this.declareFeature(\unixPipes); // pipes are possible (can't declare in UnixPlatform since IPhonePlatform is unixy yet can't support pipes)
35         }