Using debian-sid/fluxbox; How to start a terminal app from menu??
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I'm pretty sure the basic syntax is right as far as flux is concerned (even though I use fvwm). So you might want to try 'x-terminal-emulator -hold -T "grml2usb" -e sudo /usr/sbin/grml2usb' if your x-terminal-emulator supports the '-hold' switch (if it's xterm, at least, it does). This may let you see what's wrong. Experimenting on my own system, I suspect either you need to change it to 'x-terminal-emulator -T "grml2usb" -e sudo -i /usr/sbin/grml2usb' (though you are giving the full path, there may be other environment variables grml2sub wants and isn't getting) or that there's something wrong with the configuration grml2sub, itself. Does it run when invoked from x-terminal-emulator directly, aside from the fluxbox menu? And does plain '[exec] (grml) {x-terminal-emulator -T "grml2usb"} give you a properly titled working x-terminal-emulator?
-- It also finally occurred to me to look up what grml2usb actually is. This is a command line tool, isn't it? There is no interactive UI, so it's not really a thing to put on a fluxbox menu. At least not via xterm. The terminal will only persist so long as there is a process running and a command line app will exit as soon as the command completes. I was thinking this must be some kind of UI app. If it is an interactive app, then what I said above may still apply but, otherwise, it's just a one shot. If you really want it on your menu (the equivalent of a button) then just make sure the command works from the command line and then put it on your menu without xterm and it should simply execute, though you won't see anything.
Last edited by slakmagik; 09-19-2009 at 01:17 PM.
Reason: interactivity question
and it starts, but then xterm crashes
why?
it opens and closes immedietly
how would i get it to open in term?
What's "grml2usb"? What does it do? If the program ends the terminal will close, just like if you do "xterm -e ls". If you want the console to remain open after running use "xterm -hold -e ls".
The -hold option, in any case, will probably be useful to determine what's going on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.