> QML could be an extremely nifty tool for writing simple script style > applications without compromising in the user interface front. > Supporting the #! syntax would make it even more attractive, at least > to me. And even more so to the hordes of Meego hackers already banging at > the gates ;-)
It's long past time that bash, or whatever shell you use, learned to do what other shells (like Window, KDE, GNOME, etc.), and so learned what a MIME type is, and what to do with it. #! is magic implemented by *exec* itself, and that's not what you really want, right? (i.e. you don't care if QProcess can't magically run QML files). It would also required that you chmod+x your QML files (yikes). But you just want your shell to know what to do with a *.qml file, right? Otherwise, why not also: #!/usr/bin/firefox <html> ... ??? (amusingly, on my system, the above doesn't even run firefox, because /usr/bin/firefox is itself a shbang, and shbangs can't call shbangs [so much for THAT "abstraction"]). Personally, prepending "qml " to execute QML files is fine for me and I don't need bash improved ;-) -- Warwick _______________________________________________ Qt-qml mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-qml
