Re: xinitrc.d framework

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



I think it would be better if it was more like rc.conf by using an
array and a function that went through that array. It looks simple
enough, maybe something like
exec_xinitd_scripts() {
    if [[ $XINITD_SCRIPTS ]]; then
        for ((i=0; i < ${#XINITD_SCRIPTS[@]}; i++)); do
            exec_next_xinitrc "${XINITD_SCRIPTS[i]}"
        done
    fi
}

and put
XINITD_SCRIPTS=(consolekit something somethingelse)
exec_xinitd_scripts
in $HOME/.xinitrc


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux