Re: stupid shell tricks (launching GUI apps from Terminal)



Dave Seaman wrote:
Nice try, but you can't execute the binary from the GUI. You can do that
in a Terminal window, but not from the GUI. That's what I have been
saying all along.

I guess I can't either support or dispute you without defining
"execute from," "binary," and "GUI."

When you use the Dock to launch FireFox, a subsequent "ps -auxww"
will show something like /Internet/Firefox.app/Contents/MacOS/firefox-bin -psn_0_4325400
to me, that shows that Dock did "execute" that binary.

What FireFox does with that number, if anything, I do not know.
But every app gets one.

Making up a number with the same digit-length for a command line launch works (as far as I can see) exactly the same as leaving it out.

Inventing such a number, inventing a different command line switch,
or using only the filename, all result in apparently normal behavior
and "ps -auxww" shows exactly what you invoked--nothing creates the psn
you left out. No complaints about me making up a switch, although
the app DOES have a stderr output (somethings wrong with the Adobe plug-in)

/Internet/Firefox.app/Contents/MacOS/firefox-bin -help
prints a list of other possibly useful options!
But this list does NOT include anything starting with -psn

--
Wes Groleau
-----------
Curmudgeon's Complaints on Courtesy:
http://www.onlinenetiquette.com/courtesy1.html
(Not necessarily my opinion, but worth reading)
.



Relevant Pages

  • Re: Tech Req: AfM Auto Launcher -- a vibrator?
    ... The coil acting like a vibrator - I'd try another coil, ... difference in a ball launch when this is about to occur. ... 1N4004 at D84 and verified all resistors in that switch circuit. ...
    (rec.games.pinball)
  • Tech Req: AfM Auto Launcher -- a vibrator?
    ... difference in a ball launch when this is about to occur. ... 1N4004 at D84 and verified all resistors in that switch circuit. ... started when I swapped plugs under the playfield. ...
    (rec.games.pinball)
  • Re: Its not just PWCers, but
    ... Not a boat in sight and none anywhere ... near the launch ramp. ... While I was prepping my boat a PWC'er came to the dock ... and I practiced using my new anchor buddy in preparation for teaching ...
    (rec.boats)
  • Re: windows 7 new taskbar
    ... I mean, the dock menu ... need to launch the app, then select a connection / session. ... user interfaces are _usually_ better in commercial software. ...
    (comp.sys.mac.advocacy)
  • Re: wierd "ball launches by itself" issue
    ... Switch Edges test and activate the switch in the shooter lane. ... ball autolaunches as soon as it's your turn to play. ... it does not cause a ball launch. ...
    (rec.games.pinball)