How to create a desktop icon to open a script in aterm?
DamnSmallLinuxThis forum is for the discussion of DamnSmallLinux.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to create a desktop icon to open a script in aterm?
It has been a while since I have used linux, but just worked on the development of some pretty neat financial software and using DSL to run it easily in VmWare.
Anyways, I have 3 scripts that launch my server apps. As of right now I have to open an aterm window then enter /path/script.sh and then open another window and repeat. I have to have the term windows open since they show heartbeats and etc.
Anyways, what i can NOT figure out, and been at this for 2 days is how to create a desktop link that will automatically launch my script in an aterm window.
I have created the desktop lnk's and use Type: program and my command has been: aterm -T "label" -e /path/script.sh It won't work, the window opens then closes. I have been through every variable of aterm that I can find and no luck. I have been referencing other links that call on scripts and that is how I got the syntax. Also, I am using JWM as the window manager and even tried making a menu item, but that doesn't work.
So, the jist of it is, I can manually open aterm and put in the full path and script and it runs, now how do I make a desktop link that will do that for me?
right, well I have tried aterm and xterm using xterm -T "mylabel" -e /path/script.sh
Which SHOULD work, because if I open aterm or xterm and issue that command a window opens up, however if i do it from the desktop, I get a window that pops up and closes, and if i run it in emelfm, my window pops up and closes and it shows an end-of-output message. I have tried messing with the script and such and I get errors, however i ran across one discussion that made me remeber Konsole, and in Konsole you can set a noclose and a working path. I set hte working path in the script, but my theory is that the aterm or xterm window closes faster than my script starts, based on the emelfm output.
Do you use the ' in between your path? Someone had mentioned it but i tried it and got a sytax error back.
I am still having the same issue. if i open xterm and type the command another window opens and I am good, but if I use my icon, the window opens then closes. i noticed that the script is slow to start and I read elsewhere also that xterm will terminate as soon as the command is complete, so I am assuming that my script goes then it closes before the app actually launches.
I believe I can add an xterm entry into the script itself, any idea on how to do that? I tried and it just opened about 500 xterm windows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.