LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 09-18-2009, 09:11 PM   #1
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Using debian-sid/fluxbox; How to start a terminal app from menu??


OK
meaning
like "grml2usb" must be started by opening a term and typnig it in
how can I start an terminal app from menu
like
Code:
[exec] (GRML2USB) {sudo /usr/sbin/grml2usb}
which does nothing...

EDIT
I just tried this
Code:
[exec] (grml)  {sudo x-terminal-emulator -T "grml2usb" -e /usr/sbin/grml2usb} <>
and it starts, but then xterm crashes
why?
it opens and closes immedietly

how would i get it to open in term?

Last edited by linus72; 09-18-2009 at 09:27 PM.
 
Old 09-19-2009, 12:57 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Something like:

[exec] (grml) {x-terminal-emulator -T "grml2usb" -e sudo /usr/sbin/grml2usb}

(Not sure, as I don't use sudo, but that needs to be part of the thing to be executed.)
 
Old 09-19-2009, 04:45 AM   #3
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
thanks
I'm gonna try it
hope it works
 
Old 09-19-2009, 06:34 AM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Mmmm
that didnt work either..
xterm starts then crashes

any ideas?
 
Old 09-19-2009, 01:10 PM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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
 
Old 09-23-2009, 11:38 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by linus72 View Post
OK
meaning
like "grml2usb" must be started by opening a term and typnig it in
how can I start an terminal app from menu
like
Code:
[exec] (GRML2USB) {sudo /usr/sbin/grml2usb}
which does nothing...

EDIT
I just tried this
Code:
[exec] (grml)  {sudo x-terminal-emulator -T "grml2usb" -e /usr/sbin/grml2usb} <>
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start app with sudo from X - Fluxbox? astrogeek Slackware 2 12-16-2008 03:39 PM
fluxbox in debian sid help wrat Debian 29 01-27-2005 09:44 AM
makeing an app start at fluxbox startup sethgeekx86 Linux - Software 3 06-11-2004 04:54 AM
Opening a new terminal from Fluxbox menu (or another terminal) hallamigo Linux - Software 1 05-02-2004 03:32 AM
gnome-terminal failing to start (sid) ingy866 Debian 1 10-21-2003 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration