In the Unity editor on Linux.
See Also: RuntimePlatform, Platform dependent Compilation..
using UnityEngine;
public class Example : MonoBehaviour { void Start() { if (Application.platform == RuntimePlatform.LinuxEditor) { Debug.Log("Do something special here!"); } } }