Script Execution Order

Hi,

could someone please post a link to a document which lists or diagrams the execution order of the standard, provided shell scripts (/profile, /bashrc, etc.) in openSuSE?

(I don’t know the correct terminology, so my searches here and on the Web haven’t produced anything.)

Thanks!

Look at the manual page for bash.

Ok, thanks.

I found what I needed to know: that ~/.profile is the last initialization file in the sequence after loggin in. I was just wondering if one exists after it, because this file seems to execute before the graphics system is started, so I can’t get the xrand command to work. It looks something like this:

xrandr --output VGA1 --mode 1680x1050

The code works fine in a bash script that’s placed in the ~/.kde4/Autostart/ folder. It’s just strange that it doesn’t work when I write the same line in ~/.profile.

~/.profile is run by login shells. The GUI desktop is not a login shell. Also ~/.profile is also run for login shells that have no GUI behind them. And it will be run multiple times if you have several X terminal windows. So putting it in Autostart is the right thing to do.

Ok, that makes perfect sense. Thanks!