Page 1 of 1

AUTO-RUN command on STARTUP (when porteus is up-n-running)

Posted: 26 Feb 2013, 14:52
by testsforknowledge
where can i put some command ,
that it will be executed when porteus is up-n-running?

(let-s say if i wish to start gimp automatically)???

thnx for help

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Posted: 26 Feb 2013, 21:23
by Ahau
hi testsforknowledge,

To autostart an application when your desktop environment starts up, try copying the .desktop file from /usr/share/applications/ into /etc/xdg/autostart. If you're looking to run a script or something prior to the desktop opening up, you can add a line to /etc/rc.d/rc.local.

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Posted: 26 Feb 2013, 21:26
by Hamza
@Ahau, It has been confirmed by fanthom that rc.local script is executed before Xserver so no GUI could be executed. I don't think that's the right option as the user want to execute a software such as GIMP which will need at least Xserver :)

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Posted: 26 Feb 2013, 21:32
by Ahau
Yes, Hamza, you are correct. I should have been more clear in my statement that this would not work for opening up an app inside a Desktop Environment.

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Posted: 26 Feb 2013, 23:29
by brokenman
Please remember to give as much info as possible when asking for help. A good start would be which architecture you are using such as 32 or 64bit. Next it would be useful to know which version of Porteus you are running and which desktop environment you are booting into such as xfce, lxde, razor, kde4.

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Posted: 27 Feb 2013, 08:29
by testsforknowledge
- How to start let/s say GIMP(or another prg with GUI) automatically, when PORTEUS is up-n-running?
(but porteus is booted from USB)

- how to make some folder automatically copies from USB (folder of PORTEUS USB) to Desktop

Thank you
i have Porteus 1.2, 32bit

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Posted: 01 Mar 2013, 04:42
by Ed_P
This thread may interest you:

http://forum.porteus.org/viewtopic.php?f=81&t=1955

Don't let the title throw you.

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Posted: 01 Mar 2013, 06:34
by fanthom
@ testsforknowledge
How to start let/s say GIMP(or another prg with GUI) automatically, when PORTEUS is up-n-running?
copy relevant .desktop file from /usr/share/applications to ~/.config/autostart (for LXDE/XFCE/Razor) or ~/.kde4/Autostart (for kde4)
- how to make some folder automatically copies from USB (folder of PORTEUS USB) to Desktop
use /etc/rc.d/rc.local for this purpose

Cheers

AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Posted: 25 Mar 2013, 08:27
by testsforknowledge
fanthom wrote:@ testsforknowledge
How to start let/s say GIMP(or another prg with GUI) automatically, when PORTEUS is up-n-running?
copy relevant .desktop file from /usr/share/applications to ~/.config/autostart (for LXDE/XFCE/Razor) or ~/.kde4/Autostart (for kde4)
- how to make some folder automatically copies from USB (folder of PORTEUS USB) to Desktop
use /etc/rc.d/rc.local for this purpose

Cheers

tested 1st part: added link into ~/.kde4/Autostart/ folder and when all is loaded, it starts my program.

BUT,
does anyone know why it is started 2x?? I run BLENDER, but i do not know yet, why it opens 2 blenders. when i close one, after it openes one more.

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Posted: 25 Mar 2013, 18:40
by Hamza
Did you added that blender command into 2 files? Did you used '&' tweak in order to run your software in background?

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Posted: 25 Mar 2013, 19:32
by fanthom
tried with avidemux and it does not appear again after closing.