A Series of Unfortunate Problems (Xgl, 3.4->3.5 upgrade)
James Gray
james at grayonline.id.au
Tue Feb 21 04:05:55 UTC 2006
On Wednesday 15 February 2006 21:26, dave s wrote:
> > ? I don't get it. I think you're telling me to either run this in
> > Konsole or YaKuake right now or dump it into ~/.kde/autostart in a .sh
> > file, but I'm not sure.
>
> Sorry, I am not the best as explanations.
>
> Startup an editor eg kate, on the first line type #!/bin/sh. This is real
> important and tells the system the file is a bash script.
<PEDANT>
The "hash-bang" actually spawns a sub-shell, and uses the *sub-shell* as the
command interpreter. It could just as easily be "#!/bin/awk" :P Without the
hash-bang line the file is executed in and by the CURRENT shell (command
interpreter), one line at a time. Problem - what shell (command interpreter)
does KDE's autostart feature use??
</PEDANT>
FWIW, there's a "shell" that compiles C code on the fly and then executes the
resultant binary allowing you to use a raw C source code file as if it were a
standard shell script :P Never played with it, but very neat!
Cheers,
James
--
If parents would only realize how they bore their children.
-- G.B. Shaw
More information about the kubuntu-users
mailing list