[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KDE - and scripting
From:       Holger Freyther <freyther () gmx ! net>
Date:       2002-07-17 10:17:44
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Tuesday 16 July 2002 22:43 schrieb Hetz Ben Hamo:
> Hi,
>
> I have been talking to few people who really enjoy KDE, but many of them
> had one big wish - KDE scripting...
>
> Yes, I know there's DCOP, but I don't see a way you can do something as
> simple as this:
>
> #!/bin/sh
> echo "cleaning your TMP directory"
> rm -rf /home/abc/temp
> echo "Done."
>
> Now - lets say I want to do the same thing with KDE - but this time I want
> to have KDE dialogs to let the user press OK or Cancel (and add the the
> condition - but without using a language like perl/python or any other
> language other then bash which gets the status from the message) and
> display "Done" when ending...
>
> Yes, I know there are perl and Python binding for QT and KDE, but this
> doesn't help with some shell scripting. Imagine a place like a university
> or a collage where KDE is implemeted on all the Linux and Unix machines -
> the Admin could write several scripts which can be used by people who don't
> know anything about Linux or Unix.
>
> Example: the secretary got a problem saving/reading several files. A shell
> script could check premissions, ask her passwords and correct /etc/fstab or
> other files. The Admin guy could simply tell her "click the K menu, then
> click on the Application menu, then click on "premission checker". This
> admin doesn't need to know anything about high level languages - which
> brings a serious boost in KDE in corporates, universities, collages, etc..
>
> Another example - the secretary wants to backup her files. A shell script
> with KDE GUI launched from the script could let her select the folder, and
> tar the files, and when finished, it could simply show "Done"..
>
> Another example - a beautified script to compile KDE apps - the user just
> select the place to install (default is shown), and the user click next -
> inside the KDE GUI he sees a scroller running while it compiles, and with a
> single click button he can see inside the installation the compile
> procedure. When it finishes - it asks the user premission and password to
> install on the desired location. We can even add a file association (lets
> call it .ki - KDE Installation) which the user click and the script can
> run.
>
> There is SashXB for the GNOME project but it's based on Javascript. I
> belive that there are tons of people who know shell more then those who's
> willing to learn Javascript to replace those scripts. I'm pretty sure that
> those user (well, many of them) will like this new feature..
>
> Comments?
There is a ncurse based tool called dialog and KDE pendant called kdialog. It 
allows you to have simple things like KMessageBoxes and so on

regards Holger
>
> Thanks,
> Hetz
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9NURNGckbdURWU2oRAjMEAJ9pvjb/UAtwbVQTIIe/+tH2pZxwKQCeMWbt
8k/9nEDen4VlPXqJ4KFIj38=
=vzdb
-----END PGP SIGNATURE-----

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic