Autostart application

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
ztrapl
Contributor
Contributor
Posts: 198
Joined: 29 Aug 2013, 21:36
Distribution: Porteus 3.1 KDE4 32bit
Location: Czech Republic

Autostart application

Post#1 by ztrapl » 07 Dec 2013, 11:49

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

donald
Full of knowledge
Full of knowledge
Posts: 1362
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Autostart application

Post#2 by donald » 07 Dec 2013, 15:28

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

tome
Contributor
Contributor
Posts: 615
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Autostart application

Post#3 by tome » 07 Dec 2013, 22:45

there is autostart folder for every user - paste here your .desktop launchers and manage them from main menu -> settings configuration (or similar)
No intelligence, no life and no information can exist without prior intelligence, life or information (in place where things change and time is running).

User avatar
francois
Contributor
Contributor
Posts: 5369
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

Post#4 by francois » 07 Dec 2013, 23:44

What desktop environment do you have?
Prendre son temps, profiter de celui qui passe.

tome
Contributor
Contributor
Posts: 615
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Autostart application

Post#5 by tome » 08 Dec 2013, 10:31

or maybe you ask for '/etc/rc.d/rc.local'
No intelligence, no life and no information can exist without prior intelligence, life or information (in place where things change and time is running).

ztrapl
Contributor
Contributor
Posts: 198
Joined: 29 Aug 2013, 21:36
Distribution: Porteus 3.1 KDE4 32bit
Location: Czech Republic

Re: Autostart application

Post#6 by ztrapl » 08 Dec 2013, 11:06

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.

User avatar
francois
Contributor
Contributor
Posts: 5369
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

Post#7 by francois » 08 Dec 2013, 12:49

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. :)
Last edited by francois on 08 Dec 2013, 20:15, edited 1 time in total.
Prendre son temps, profiter de celui qui passe.

tome
Contributor
Contributor
Posts: 615
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Autostart application

Post#8 by tome » 08 Dec 2013, 16:18

you can use && to start another app after previous
No intelligence, no life and no information can exist without prior intelligence, life or information (in place where things change and time is running).

User avatar
francois
Contributor
Contributor
Posts: 5369
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

Post#9 by francois » 08 Dec 2013, 16:56

@tome:
Please give an example of the use of the syntax of &&. :)
Prendre son temps, profiter de celui qui passe.

tome
Contributor
Contributor
Posts: 615
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Autostart application

Post#10 by tome » 08 Dec 2013, 18:10

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.
No intelligence, no life and no information can exist without prior intelligence, life or information (in place where things change and time is running).

Post Reply