Run at bootup

I was just trying to get Firefox to run at boot-up but I cant get it to work.
Also, I already have Thunderbird to run at boot-up but it’s not in this list;

http://img96.imageshack.us/img96/5390/startupapplicationspref.th.jpg

I cant remember how I did it, so would like some help in how to do it.
I don’t know if it’s done the same way but I want certain drive windows to open on boot-up too, how is that done too?
Also, are there any IMPORTANT items I should have run at boot-up too?

Try this:

a) Open File Manager (Nautilus)
b) View->Show Hidden Files
c) Browse to “home/.config/autostart” folder
d) Drag Icon/App from Application Menu onto autostart folder

or

You can also type this command in the terminal:

gnome-session-properties

How and where is Nautilus file manager?
Used CTRL + H instead to see whats in “home/.config/autostart”

You can also type this command in the terminal:
gnome-session-properties

ERROR - No Protocol Specified.

How and where is Nautilus file manager?

Nautilus is the default GNOME file manager. :slight_smile:

Sorry about the “gnome-session-properties” perhaps it is not available in GNOME Classic

The Nautilus file manager is what you were looking at when you hit Ctrl+H … the equivalent of “Windows Explorer” in Windows :wink:

but I’d use the “Startup Applications” (that you have pictured) to autostart stuff.

If it can be done from the commandline (which is pretty much anything) it can be done with “Startup Applications”

just “Add” an item -

Name: Firefox
Comment: Web Browser
Command: firefox

or for one of your drives/partitions

Name: Win-Video
Comment: open Winvideo
Command: nautilus /media/Win-Video (or whatever the path is)

You may find the command for nautilus to open a specific directory needs to be inside quotation marks, as in -

Name: Win-Video
Comment: open Winvideo
Command: “nautilus /media/Win-Video”

I can’t remember, and I’m not currently sat at an Ubuntu PC … rather Peppermint which doesn’t have “Startup Applications”, so needs .desktop files adding to the autostart directory.

The one to open the web browser didn’t work!
Not tried the second one to open a window but the first one worked, the one without the quotes.
Also, how can I get it to do this at boot-up

http://img201.imageshack.us/img201/888/opendrives.th.jpg

Do I write it as something like this;
Command: nautilus /media/Win-Video /media/WinStorage

No … open the “Statrtup Applications” dialog, like you have pictured in the first posting in this topic … click “Add” and enter what I said.

are you saying if you enter:

firefox

in a terminal it doesn’t start firefox ?

I have done
it worked for opening a drive to view the contents, what I want in the end is more than 1 drive opened in the same window (as pictured in the jpg in previous post)

What I was on about with this;
Command: nautilus /media/Win-Video /media/WinStorage
was IS IT POSSIBLE, NOT I have done it. And How is it possible?

Nope, I want it to automatically open on start-up like Thunderbird does

Nope, I want it to automatically open on start-up like Thunderbird does

Well add it in “Startup Applications” then as a new item, with the the Command: line reading -

firefox

(all lower case)
and make sure it’s ticked.

As for opening nautilus with multiple tabs … this cannot be done from the command line, so it cannot “easily” be achieved.

I say “easily” because it would be possible to write a script that actually opens nautilus then does the necessary keystrokes to open the tabs … there is a script (that you’d need to modify) here:
http://paste.ubuntu.com/566869/
then I suppose you could run the script from “Startup Applications”

Source:

It worked, I put ‘firefox’ in the wrong box earlier ::slight_smile:

I’m going to tackle the script now.

The other option (as SeZo said) would have been to copy the firefox.desktop file from /usr/share/applications to ~/.config/autostart … as in:

cp -v /usr/share/applications/firefox.desktop ~/.config/autostart/

Good luck with the script.

I didn’t do that as I didn’t understand what he was on about?

1st attempt at the script failed :frowning:

Does it need to be saved with a file extension? .txt?

Sorry to be a pain, how do I run a script without having it run at boot-up?
And, does it need to be given a file extension, txt or anything or just a name, e.g. MultipleWinOpen
Also, does it matter where the script is?

I’m sorry, it’s all these new words for things that I don’t understand;
Nautilus file manager = Windows Explorer
ans others…

The accepted extension for a shell script is .sh … though it’s not 100% necessary.

to run it …

First you’ll have to make it executable … so lets say it’s called myscript.sh and is in your Home directory …

chmod +x ~/myscript.sh

Now, unless it is somewhere in the $PATH (which if it’s in you Home directory it ISN’T) you’ll have to run it with the FULL path … as in:

/home//myscript.sh

or, you could “cd” to the directory, and prefix the script name with “./” … as in:

cd ~
./myscript.sh

I’ve done that bit, just needed to do chmod +x MultipleWinOpen.sh (No error came up)
now how do I run it?
if it was in the last post, I could not understand it properly

It depends where it is … you need to run it with the FULL path included … so if your username is pooky and the script is in your Home directory it can be run with:

/home/pooky/MultipleWinOpen.sh

I clicked on the actual file itself and it ran but didn’t actually do anything?