Jump to content

Getting info from KDE


Guest itmpm
 Share

Recommended Posts

Hi. It would be very useful to be able to get input from the user from, say, a bash script when running in KDE. Something analogous to MsgBox(...) in Visual Basic. Is there such an animal?

 

BTW, I know I am asking questions when I'm supposed to be posting tips here, but it is my hope that other people will find the answers helpful as well. I am working on a bash script that will mount and unmount the CD-ROM properly when its icon is clicked on the desktop. I'll be happy to post it when I'm done.

 

MTIA,

 

Matt

Link to comment
Share on other sites

I don't know how to do the first thing but you don't need a bash script to mount and unmount a cdrom, even with supermount disabled. You can create a desktop icon that does pretty much the same thing as follows:

 

1.Right click on your destop and go to Create New>CD-DVD-ROM Device;

2.On the pop-up window, tick the Device tab;

3.In the Device field, tick on the arrow to reveal the drop down menu of devices available and select the device you want(e.g. /mnt/cdrom);

4.Tick the General tab then the OK button and the icon will appear on the desktop.

 

If you insert a CD in the drive and click on this icon, the CD will be automatically mounted and the icon will chage to indicate the CD is mounted. Konqueror will come up to reveal the contents of the CD. You can also mount by right clicking the icon and selecting mount from the drop down menu. To unmount, right click on the icon and select either unmount or eject. Once unmounted, the icon will change back to its unmounted state.

Link to comment
Share on other sites

I tried this ages ago when I first got my system, but it didn't work because I replaced the CD-ROM drive with a CDRW. However, having fiddled quite a bit since then, I just tried it again and it works!

 

Thanks.

 

Matt

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...