[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: classic deficiancy in both windows and linux ?



On Friday 24 October 2003 15:24, David Pye wrote:
> Make yourself a script :)
>
> Then give it an icon and you can run it from the desktop.
>
> Try something like:
>
> #!/bin/bash
> dirname=`kdialog --inputbox "Please enter dir name"`
>
> if [ ! -d "$dirname" ]; then
> 	kdialog --error "Directory does not exist"
> 	exit
> fi
>
> #Directory exists
> ls $dirname > /tmp/dirlist.$$
> kwrite /tmp/dirlist.$$
> #Delete temp file after kwrite exits
> rm /tmp/dirlist.$$
>
>
> Heh, I knew I read the KDialog http://dot.kde.org tutorial for a good
> reason
>
> :)

:)
It might be possible/practical to skip the first dialog by using a 
Konqueror service menu
http://developer.kde.org/documentation/tutorials/dot/servicemenus.html
ServiceType for directories is inode/directory

Cheers,
Kevin

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Attachment: pgpK3LUv03A7J.pgp
Description: signature


Reply to: