Proof (decomposition of permutation representation of 2-transitive action)
(Prove part 1 and 2 of this theorem first.)
By complete reducibility, let $π_X = \sum_{i=1}^{k} n_i χ_i$ where $χ_1 = \mathbb{1}, χ_2, \ldots, χ_k$ are the irreducible characters. Since $G \actson X$ is 2-transitive, it is (1-)transitive, so $n_1 = \langle π_X, \mathbb{1}\rangle = \# G\backslash X = 1$. Let $χ = π_X - \mathbb{1} = \sum_{i=2}^{k} n_i χ_i$.
$\sum_{i=2}^{k} n_i^2 = \langle π_X, π_X\rangle - n_1^2 = \#G \backslash (X \times X) - 1$, so $χ$ is irreducible iff $\#G\backslash X = 2$.