Autostart application
-
- Contributor
- Posts: 198
- Joined: 29 Aug 2013, 21:36
- Distribution: Porteus 3.1 KDE4 32bit
- Location: Czech Republic
Autostart application
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
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
-
- Full of knowledge
- Posts: 2104
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
Re: Autostart application
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
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
-
- Contributor
- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: Autostart application
there is autostart folder for every user - paste here your .desktop launchers and manage them from main menu -> settings configuration (or similar)
- francois
- Contributor
- Posts: 6498
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Autostart application
What desktop environment do you have?
Prendre son temps, profiter de celui qui passe.
-
- Contributor
- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: Autostart application
or maybe you ask for '/etc/rc.d/rc.local'
-
- Contributor
- Posts: 198
- Joined: 29 Aug 2013, 21:36
- Distribution: Porteus 3.1 KDE4 32bit
- Location: Czech Republic
Re: Autostart application
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.
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.
- francois
- Contributor
- Posts: 6498
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Autostart application
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.
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.

Last edited by francois on 08 Dec 2013, 20:15, edited 1 time in total.
Prendre son temps, profiter de celui qui passe.
-
- Contributor
- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: Autostart application
you can use && to start another app after previous
- francois
- Contributor
- Posts: 6498
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Autostart application
@tome:
Please give an example of the use of the syntax of &&.
Please give an example of the use of the syntax of &&.

Prendre son temps, profiter de celui qui passe.
-
- Contributor
- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: Autostart application
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.
or
sleep 1 && xset dpms force off
But thanks, now I know that first program must be ended.