Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37912588
en ru br
ALT Linux repos
S:1.0-alt1
5.0: 1.0-alt1
4.1: 1.0-alt1

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
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin