Originally Posted by
ardouronerous
....
So, I'd like to put a 15 second delay on Software Updater autostarting, how can I do this?
Thanks.
Write a simple bash script and store it in your home folder, eg in /home/$USER/bin/. Give it a name you can then use in the ~/.config/autostart file.
In that script include a 15 second sleep command then the command to initiate the software updater.
As an example I use Xubuntu 18.04 and in the startup list I have an entry that calls a script in my $HOME/bin folder called "DPMS_OFF-startup". This script shown in the next code box uses a 20 second delay on startup then it turns off all DPMS settings so I have no screen blanking or monitor turning off occurring in the new session.
Code:
#!/bin/bash
sleep 20 && \
xset s 0 0; xset s noblank; xset dpms 0 0 0; xset -dpms;
exit 0
I don't know the exact command you use with the software updater but changing the above script to 15 seconds and replacing the xset commands line above to that for the software updater should work for you. Whatever you call the script is what you call with the autostart file entry. The location $HOME/bin should be in your users system path so this idea should work ok for your needs.
Regards, yeti.
Edit: ninja'd by ajgreeny
Bookmarks