LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 10:11 PM   #1
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
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 10:27 PM.
 
Old 09-19-2009, 01: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, 05:45 AM   #3
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
thanks
I'm gonna try it
hope it works
 
Old 09-19-2009, 07:34 AM   #4
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

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

any ideas?
 
Old 09-19-2009, 02: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 02:17 PM. Reason: interactivity question
 
Old 09-23-2009, 12:38 PM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:39 PM
fluxbox in debian sid help wrat Debian 29 01-27-2005 10:44 AM
makeing an app start at fluxbox startup sethgeekx86 Linux - Software 3 06-11-2004 05:54 AM
Opening a new terminal from Fluxbox menu (or another terminal) hallamigo Linux - Software 1 05-02-2004 04:32 AM
gnome-terminal failing to start (sid) ingy866 Debian 1 10-21-2003 07:00 PM


All times are GMT -5. The time now is 05:16 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration