Author Topic: Set/add startup programs  (Read 1102 times)

Offline comptech

  • Jr. Member
  • **
  • Posts: 13
Set/add startup programs
« on: March 04, 2012, 06:58:02 AM »
Hi,

How can I set or add programs to the startup?

Ubuntu for example has this simple "startup programs" utility in which you can set what starts at bootup and even add things, does PCLinuxOS have that too?


Thanks.

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15283
  • ┌∩┐(◕_◕)┌∩┐
Re: Set/add startup programs
« Reply #1 on: March 04, 2012, 07:15:54 AM »
Hi,

How can I set or add programs to the startup?

another distro for example has this simple "startup programs" utility in which you can set what starts at bootup and even add things, does PCLinuxOS have that too?


Thanks.

Which version of PCLinuxOS are you using comptech? as it may differ on how this is done (and if it all for certain things)
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10622
  • MLUs Forever!
Re: Set/add startup programs
« Reply #2 on: March 04, 2012, 07:17:27 AM »
Presumably you mean applications ......  add (a copy of) an app launcher to the Autostart file for those apps you want launched on startup.

In KDE4 the Autostart directory is

/home/<user-name>/.kde4/Autostart/

MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline comptech

  • Jr. Member
  • **
  • Posts: 13
Re: Set/add startup programs
« Reply #3 on: March 04, 2012, 07:44:11 AM »
I'm using the latest 2012 KDE.

Actually I wanna start a program not a file.

Offline marcin82

  • Full Member
  • ***
  • Posts: 128
  • Jest wirek - jest impreza ;]
Re: Set/add startup programs
« Reply #4 on: March 04, 2012, 07:52:59 AM »
Quote
Actually I wanna start a program not a file.
Ok, for example - if you want start Firefox at system startup, run from terminal:
Code: [Select]
ln -s /usr/share/applications/firefox.desktop ~/.kde4/Autostart/After this logout to login screen, and log into KDE4.
« Last Edit: March 04, 2012, 07:55:27 AM by marcin82 »
marcin'82

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Set/add startup programs
« Reply #5 on: March 04, 2012, 08:52:04 AM »
Menu > More Applications > Configuration > Configure Your Desktop.

On SystemSettings, go to System Administration > Start and Shutdown > Autostart.

If you want to add a "program", click Add Program and either select your app from one of the categories on Known Application or click the folder icon and type in the location/application you want to autostart on login.

HTH
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline comptech

  • Jr. Member
  • **
  • Posts: 13
Re: Set/add startup programs
« Reply #6 on: March 04, 2012, 09:08:28 AM »
Thanks, that is exactly what I was looking for.

How can I move it to the second desktop and make it start there? What do I add to the "Command:" option, I guess, that I have available?
« Last Edit: March 04, 2012, 09:14:49 AM by comptech »

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Set/add startup programs
« Reply #7 on: March 04, 2012, 05:00:11 PM »
Right-click on the opened app's window titlebar > Advanced > Special Windows Settings...

The option you are looking for is in one of the tabs ... Size & Position (I think, I am not in front of my OS right now) ... you will need to enable and set Desktop ... Remember/Apply Initially/Force ... > Desktop 2.

What do I add to the "Command:" option, I guess, that I have available?

This really depends is the app you are using needs extra parameters when it is launched. Otherwise, you will most likely find the command in /usr/bin or /usr/sbin.

Another way to check this out is see the Exec line of your preferred autostart app on its desktop file, which is stored at /usr/share/applications/
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline comptech

  • Jr. Member
  • **
  • Posts: 13
Re: Set/add startup programs
« Reply #8 on: March 05, 2012, 11:52:35 AM »
Yes I meant the autostart command line.

Right now I have:
Quote
MyApp -caption "%c" %i

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Set/add startup programs
« Reply #9 on: March 05, 2012, 01:41:07 PM »
You've been shown where... without specifics, only you would know what you add there would either work or not.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6372
  • I'm going South
Re: Set/add startup programs
« Reply #10 on: March 05, 2012, 04:20:08 PM »
comptech,

You've been given a lot of good tips and information, but it seems to me that you've got it piecemeal. So:

In KDE there are several ways of setting up programs to start automatically at login.

First you can specify whether a new login should start with an empty session, restore your previous session (i.e. restart the programs running at you last logout), or restore a manually saved session. ('Systemsettings', a.k.a. 'Configure Your Desktop'-->'System Administration'-->'Startup and Shutdown'-->'Session Management'.)

But even if you've ticked 'Start with an empty session', any executables found in a number of autostart directories will be run at login. Some of these directories are user specific; some of them are global, i.e. the programs in them are started at login regardless of who is logging in.

User specific autostart folders:
/home/<yourname>/.kde4/Autostart
/home/<yourname>/.config/autostart


Global autostart folders:
/usr/share/autostart

You can actually set up KDE to use any folder as its default autostart folder. ('Systemsettings'-->'Account Details'-->'Autostart Path:') Typically the default folder would be /home/<yourname>/.kde4/Autostart, but it doesn't even have to be named 'autostart' or 'Autostart'.

And even if you've picked ~/.kde4/Autostart as your default autostart folder some apps may in different ways end up in ~/.config/autostart instead. It depends on how the link or .desktop file is created.

Often the files in the autostart directories will be .desktop files (from which programs can be started with lots of options), but they may as well be shell scripts or symbolic links to executables.

When you add a program from the GUI ('Systemsettings'-->'Startup and Sutdown'-->'Autostart') a desktop file will normally be created in your default autostart folder, but you can change that.
« Last Edit: March 05, 2012, 04:46:43 PM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3729
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Set/add startup programs
« Reply #11 on: March 05, 2012, 04:42:07 PM »
Yes I meant the autostart command line.

Right now I have:
Quote
MyApp -caption "%c" %i

See Bald Brick given enough infos about autostart, but if you like a command to run at autostart, generate a little script.
As sample
Code: [Select]
#!/bin/bash
MyApp -caption "%c" %i
save it in a autostart folder as YOUR_NAME, and make it executable. Logout/in, should work.
Under lxde don't want, you need to generate a desktop file for your script, and store it in autostart folder. Your script can store where ever you like on /home directory. But it must executable.
A desktop file should look as sample see below

Code: [Select]
[Desktop Entry]
Name=YOUR_NAME
Comment=description
Exec=/home/YOU/NAME
Icon=NAME.xpm
Terminal=false
Type=Application
Encoding=UTF-8

That's all...

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6372
  • I'm going South
Re: Set/add startup programs
« Reply #12 on: March 05, 2012, 04:44:44 PM »
Yes I meant the autostart command line.

Right now I have:
Quote
MyApp -caption "%c" %i



If you are wondering what %c and %i stand for, see http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html.
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline comptech

  • Jr. Member
  • **
  • Posts: 13
Re: Set/add startup programs
« Reply #13 on: March 06, 2012, 07:27:54 AM »
Oh I thought I had to use the command line. I got it working now.