Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm using a bash script run from the KMenu to launch Amarok, so that I can mount the NFS share on which my music directory is located. The script checks to see if the directory is mounted. If not, it attempts to mount it. If the directory is mounted at that point, it launches Amarok. Otherwise, it terminates. This makes sure that Amarok doesn't launch without the music directory mounted, which would require me to rebuild the collection the next time I open it with the directory mounted.
Anyway, my problem is with launching the script from the KMenu. When I run the script from the terminal, just using
will allow me to close the terminal after Amarok's been launched, without any problems with Amarok terminating as well. But when I launch the script from the KMenu, none of the following (which I found online) work for me:
I'm getting there - now it's not closing the terminal once the script terminates, but when I close the terminal manually, Amarok stays open. Any chance you'd know how to automatically close the terminal as well? I tried
Is it necessary for the terminal to show when the script is being run? I only ask because it sounds like you have the "Run in terminal" box checked, in which case it's a simple fix - just uncheck the "Run in terminal" box.
I realize it's a slightly unnecessary step, but you could use a package like Zenity to provide a GTK+ message box to tell you if the NFS shares were mounted successfully or not -- it's like "dialog" but provides a nice GTK+ interface, and is used by the command-line.