Tuesday, August 02, 2005
Prompting for arguments with KDE
Today, I needed to make an application shortcut (.desktop file) that prompted for arguments. I searched Google ten different ways and couldn't find any posts on doing what should be a simple task. I finally solved the mystery in a highly ghetto way - I used bash to find all binaries that begin with K. When I saw kdialog I knew how to do it. Good luck ever finding this on Google:
server=`kdialog --inputbox "Server to connect to"` ; rdesktop -x l -a 24 -u administrator -g 1024x768 $server
server=`kdialog --inputbox "Server to connect to"` ; rdesktop -x l -a 24 -u administrator -g 1024x768 $server