Page 1 of 1

Autostart application

Posted: 07 Dec 2013, 11:49
by ztrapl
Hi all,

I have this question: If I want to make an application is launched at system startup can set the automatic start and to start the application as a last resort?
Can I use this script, or is there a better solution?

#!/bin/sh
# Autostart My application
sleep 15
/usr/bin/my application

Re: Autostart application

Posted: 07 Dec 2013, 15:28
by donald
Hi ztrapl
you could use the cheatcode:guiexec=
(eg.guiexec=firefox;pidgin)
to start graphical applications (runlevel 4)
more info about guiexec and cliexec can be found in /boot/docs/cheatcodes.txt

Re: Autostart application

Posted: 07 Dec 2013, 22:45
by tome
there is autostart folder for every user - paste here your .desktop launchers and manage them from main menu -> settings configuration (or similar)

Re: Autostart application

Posted: 07 Dec 2013, 23:44
by francois
What desktop environment do you have?

Re: Autostart application

Posted: 08 Dec 2013, 10:31
by tome
or maybe you ask for '/etc/rc.d/rc.local'

Re: Autostart application

Posted: 08 Dec 2013, 11:06
by ztrapl
Hi all,

First, thank you for your answers.
I use the distribution Porteus 2.1 32-bit KDE4
How to run an application at system startup know.
But I wonder whether it is possible to influence the order in which the application runs at system startup.

Re: Autostart application

Posted: 08 Dec 2013, 12:49
by francois
You have to put the script in /root/.kde4/Autostart/.

Personally, I have never used the sleep instruction in porteus.

Concerning the opening order of applications, maybe you should try to number your scripts: 1-script-bla, 2-script-bla-bla, etc.

Let us know if it suits your needs. :)

Re: Autostart application

Posted: 08 Dec 2013, 16:18
by tome
you can use && to start another app after previous

Re: Autostart application

Posted: 08 Dec 2013, 16:56
by francois
@tome:
Please give an example of the use of the syntax of &&. :)

Re: Autostart application

Posted: 08 Dec 2013, 18:10
by tome
mloop /mnt/sda1/x.xzm && pcmanfm /mnt/loop/home
or
sleep 1 && xset dpms force off

But thanks, now I know that first program must be ended.