when a script is not a script according to krun...
ian reinhart geiser
geiseri at yahoo.com
Tue Mar 23 14:34:31 GMT 2004
Greetings,
I have a question about scripts with KDE. I have a few perl, python and
javascript scripts that all open with a text editor always. Now if i have
a normal bash based shell script with a .sh ending it will open with a
text editor when chmod -x and will open as an application if chmod +x.
Now my question. Can we make this consistent somehow? I was unclear of
how we detect .sh files to run, although I think thats because I had no
clue where to start and grep was unhelpful at that point.
The idea in my mind is that all files that have been chmod +x should try
to be executed first, and if that fails if they are also of a mime type
text/plain opened with a text editor. This way pyQt/pyKDE, rubyQt and
KJSEmbed can be useful for doing applications in kde, without the ever
popular windows issue of executing any script you try to open.
IMHO the execute bit in the Unix properties will be our saviour.
Comments, Ideas, Hints on where to start with this?
Cheers
-ian reinhart geiser
--:Ian Reinhart Geiser <geiseri at yahoo.com>
--:Public Key: http://geiseri.myip.org/~geiseri/publickey.asc
--:Public Calender: http://geiseri.myip.org/~geiseri/publicevents.ics
--:Jabber: geiseri at geiseri.myip.org
--:Be an optimist -- at least until they start moving animals in
--: pairs to Cape Canaveral. ~ Source Unknown
!DSPAM:40604ccd235131405427879!
More information about the kde-core-devel
mailing list