Maui Forums
Plank startup - Printable Version

+- Maui Forums (https://forums.mauilinux.org)
+-- Forum: Maui Support (https://forums.mauilinux.org/forumdisplay.php?fid=74)
+--- Forum: Software & Applications (https://forums.mauilinux.org/forumdisplay.php?fid=77)
+--- Thread: Plank startup (/showthread.php?tid=24113)

Pages: 1 2


Plank startup - claude - 15th November 2016

How to delay Plank at startup ?


RE: Plank startup - rocky7x - 15th November 2016

Change the startup string to something like this:

Code:
bash -c "sleep 10m && plank"

Check man sleep for other time units...


RE: Plank startup - leszek - 15th November 2016

uff 10 minutes delay ? xD

Yeah the sleep is correct but I would set it so something more reasonable Smile


RE: Plank startup - rocky7x - 15th November 2016

(15th November 2016, 20:40)leszek Wrote: uff 10 minutes delay ? xD

Yeah the sleep is correct but I would set it so something more reasonable Smile

Big Grin Big Grin yeah I've just copied that from another site in a hurry, indeed 10 minutes is ridiculous  Big Grin  something like 30s would be more appropriate...


RE: Plank startup - claude - 15th November 2016

(15th November 2016, 20:53)rocky7x Wrote:
(15th November 2016, 20:40)leszek Wrote: uff 10 minutes delay ? xD

Yeah the sleep is correct but I would set it so something more reasonable Smile

Big Grin Big Grin yeah I've just copied that from another site in a hurry, indeed 10 minutes is ridiculous  Big Grin  something like 30s would be more appropriate...

i add the plank in the startup setting and add the string from the terninal with 30s. I reeboot maui,but plank showed up right away. Wonder if i did something wrong?


RE: Plank startup - leszek - 15th November 2016

Yeah I think autostart will ignore it if you don't use add it as a script.
Did you add it as a script to autostart ?


RE: Plank startup - claude - 15th November 2016

(15th November 2016, 23:28)leszek Wrote: Yeah I think autostart will ignore it if you don't use add it as a script.
Did you add it as a script to autostart ?
Like this one ?
bash -c "sleep 30s && plank"


RE: Plank startup - leszek - 15th November 2016

Yeah I think you need to put this line in a script that starts with
Code:
#!/bin/bash
And this file needs to be executable.


RE: Plank startup - claude - 16th November 2016

(15th November 2016, 23:53)leszek Wrote: Yeah I think you need to put this line in a script that starts with

Code:
#!/bin/bash
And this file needs to be executable.

I give up, tried many different ways,(no sure what i am doing) with no luck.


RE: Plank startup - rocky7x - 16th November 2016

When you just change the startup file in settings, it will get overwritten and set to default again.. therefore just create a text file (for example in Kate) put in it this:

Code:
#!/bin/bash
bash -c "sleep 30 && plank"

Save it with extension .sh

Via command line do this:
Code:
chmod 755 file.sh

Add it into startup settings with Add script.
I have dropbox set like this and it works.