Group :: System/X11
RPM: start-or-find-x
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
start-or-find-x 1.0
~~~~~~~~~~~~~~~~~~~
This script would try its best to:
- either switch to the first user's X session running;
- or start a new one.
If started or sourced from a shell with display available,
just fast-forward to a shell.
It was written in (and for) home environment where a family
would use the same system and sometimes one might end up with
several sessions fired up and a hard time to find which one
was the needed one; now you can just source this script at
the end of corresponding shell profile files to get things
going along nicely, e.g.:
### at the last line of ~/.bash_profile
[ -x /usr/bin/start-or-find-x ] && . /usr/bin/start-or-find-x
--
Michael Shigorin
April 16, 2008