Re: Working script won't work in rc.local

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Barry Yu wrote:

    Here is my rc.local file, my script is the last line;

    #!/bin/sh
    #
    # This script will be executed *after* all the other init scripts.
    # You can put your own initialization stuff in here if you don't
    # want to do the full Sys V style init stuff.

    touch /var/lock/subsys/local
    /home/Scripts/./dumon

xrandr --output VGA --auto --output TMDS-1 --auto --right-of VGA

There's your problem, the rc scripts are not attached to any
terminal and not associate with any display. Starting X apps
in an rc script is not the appropriate place for that script.
That belongs in your .bashrc script so when you login it starts.

--
Linux Home Automation         Neil Cherry       ncherry@xxxxxxxxxxx
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
Author of:    	Linux Smart Homes For Dummies


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux