On 8/11/21 8:29 PM, Keith Lofstrom wrote:
> In the August 9 email below, I called my xrandr script
> using .bashrc .
>
> Wrong, that also adds cruft to an ssh login from another
> computer.
>
> A better place to call this script is from Startup
> Applications Preferences.  For Gnome2 and Mate, that can
> be done by clicking down through the menu bar:
>
> MainMenu -> System -> Preferences -> Personal -> Startup Applications
>
> Then clicking the +Add button and browsing to the twoscreen
> shell script.
>
> That works, but must be added for every user logging in
> to my system via the desktop console.   For now, just
> keithl, and very rarely, root.  Postpandemic, others.
>
> Perhaps one of you can suggest a way to +Add the same
> script for all users when they login on the console.
> I made my change for Mate on a CentOS 7 system.  I will
> soon upgrade to Mate Ubuntu 20.04, which may have an
> "add this script for all users" method.
>
> Keith
>
> --------------

Depending on your DE (I use Xfce mostly), look for the autostart
directories:

$HOME/.config/autostart

$HOME/.config/autostart-scripts

You can place files in /etc/skel so that everytime 'useradd' is invoked
it copies those over.
https://www.linuxhowtos.org/Tips%20and%20Tricks/using_skel.htm

...or, once you have one user set up, use a script to copy the autostart
settings to all the other users.

-Ed


Reply via email to