Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 24 Mar 2019, 07:38
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
5sec delayed palemoon start after boot, how?(SOLVED)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
gychang


Joined: 29 Nov 2008
Posts: 228
Location: San Diego, CA

PostPosted: Wed 13 Mar 2019, 18:25    Post subject:  5sec delayed palemoon start after boot, how?(SOLVED)  

using bionicpup64, I like to auto start palemoon 5sec after boot (gives wifi to connect to internet). Without delay I can put the symbolic link to /root/StartUp, but how do I setup sleep 5sec function?
_________________
---
trying to learn puppylinux...
---

Last edited by gychang on Wed 13 Mar 2019, 22:10; edited 1 time in total
Back to top
View user's profile Send private message 
mostly_lurking

Joined: 25 Jun 2014
Posts: 316

PostPosted: Wed 13 Mar 2019, 20:07    Post subject:  

Maybe put a script like this in /root/Startup instead of the symlink?
Code:
#!/bin/sh

sleep 5
palemoon
Back to top
View user's profile Send private message 
gychang


Joined: 29 Nov 2008
Posts: 228
Location: San Diego, CA

PostPosted: Wed 13 Mar 2019, 22:10    Post subject:  

mostly_lurking wrote:
Maybe put a script like this in /root/Startup instead of the symlink?
Code:
#!/bin/sh

sleep 5
palemoon


made palemoon.sh put in StartUp folder and made it executable and works well. rather than sleep 5, I used sleep 5s.

_________________
---
trying to learn puppylinux...
---
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 11910
Location: S.C. USA

PostPosted: Thu 14 Mar 2019, 01:47    Post subject:  

Sleep 5 is 5 sec.
Seconds is the default if no s, m, h, or d suffix is used.

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4739
Location: King's Lynn, UK.

PostPosted: Fri 15 Mar 2019, 08:26    Post subject:  

Hm. Interesting idea...

I do this with all my default browsers.....but mine are all Chrome/Chromium-based.

The Chromium-based browsers come with the ability to set about a million and one 'flags' in the startup wrapper script, which determine the browser's overall behaviour. One of these is called 'silent-launch'.

I use a wee script in ~/Startup, borrowed from ETP's Chromebook Pup v.1, which looks like this (example here is for SRWare's Iron browser):-

Code:
#!/bin/sh
#
# This is 'Silent_Launch'. Credits to ETP : Dec 2014
#
/usr/bin/Iron69 --silent-launch &


What this does is to start the browser in the background. The result being that when you click the browser icon or MenuEntry to start the browser, instead of taking the customary 15-20 seconds to 'fire up', it does so almost instantly.

Which is why I've included it as standard in my Chrome and Iron browser packages.

The only disadvantage of doing this with the Mozilla-based browsers, of course, is that they're immediately 'there' and 'in your face' as soon as you boot. Mozilla has no method for starting the browser in the background.....which I prefer, since I'd rather bring the browser up when I actually want it.

'Silent-launch' permits this. Of course, if you want the browser there immediately the instant the desktop shows, then mostly_lurking's script will certainly do that for you.


Mike. Wink

_________________
My 'Puppy' Packages
--------------------------------------

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0356s ][ Queries: 12 (0.0032s) ][ GZIP on ]